Practical overview
When it fits
Use it when studying coding-agent internals or prototyping a documented mechanism in Node.js. Chapters s01–s12 form a sequential path; later chapters can be selected by topic.
Who it is for
- Developers learning how coding agents are structured and implemented.
- Node.js developers prototyping agent loops, tools, session handling or coordination patterns.
Documented uses
- Learn coding-agent mechanisms in a staged sequence, from a basic loop to a fuller agent.
- Run small examples to explore how specific mechanisms work.
- Consult implementation notes when adapting agent behavior for a prototype.
Requirements & limits
The repository is public and MIT-licensed. Examples require Node.js 18 or later and have no dependencies. Model-calling examples use an OpenAI-compatible API key; many demos and the documented self-test can run without one. The README is in Simplified Chinese and links to an English README.
- The examples are JavaScript programs intended to be read and adapted, rather than a packaged agent application.
- The README separates a sequential s01–s12 curriculum from later topic-focused notes.
- Some examples call a model, while many demos and the integrated self-test are described as key-free.
- The repository links each note to the corresponding production implementation in Reina.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Run the API-backed agent-loop example
Start the documented agent-loop example using an OpenAI-compatible model provider.
Before you start
- Node.js 18 or later
- A compatible API key
Steps
Clone the learn-agent repository and change into its directory.
Set the AGENT_API_KEY environment variable to the provider key.
Run node notes/s01_agent_loop/agent.mjs.
Expected outcome
The agent-loop example starts with the configured API key.
Guide limitations
- The README does not claim identical behavior across providers.
- This recipe runs the s01 agent-loop example, not every chapter or a deployed service.
Run the key-free examples and self-tests
Explore the documented examples that do not require a model API key.
Before you start
- Node.js 18 or later
- A local clone of the learn-agent repository
Steps
Clone the repository and change into its directory.
Run node selftest.mjs.
Expected outcome
The repository runs its key-free chapter demos and the s12 integration and interruption regression self-tests.
Guide limitations
- The README says most chapter demos and the s12 self-test mode work without a key; it does not say every example does.
- The self-test covers the documented key-free examples, not every possible provider setup.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 23 October 2026
- Original website title
- 7-e1even/learn-agent · Official homepage title · retained in its source language

