SKILL.md. MIT licensed.
What the skill does
It notices when the code you are working on calls a frontier LLM for the same kind of task over and over (classify, extract, route, triage) and says one thing: this is repeatable, a small model can learn it, here is how to prove it. It then walks the agent through the Apprentice loop: capture traffic with the SDK, verify rows, optimize the prompt, and train a small model behind an eval gate. Two things it never does:- It never calls an API. The skill is instructions, not a tool. Nothing leaves your machine because you installed it.
- It never edits your code on its own. It points, you decide.
Install in Claude Code
Install in Codex (CLI and app)
The repo carries a native Codex plugin (.codex-plugin/). The skills CLI puts the skill in the right place:
Install in GitHub Copilot CLI
Install manually, for any agent
Agents look forSKILL.md directly inside each skill folder, so copy the inner skills/apprentice folder, not the repo root:
Common questions
Can I use Apprentice inside Codex or Claude Code? Yes. Install the skill above and the agent gains the Apprentice workflow: it recognizes repeatable frontier-LLM calls in your code and drives the capture, optimize, and train loop through therunapprentice SDK.
Does the skill replace the SDK?
No. The skill teaches your agent when and how to use Apprentice. The work happens through pip install runapprentice and your API key, same as without the skill.
Does it send my code anywhere?
No. The skill is a Markdown instruction file. Only the SDK calls you (or your agent, with your approval) explicitly write ever send data, and capture is fail-open.