teach-me
A socratic teaching mode for coding agents (Claude Code and OpenAI Codex).
You know the feeling: the agent ships a change, walks you through it, you nod
along, and a week later you couldn't explain any of it to save your life. That's
not learning — that's vibing. teach-me is for when you actually want the
thing in your head.
So instead of lecturing, the agent reads the real code you want to understand,
builds a mastery checklist, and makes you earn every checkmark:
- Trick questions by default. No softballs. Every question is built so the
surface-pattern answer is wrong — subtle code twists, counterfactuals ("why
not just delete this guard? it looks redundant"), and textbook answers that
fail in your codebase for a reason you can actually find. Simple recall
questions never count toward mastery.
- No answer reveals. Got one wrong? Tough — the agent won't tell you the
right answer. It nudges instead: a guiding question, the smallest possible
hint, and a re-ask. Only after ~3 failed rounds does it finally walk through
it with you, and even then the concept gets quietly re-tested later before
it counts.
- The troll. This is the fun part. Roughly one in three correct answers
gets challenged anyway — "are you sure? what about the retry path?" — with
the agent arguing the wrong side convincingly. Hold firm with real reasoning
and you've proven you actually get it; fold and you were pattern-matching
all along. Every challenge gets resolved honestly before moving on, so
you're never left wondering what the truth was.
The session ends when you've demonstrated understanding of everything on the
checklist — and survived one final boss question that makes you synthesize
all of it at once ("design the bug that would slip past this code's tests").
Not when the agent finishes explaining.
A few more things it does along the way:
- Difficulty ramps with you. Rattle off a streak of clean wins and the
tricks get subtler. You don't get to coast.
- Confidence scoring. You rate your gut confidence (1–5) on every answer
before anything resolves. Confident-and-correct answers are the troll's
favorite targets; hesitant-but-correct ones get reinforced instead. The
recap includes a calibration report — where you were sure but wrong, and
right but hesitant.
- It remembers. At the end it offers to save the session (checklist,
struggles, calibration) to
.teach-me/ in your project. Next time you ask
about the same area, it opens by re-testing what was shaky last time.
- Gentle mode. Say "go gentle" or "no trolling" when you're fried and it
drops the troll — keeping the trick questions and socratic hints — and
tells you it's doing so.
Inspired by Thariq's "teach me" skill
(gist) —
this version turns the difficulty up: trick questions, no answer reveals, and
a troll.
Quickstart
Claude Code (plugin)
/plugin marketplace add zeapsu/teach-me
/plugin install teach-me@teach-me
Then in any project:
/teach-me the auth middleware you just changed
It also triggers naturally on phrases like "teach me", "quiz me", "make sure I
actually understand this", or "walk me through what you just did".
Claude Code (manual)
git clone https://github.com/zeapsu/teach-me
cp -r teach-me/plugins/teach-me/skills/teach-me ~/.claude/skills/teach-me
Codex (plugin)
Codex's plugin system understands the same marketplace format:
codex plugin marketplace add zeapsu/teach-me
codex plugin add teach-me@teach-me
Codex (manual)
Codex auto-discovers skills in ~/.agents/skills/. The codex/ directory
holds a Codex-tuned variant (plain-text A–D answer prompts, AGENTS.md
conventions):
git clone https://github.com/zeapsu/teach-me
./teach-me/scripts/install-codex.sh
What a session looks like
- Grounding. The agent reads the actual files/diff/PR — never teaches
from generic knowledge.
- Calibration. One quick exchange: what do you want out of this, and how
familiar are you already?
- Checklist. A visible mastery map across three layers: the problem, the
solution (and why it beat the alternatives), and the broader context.
- Incremental teaching. You restate your understanding first; the agent
teaches the gaps it finds, at the depth you pick (ELI5 → new-intern).
- Probing. Trick questions tied to checklist items. Wrong answers enter
the socratic loop; right answers sometimes get trolled.
- Recap. When the checklist is genuinely done — including the traps you
fell into and climbed out of, since those are what you'll remember.
The rules the agent lives by