Agent Apprenticeship ships a Node wrapper, a Python CLI and no way to upload
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
At a glance
- What is it?
- Agent Apprenticeship is a CLI that runs coding agents in looped workflows, turns each run into an Experience Compilation and installs that as training for later runs. Its ecosystem commands search, inspect, pull, export and install, and none of them sends anything back, which is the one thing the README says users are meant to do.
- Who is it for?
- Agent Apprenticeship is worth a try for a team that already drives Codex, Cursor, Claude Code, OpenClaw, OpenCode or Hermes Agent from a terminal and wants the same loops recorded as reusable artefacts. Four checks come first.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 33 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- ray-r-ren/agent-apprenticeship1,583 ★ · +251
| Repository | 2026-09-11 | 2026-11-22 |
|---|---|---|
| ray-r-ren/agent-apprenticeship | 1.3k | 1.6k |
251 Stars in the last 72 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The manifests point at one account and the code sits under another
The repository is hosted under one account while its own packaging points somewhere else. package.json declares the repository as git+https://github.com/Forsy-AI/agent-apprenticeship.git, the project homepage is forsy.ai, and the seed dataset link points at Forsy-AI on Hugging Face. Whoever installed this from npm therefore has a tarball that reports an upstream repository, an owner and a licence, and none of those resolve to the account the code is read from. Nothing in the tree explains the arrangement, and no redirect is documented. For anyone vendoring the package into an internal registry, or for anyone checking whether a fork is current, that gap has to be closed by hand rather than by following the metadata.
npm test points at a virtualenv and a tests directory the tree does not have
The npm scripts assume a checkout that is not the one published:
.venv/bin/python -m pytest -q tests
PATH=./.venv/bin:$PATH AA_NPM_USE_SYSTEM_PYTHON=1 node ./bin/agent-apprenticeship.js --helpThe first line is the whole test command, a hardcoded path into a virtualenv at the repository root plus a tests directory. The top-level entries are LICENSE, README.md, apprenticeship.png, bin/, examples/, package.json, pyproject.toml, schemas/, selected_ale_tasks_demo/ and src/, with no tests among them, and the files array that decides what npm ships does not include tests either. Pytest is still declared as an optional extra on the Python side. The second line is the smoke check, and it is more informative than the first: it puts .venv/bin at the front of PATH and sets AA_NPM_USE_SYSTEM_PYTHON, which says the Node wrapper expects a Python environment already built next to it. A pack step clears __pycache__ directories and .pyc files out of src and bin before packing.
One CLI, two packaging systems, three console names
The Python distribution puts three entry points on the same function, agent_apprenticeship_trace.cli:main, exposed as apprentice, agent-apprenticeship and aa-trace. The npm manifest declares only two of them, agent-apprenticeship pointing at bin/agent-apprenticeship and apprentice at bin/apprentice, so aa-trace exists for pip users alone. What npm actually ships is the Python distribution: the files array carries README.md, LICENSE, schemas, the minimal experience compilation example, selected_ale_tasks_demo, pyproject.toml, the src/agent_apprenticeship_trace package and the bin directory. The Python side asks for 3.11 or later and pulls pydantic from 2.7 to below 3, typer from 0.12 to below 1, and openai from 2 to below 3, with openai listed a second time as an optional llm extra. Node 18 or later is the only engine requirement declared on the npm side.
Every documented ecosystem command reads, none of them uploads
The README promises a compounding exchange in which users contribute learning signals back to the ecosystem and draw on signals from others. The commands it documents are all inbound:
apprentice ecosystem search <query>
apprentice ecosystem inspect <id>
apprentice ecosystem pull <id>Inspection, export with the --full flag, and install of that export as runtime training complete the set. There is no push, publish or contribute verb anywhere in the install, quickstart, agents, providers or ecosystem sections, and the only outward-facing control named is the contribution mode, set through apprentice settings and holding two values, Public Ecosystem and Private Internal Only. So the exchange is described as bidirectional while the command surface is one-directional, and anyone planning to contribute has nothing to run and should find out from the maintainers how the return path is meant to work.
Four provider keys in one dotenv file under the home directory
Mentor model provider keys are read from a single file the setup creates:
~/.agent-apprenticeship/.env.localThe example lists OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY and OPENROUTER_API_KEY side by side, so a user can point the mentor at any of four providers from one place, and shell variables are offered as the alternative for a single terminal session, in which case apprentice doctor is the check to run. The state of that configuration is inspected with apprentice settings, changed with apprentice configure and apprentice configure model, and validated with apprentice doctor. Worth noting for anyone mapping the trust boundaries: the file sits in the home directory rather than inside the project, the key names cover four vendors while the Python dependencies name only the openai client, and the package offers no keyring or OS credential store path in what is documented.
Loop depth is an environment variable with no stated default
A run is a quoted task description, progress is watched by run id, and the completed run prints its local folder and the path of the Experience Compilation it produced:
apprentice run "Create a short market map for AI procurement tools."
apprentice watch <run_id>What happens inside that run is bounded by AA_MAX_ITERATIONS, settable for one session as an environment variable, with 3 given as the example, and otherwise reachable through apprentice settings rather than a flag on the run command. The same settings command is reused three separate times in the quickstart for three different purposes, which is the only pointer to what it holds. Which agent executes the loop is a separate choice: setup auto-detects installed CLIs among Codex, Cursor, Claude Code, OpenClaw, OpenCode, Hermes Agent, and Custom, asks which to use when several are found, and for Custom takes a command template with workspace and prompt_file placeholders.
Version 0.2.1 in two manifests, one tag at 0.2.0
Both manifests carry 0.2.1, package.json and pyproject.toml agreeing on the number by hand rather than by sharing it. The single published release is v0.2.0 from 2026-07-03, and the last commit on main is dated 2026-07-06, so whatever moved between the tag and the branch is unversioned, and a pip install and an npm install of the same day can resolve differently depending on which manifest is consulted. The seed dataset is separately labelled v0.2, matching the tag rather than the manifests. Its contents are also the part of the README most in need of a recount, because the list of what is included does not form a set: 500+ curated seed tasks, 495 reusable agent lessons, 1000+ full agent execution traces, 1000+ agent work episodes, 505 full work experience compilations, and 39k+ structured experience compilation records, where traces and episodes both start at the same thousand and the compilation count exceeds the lesson count by ten.
Editorial conclusion
Agent Apprenticeship is worth a try for a team that already drives Codex, Cursor, Claude Code, OpenClaw, OpenCode or Hermes Agent from a terminal and wants the same loops recorded as reusable artefacts. Four checks come first. Decide what leaves the machine before choosing Public Ecosystem rather than Private Internal Only, because the documented commands are inspect, pull, export and install, and nothing in them uploads. Note that the npm package installs no Python, so a Node install still needs an interpreter on PATH, and the repository smoke script expects one inside .venv. Budget for the version gap too: both manifests say 0.2.1 while the only tag is v0.2.0 from 2026-07-03. And treat the seed dataset figures as marketing numbers until someone counts the Hugging Face files, since the task, lesson and compilation counts in the same list are three different totals. The licence is MIT with a LICENSE file at the root.
Frequently asked questions
What does Agent Apprenticeship actually do?
It runs a task through a loop with a local coding agent, then writes the result out as an Experience Compilation that can be inspected, exported in full, and installed as runtime training for a later run. The loop depth is controlled by AA_MAX_ITERATIONS or through apprentice settings, and the agent is one of Codex, Cursor, Claude Code, OpenClaw, OpenCode, Hermes Agent, or a custom command template.
How do you install Agent Apprenticeship?
The documented paths are npx agent-apprenticeship init for a one-off setup, or npm install -g agent-apprenticeship followed by apprentice init. The Python distribution installs the same CLI under apprentice, agent-apprenticeship and aa-trace, and the npm package expects a Python environment already on PATH.
Can Agent Apprenticeship send your run data to the public ecosystem?
The documented commands are search, inspect, pull, export with a --full flag, and learn install, all of which read from an id or a path. The one outward-facing setting is the contribution mode, with values Public Ecosystem and Private Internal Only, configured through apprentice settings.
Where does Agent Apprenticeship keep mentor model provider keys?
In a local environment file at ~/.agent-apprenticeship/.env.local, with an example listing OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY and OPENROUTER_API_KEY. Shell environment variables are the documented alternative for a single terminal session, and apprentice doctor checks the setup.
How many tasks are in the Agent Apprenticeship seed dataset?
The v0.2 seed dataset on Hugging Face is listed as 500+ curated seed tasks, 495 reusable agent lessons, 1000+ full agent execution traces, 1000+ agent work episodes, 505 full work experience compilations and 39k+ structured experience compilation records.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/ray-r-ren-agent-apprenticeship)Star history chart for your README
[](https://hysenlabs.com/projects/ray-r-ren-agent-apprenticeship)Was this useful?