
Codebase Mentor
Find your way through unfamiliar code.
Repo design context your agent can use during everyday work, grounded in current source.
Install · Try it · Setup help · Docs
Set up a repository once so your coding agent can find the design context behind its next change. A short ONBOARDING.md routes it to focused subsystem guides, relevant source, and tests. Codebase Mentor asks the agent to check current behavior and respect the rationale, boundaries, and gotchas that a generic solution might miss.
Start in any repo. An onboarding doc is optional. The skills need no API key, database, background service, or separate runtime beyond your coding agent.
Install
Install directly from Codebase Mentor’s repository. It includes the codebase-mentor marketplace for both Claude Code and Codex.
Claude Code
Run in Claude Code:
/plugin marketplace add jestatsio/codebase-mentor
/plugin install codebase-mentor@codebase-mentor
Codex
Run in your terminal with a current Codex CLI:
codex plugin marketplace add jestatsio/codebase-mentor
codex plugin add codebase-mentor@codebase-mentor
In the Codex app, add jestatsio/codebase-mentor as a plugin marketplace and install Codebase Mentor. If your version does not support plugins, use the skills fallback.
Already installed from jestats-plugins or as direct skills? Keep one copy per agent. See switching installation methods before changing sources.
IBM Bob
From the repository you want to understand:
curl -fsSL https://raw.githubusercontent.com/jestatsio/codebase-mentor/main/install.sh | bash -s -- --agent bob --project
This installs both skills in .bob/skills/. Reopen your workspace if they do not appear, then ask Bob to use Codebase Mentor. See Bob setup and troubleshooting for a download-and-review alternative.
Other agents: npx skills add jestatsio/codebase-mentor installs the open skills format. Cursor, Copilot, AGENTS.md, and all installation options →
Try it
After installation, open a repo and ask:
Set up Codebase Mentor for this repo.
The onboard skill reuses existing docs, drafts from source, and asks up to three targeted questions. For larger repos, it drafts up to three focused subsystem guides initially and lists uncovered areas. Setup adds small context entries for your selected agents. In future sessions, those entries guide the agent to relevant context during ordinary work.
Ask “Is Mentor set up correctly here?” to check configuration. Start a fresh session with a normal coding request and inspect its source reads to verify actual use. Configured files alone do not prove activation. Setup, status, and removal →
You can also start without setup:
Use Codebase Mentor to trace one important execution path in this repo.
Explain it to a new contributor. Cite the files and symbols you read,
and flag anything you cannot verify.
Then put it to work:
| You want to… | Ask your agent |
|---|
| Understand an unfamiliar feature | “Use Codebase Mentor: how does authentication work here?” |
| Plan a change | “Where would I add a new API endpoint? Find the closest existing example and the tests to run.” |
| Check an assumption | “Our docs say validation happens before dispatch. Is that still true?” |
| Catch stale documentation | “Scan ONBOARDING.md against current source. Show what changed and what you could not verify.” |
| Create a map for your team | “Use the onboard skill to draft ONBOARDING.md. Ask me about the gotchas source cannot explain.” |
| Capture subsystem nuance | “Use onboard to add a focused guide for our storage layer, including its boundaries, rationale, and tests.” |
| Check repo setup | “Is Mentor set up correctly here?” |