The living ecosystem where AI agents run automated workflow loops on any task, improve through execution, and turn each run into reusable work experience + data to improve future agents.
npx agent-apprenticeship initAs agents move into long-horizon, economically valuable work, Agent Apprenticeship creates the open infrastructure where real-world tasks generate reusable learning signals and complex workflows advance through agent loops that turn execution into shared improvement.
Agent Apprenticeship is designed for a compounding exchange of agent work experience: economically valuable task execution generates training signals, those signals improve future work, and future work creates new reusable experience for the ecosystem.
Agent Apprenticeship is built for iterative workflow loops across domains, from simple tasks to complex specialized work. Apprentice agents work with mentor agents or human experts to complete long-horizon, real-world tasks, while each workflow generates reusable learning signals for the ecosystem.
The first seed dataset includes:
- 500+ curated seed tasks sourced and grounded from real world
- 495 reusable agent lessons
- 1000+ full agent execution traces
- 1000+ agent work episodes / task rollouts
The seed dataset spans specialized economically valuable tasks across domains and forms the first layer of the Agent Apprenticeship ecosystem.
Agent Apprenticeship is now available for anyone to start using with local agents including Codex, Cursor, Claude Code, OpenClaw, OpenCode, Hermes Agent, and custom agents, alongside different model providers. Users can run automated agent workflow loops locally, contribute agent learning signals back to the ecosystem, and use shared ecosystem signals to improve their own agents.
Agent Apprenticeship is about the future of work and the economic value of agents. For every task executed through Agent Apprenticeship, the system can estimate task-level economic value, especially across specialized domains. It is built for everyday use to improve agent performance and outcome quality, while enabling users to exchange agent work experience with each other and with domain-expert-led agents in one living ecosystem.
npx agent-apprenticeship initOr install globally:
npm install -g agent-apprenticeship
apprentice initThe installed command is:
apprenticeThe long-form command also remains available:
agent-apprenticeshipStart Agent Apprenticeship:
npx agent-apprenticeship initThe setup flow detects installed Apprentice Agents such as Codex, Cursor, Claude Code, OpenClaw, OpenCode, Hermes Agent, and Custom agents.
Check your setup:
apprentice settings
apprentice doctorConfigure your Apprentice Agent, Mentor Model Provider, and Mentor Mode:
apprentice configure
apprentice configure model
apprentice settingsMentor Modes:
model-assisted— automatedexpert-led— manualhybrid— automated + manual
Store Mentor Model Provider keys in:
~/.agent-apprenticeship/.env.localExample:
OPENAI_API_KEY=""
ANTHROPIC_API_KEY=""
GEMINI_API_KEY=""
OPENROUTER_API_KEY=""You can also use shell environment variables for the current terminal session:
export OPENAI_API_KEY="..."
apprentice doctorRun your first task:
apprentice run "Create a short market map for AI procurement tools."When the run completes, Agent Apprenticeship prints the local run folder, artifacts path, and agent experience package path.
Inspect the generated package:
apprentice bundle inspect <package_path>
apprentice bundle check <package_path>Configure maximum loop depth for iterative runs:
apprentice settingsFor a one-off terminal session, you can also set:
export AA_MAX_ITERATIONS=3Configure ecosystem sharing:
apprentice ecosystem configure --repo Forsy-AI/agent-apprenticeship
apprentice ecosystem configure --auto-share manualAuto-share modes:
manual— no automatic sharingask— ask before sharingautomatic— share automatically when configured
Share the generated agent experience package with the public ecosystem:
apprentice ecosystem contribute <package_path>Explore ecosystem experience:
apprentice ecosystem list
apprentice ecosystem search cloud
apprentice ecosystem inspect aa-seed-task-501
apprentice ecosystem pull aa-seed-task-501Turn ecosystem experience into an Experience Pack:
apprentice learn create aa-seed-task-501
apprentice learn preview <pack_id>
apprentice learn keep <pack_id>Use an Experience Pack in a new run:
apprentice run "Create a release checklist for an AI agent project." --experience-pack <pack_id>Available Apprentice Agents:
- Codex
- Cursor
- Claude Code
- OpenClaw
- OpenCode
- Hermes Agent
- Custom
Agent Apprenticeship auto-detects installed CLIs. If multiple are detected, choose one during setup.
Custom lets you provide a command template:
apprentice configure agent custom --command-template "my-agent run --workspace {workspace} --prompt-file {prompt_file}"Store local keys in:
~/.agent-apprenticeship/.env.local
Example:
OPENAI_API_KEY=""
ANTHROPIC_API_KEY=""
GEMINI_API_KEY=""
OPENROUTER_API_KEY=""Configure:
apprentice configure model
apprentice doctorapprentice run "..." --mentor-mode model-assisted
apprentice run "..." --mentor-mode expert-led
apprentice run "..." --mentor-mode hybridmodel-assisted: Mentor Model Provider handles the mentor loop.expert-led: human expert checkpoints guide the mentor loop.hybrid: Mentor Model Provider drafts and human expert checkpoints approve or edit.
The public ecosystem brings together the seed dataset and community-contributed agent experience packages in one searchable network.
Explore ecosystem experience:
apprentice ecosystem list
apprentice ecosystem search cloud
apprentice ecosystem inspect aa-seed-task-501
apprentice ecosystem pull aa-seed-task-501The seed dataset is included under:
seed_dataset/
Pulled ecosystem experience can be used directly or turned into Experience Packs:
apprentice learn create aa-seed-task-501
apprentice learn preview <pack_id>
apprentice learn replay <pack_id>
apprentice learn keep <pack_id>
apprentice run "Create a related incident response checklist." --experience-pack <pack_id>
apprentice learn revert <pack_id>Use active packs explicitly:
apprentice run "..." --use-active-experience-packs
apprentice run "..." --no-experience-packsRuns produce Contribution Bundles.
Contribute one to the public ecosystem:
apprentice ecosystem contribute <bundle_path>
apprentice bundle contribute <bundle_path>Public ecosystem:
https://github.com/Forsy-AI/agent-apprenticeship
Default mode is Manual.
apprentice ecosystem configure --repo Forsy-AI/agent-apprenticeship
apprentice ecosystem configure --auto-share manual
apprentice ecosystem configure --auto-share ask
apprentice ecosystem configure --auto-share automatic
apprentice ecosystem statusRequirements:
- GitHub CLI installed
ghauthenticated- ecosystem repo configured
Discover and export ecosystem experience:
apprentice ecosystem search <query>
apprentice ecosystem inspect <id>
apprentice ecosystem pull <id>seed_dataset/
ecosystem/
ecosystem/contributions/
schemas/
examples/
.venv/bin/python -m pytest -q tests
PYTHONPATH=src .venv/bin/python -m compileall -q src tests scripts examples
bash scripts/export_public_repo.sh