Wizard-style codebase exploration and documentation. Install the Codebase Wizard plugin for Claude Code (and other runtimes in future releases).
Project description
Codebase Mentor
Codebase Wizard is a Claude Code plugin that explains any codebase, spec, or markdown artifact through a wizard-style conversational Q&A interface. Every answer is anchored to actual code shown inline. Sessions are auto-captured and synthesizable as structured documentation.
What It Does
- Describe mode — walks a repo owner through Q&A and produces
CODEBASE.md - Explore mode — gives a new developer a learning-order tour and produces
TOUR.md - File mode — walks through any markdown file section-by-section
- Auto-capture — every session is captured to JSON via Agent Rulez hooks
- Export — synthesize raw session logs into structured docs on demand
Install
pip install ai-codebase-mentor
ai-codebase-mentor install --for claude
This copies the Codebase Wizard plugin to ~/.claude/plugins/codebase-wizard/.
For a per-project install:
ai-codebase-mentor install --for claude --project
Usage
After installing, in any Claude Code session:
/codebase-wizard-setup # one-time setup: installs hooks and writes permissions
/codebase-wizard # start a wizard session
/codebase-wizard-export # synthesize captured sessions into docs
Uninstall
ai-codebase-mentor uninstall --for claude
Status
ai-codebase-mentor status
CLI Reference
ai-codebase-mentor install --for [claude|all] [--project]
ai-codebase-mentor uninstall --for [claude|all] [--project]
ai-codebase-mentor status
ai-codebase-mentor version
Commands
| Command | Description |
|---|---|
/codebase-wizard |
Start a wizard session (Describe, Explore, or Ask mode) |
/codebase-wizard-setup |
One-time onboarding: install Agent Rulez hooks, write scoped permissions |
/codebase-wizard-export |
Synthesize captured session JSON into CODEBASE.md, TOUR.md, or FILE-NOTES.md |
How It Works
The plugin follows a 5-phase conversational flow:
| Phase | Trigger | What loads |
|---|---|---|
| 1 — Repo Scan | User shares repo | scan-patterns.md |
| 2 — Question Handling | "how does X work?" | (none extra) |
| 3 — Navigation | "rewind", "jump to" | navigation-commands.md |
| 4 — Tutorial Mode | README found, or "teach me" | tutorial-mode.md |
| 5 — Persistence | "save", "export" | persistence.md |
Every answer follows the same loop:
- Find the relevant code
- Show it as a code block with a full anchor (
src/auth/middleware.ts → validate() → L14-31) - Explain in plain English
- Show connections (calls / called-by)
- Predict 2–3 follow-up options
Milestones
| Version | Runtime | Status |
|---|---|---|
| v1.0 | Claude Code | Complete |
| v1.2 | OpenCode + PyPI publish | Planned |
| v1.3 | Codex (subagent-aware) | Planned |
| v1.4 | Gemini CLI | Planned |
| v1.5 | LangChain DeepAgent standalone | Planned |
Development
git clone https://github.com/SpillwaveSolutions/codebase-mentor
cd codebase-mentor
pip install -e .
pytest tests/
License
MIT — Spillwave Solutions
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_codebase_mentor-1.3.0.tar.gz.
File metadata
- Download URL: ai_codebase_mentor-1.3.0.tar.gz
- Upload date:
- Size: 64.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccc60080e3f75c2192ffe4d64d538e99915a3e30d9af477d69e5aeb8bd9aa9ca
|
|
| MD5 |
be9dac400e64a4b7245c5e493597fabe
|
|
| BLAKE2b-256 |
bc5aef0d230d461def5fbe1f07206e9c03dbb901e774f632a47b94c76ccdbfb1
|
Provenance
The following attestation bundles were made for ai_codebase_mentor-1.3.0.tar.gz:
Publisher:
publish-pypi.yml on SpillwaveSolutions/codebase-mentor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_codebase_mentor-1.3.0.tar.gz -
Subject digest:
ccc60080e3f75c2192ffe4d64d538e99915a3e30d9af477d69e5aeb8bd9aa9ca - Sigstore transparency entry: 1203584461
- Sigstore integration time:
-
Permalink:
SpillwaveSolutions/codebase-mentor@f9a9d4e22c4a52df9ddaa67a6527e1cf1c3801e0 -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/SpillwaveSolutions
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@f9a9d4e22c4a52df9ddaa67a6527e1cf1c3801e0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ai_codebase_mentor-1.3.0-py3-none-any.whl.
File metadata
- Download URL: ai_codebase_mentor-1.3.0-py3-none-any.whl
- Upload date:
- Size: 62.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83dbc6944b8c579fb75ef1f5ea3144d80b489b4c812280fbb6f5c2af348ea1d2
|
|
| MD5 |
2c60efef7a7a1a420d20b377bbabecaa
|
|
| BLAKE2b-256 |
92e10281c706f859ed4d820ad556a0138ccceea37ca8b96b284387530c3cafdd
|
Provenance
The following attestation bundles were made for ai_codebase_mentor-1.3.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on SpillwaveSolutions/codebase-mentor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_codebase_mentor-1.3.0-py3-none-any.whl -
Subject digest:
83dbc6944b8c579fb75ef1f5ea3144d80b489b4c812280fbb6f5c2af348ea1d2 - Sigstore transparency entry: 1203584462
- Sigstore integration time:
-
Permalink:
SpillwaveSolutions/codebase-mentor@f9a9d4e22c4a52df9ddaa67a6527e1cf1c3801e0 -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/SpillwaveSolutions
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@f9a9d4e22c4a52df9ddaa67a6527e1cf1c3801e0 -
Trigger Event:
push
-
Statement type: