A coding agent can write code you couldn't explain, and you forget what you looked up along the way. teachback makes you learn while you work with coding agents.
- Pairing mode: the agent writes no non-trivial code until you explain why it has to be shaped that way, and debugging stays with you.
- Reviews: concepts you haven't fixed yet are kept in one file. Your agent asks about one when it's due, on an FSRS schedule, until it sticks.
Install
uv tool install teachback
teachback setup
setup finds Claude Code, Codex and OpenCode on your PATH, shows what it will change in each, and asks before applying. --agent NAME limits it to one agent and --yes skips the question. teachback uninstall takes the same flags and removes everything setup added.
- Claude Code and Codex get the teachback plugin through their own
plugincommands: the pairing mode skill, a SessionStart hook and the MCP server. This repository is the plugin's marketplace, and the plugin follows itsmainbranch, like most plugins.teachback setup --pinpins it to the release tag of the teachback you installed instead. - OpenCode gets the skill copied to
~/.config/opencode/skills/, a plugin that does the hook's job copied to~/.config/opencode/plugins/(OpenCode 2 or later), and the MCP server registered withopencode mcp add.
Your instruction files (AGENTS.md, CLAUDE.md) are never edited.
To update, run uv tool upgrade teachback, then teachback setup. It updates the Claude Code and Codex plugins when they're older than the CLI, and replaces OpenCode's copies. You can also update the plugin with your agent's own commands:
claude plugin marketplace update teachback
claude plugin update teachback@teachback
codex plugin marketplace upgrade teachback
codex plugin add teachback@teachback
A pinned plugin stays on its tag: after an upgrade, run teachback setup --pin again to move it to the new one. To follow main again, run teachback uninstall, then teachback setup.
Without Python, you can still get pairing mode alone: copy plugin/skills/teachback into your agent's skills folder.
Pairing mode
Turn it on with /teachback in Claude Code, $teachback in Codex or @teachback in OpenCode. Turn it off by saying "stop teachback", or with /teachback off in Claude Code.
Reviews
- Adding a concept: when you show a gap in a concept, the agent offers to add it to your reviews, and adds it only if you agree. You can also ask it to add one. Pairing mode makes the same offer after you pass an explanation you got stuck on.
- Being asked: at session start, the agent gets the one concept that's due, if any. It asks you one question, grades your answer Again, Hard, Good or Easy, and saves the grade. That's at most one question per session, and the first comes a day after the concept is added.
- Leaving: once a concept's next review would be more than 180 days away, it moves to the file's
archivesection. - Your data:
~/.teachback/concepts.json, written only by teachback.TEACHBACK_HOMEchanges the folder. The file is indented JSON, socatshows what's in it. - No session-start hook? Run the
reviewprompt to review now:/plugin:teachback:teachback:reviewin Claude Code,/teachback:reviewin OpenCode.
Agent support
| Agent | Pairing mode | Review at session start | Review tools |
|---|---|---|---|
| Claude Code | /teachback |
hook | yes |
| Codex | $teachback |
hook, once you trust it in /hooks |
yes, and it asks before adding or grading |
| OpenCode 2+ | @teachback |
plugin | yes |
| OpenCode 1 | @teachback |
no, use /teachback:review |
yes |
Codex runs the hook only after you trust it, when it asks at start or in /hooks, and again after each teachback update.
To stop Codex asking before each add or grade, add this to ~/.codex/config.toml:
[plugins."teachback@teachback".mcp_servers.teachback]
default_tools_approval_mode = "approve"
The setting survives updates, but teachback uninstall removes it along with the plugin.
Metadata
Release files for teachback 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| teachback-0.1.3.tar.gz | 109.6 kB | Without provenance | Details for teachback-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| teachback-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for teachback-0.1.3-py3-none-any.whl |
Total release size: 133.4 kB
Release files / teachback-0.1.3.tar.gz
| Download URL | teachback-0.1.3.tar.gz |
|---|---|
| Size | 109.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6141162b7b8dfb8fb74b1149ef4438d094fe3fbb2a68bee552037cb7032daa28
|
|
BLAKE2b-256 checksum How to use checksums |
00c36cc210b38a9a8cee359b9ee7ee7c31f7c88983474ed7b5a49f979f2deadd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / teachback-0.1.3-py3-none-any.whl
| Download URL | teachback-0.1.3-py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
681e773e678b46d51ac70e76d6ab2dc1858d4bef024316dae3efb451d9dc0c7a
|
|
BLAKE2b-256 checksum How to use checksums |
3ad64dc76201d034ed3bcdd388a9f749144583a3fe2ba82103b50d11932964ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for teachback 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.