Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

agent-apprenticeship

> AI 编程
Open source

The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the

1.3K stars0 likes2 views
WebsiteGitHub

About

The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the

Agent Apprenticeship

Real-world agent work experience, looped into collective learning.

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.

bash
npx agent-apprenticeship init

As 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, users, or human experts to complete real-world tasks, while each workflow generates reusable learning signals for the ecosystem.

The latest seed dataset includes:

  • 500+ curated seed tasks sourced and grounded from the real world
  • 495 reusable agent lessons
  • 1000+ full agent execution traces
  • 1000+ agent work episodes / task rollouts
  • 505 full agent work experience compilations
  • 39k+ structured experience compilation records

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.

Install

bash
npx agent-apprenticeship init

Or install globally:

bash
npm install -g agent-apprenticeship
apprentice init

The installed command is:

bash
apprentice

The long-form command also remains available:

bash
agent-apprenticeship

Quickstart

Start Agent Apprenticeship:

bash
npx agent-apprenticeship init

Use defaults:

bash
npx agent-apprenticeship init --defaults

Check your setup:

bash
apprentice settings
apprentice doctor

Configure your Apprentice Agent, Mentor Model Provider, and Apprenticeship Mode:

bash
apprentice configure
apprentice configure model
apprentice settings

Apprenticeship Modes:

Autonomous
Expert-Led
Organization Custom

Store Mentor Model Provider keys in:

bash
~/.agent-apprenticeship/.env.local

Example:

bash
OPENAI_API_KEY=""
ANTHROPIC_API_KEY=""
GEMINI_API_KEY=""
OPENROUTER_API_KEY=""

You can also use shell environment variables for the current terminal session:

bash
export OPENAI_API_KEY="..."
apprentice doctor

Run your first task:

bash
apprentice run "Create a short market map for AI procurement tools."

Watch progress:

bash
apprentice watch 

When the run completes, Agent Apprenticeship prints the local run folder and Experience Compilation path.

Inspect the generated Experience Compilation:

bash
apprentice ecosystem inspect 
apprentice bundle check 

Export the Full Experience Compilation:

bash
apprentice ecosystem export  --full

Install Runtime Training from prior experience:

bash
apprentice learn install 

Use installed Runtime Training in a future run:

bash
apprentice run "Create a release checklist for an AI agent project."

Configure maximum loop depth:

bash
apprentice settings

For a one-off terminal session:

bash
export AA_MAX_ITERATIONS=3

Apprentice Agents

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:

bash
apprentice configure agent custom --command-template "my-agent run --workspace {workspace} --prompt-file {prompt_file}"

Mentor Model Providers

Store local keys in:

bash
~/.agent-apprenticeship/.env.local

Example:

bash
OPENAI_API_KEY=""
ANTHROPIC_API_KEY=""
GEMINI_API_KEY=""
OPENROUTER_API_KEY=""

Configure:

bash
apprentice configure model
apprentice doctor

Public Ecosystem and Private Internal Only

Configure contribution mode:

bash
apprentice settings

Modes:

Public Ecosystem
Private Internal Only

Explore ecosystem experience:

bash
apprentice ecosystem search 
apprentice ecosystem inspect 
apprentice ecosystem pull 

Export Full Experience Compilation:

bash
apprentice ecosystem export  --full

Install Runtime Training:

bash
apprentice learn install 

Seed Dataset v0.2

Seed Dataset v0.2 is available on Hugging Face:

https://huggingface.co/datasets/Forsy-AI/agent-apprenticeship-seed-dataset_v0.2

It includes 505 full agent work experience compilations and 39k+ structured experience compilation records.

Selected ALE Tasks Demo

Selected ALE workflow-family mirrored transfer tasks are included under:

selected_ale_tasks_demo/

Public Repo Structure

bin/
src/
schemas/
examples/
selected_ale_tasks_demo/

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonagent-apprenticeshipagent-economyagent-experienceagent-learning

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.