Mercy
that one teacher we all know
You built it. Now explain it.
A codebase teacher and viva coach inside Codex or Claude Code.
Install plugin · Sample notebook file · How it works · Architecture
Python 3.10+ · Codex / Claude Code · Offline HTML notebook · MIT
You know her. Glasses halfway down her nose. You finish explaining your project. She waits a second.
“Okay. Show me where that happens in the code.”
Mercy brings that teacher into your coding agent. She helps you understand the repository, turn source evidence into study notes, and practise defending the project one question at a time.

The code gets a vote

The included mini-rag example is deliberately misleading. Its rag.py sends a question to an API; it does not implement retrieval. Mercy's job is to make that distinction visible, with citations and explicit unknowns.
A notebook you can study
Open Project Overview to see the frontend, backend, model origins and resource links. Use Questions for short spoken answers. Expand Details for the full explanation and citations. Follow the user flowchart, then explain the whole-system component diagram. The original marker headings, ink borders and paper background stay, with one violet highlighter accent.
The report is one self-contained HTML file. Its artwork, font and interactions are embedded. Keep the editable evidence JSON and Markdown companion beside it.
Three ways to call her
Understand. “Explain this codebase” generates a reviewed HTML notebook by default. For a focused answer in chat, ask “Walk me through the request handler. What calls the model, and what happens if it fails?” Mercy inspects the relevant source and separates what it can support from what still needs checking.
Prepare. “Make a notebook for my project viva.” Mercy builds a starter bank, reviews it against your code, and turns the checked explanations into study material you can edit and regenerate.
Rehearse. “Ask me about the architecture, one question at a time.” Answer in your own words. Mercy gives feedback, points back to the source and follows up on the part you missed.
Inside the notebook
| Page | Use it for |
|---|
| Project Overview | Locate frontend/backend code and understand model sources with logos and resources. |
| Questions | Search, filter and hide answers to rehearse. |
| Flowchart | Follow reviewed user actions and decisions. |
| Architecture | Explain components and resolved import connections. |
| Folders | Expand a nested explorer; read a folder or file explanation beside it. |
Keep your notes. mercy-evidence.json holds the editable answers and evidence. mercy render rebuilds the notebook after your edits; the Markdown companion gives you a plain-text alternative.
What an evidence-backed answer looks like
Question: Where is retrieval implemented in the mini-rag example?
Source-supported: answer_question sends the question straight to the chat-completions API in rag.py:5–11. This function does not perform retrieval.
Not verified: Whether the API call succeeds at runtime. Inspecting source does not execute it.
That is the kind of distinction you need in a viva: a clear explanation, a location you can open, and an honest boundary.
How it works
Investigate → review → render → rehearse.
Your host agent reads bounded source excerpts with mercy context, checks and improves the answers, saves complete reviewed questions with mercy review, and rebuilds the notebook with mercy render. Then it coaches you through a mock viva.
Mercy uses the model already inside Codex or Claude Code. The native workflow needs no separate model service or provider key. The host's own privacy and connectivity settings still apply.