CodeSensei An in-context coding tutor for Claude Code, for builders who ship with AI and want to understand what they built. CodeSensei is a free, open-source Claude Code plugin by Dojo Coding that turns every coding session into a learning session. It watches what you build locally, explains what just happened in plain language, quizzes you on concepts from your own project, and tracks your growth with a martial…
🥋 Claude Code plugin that teaches programming while you vibecode — contextual explanations, micro-quizzes, and belt progression. Free & open source by Dojo Coding.
An in-context coding tutor for Claude Code, for builders who ship with AI and want to understand what they built.
CodeSensei is a free, open-source Claude Code plugin by Dojo Coding that turns every coding session into a learning session.
It watches what you build locally, explains what just happened in plain language, quizzes you on concepts from your own project, and tracks your growth with a martial arts belt progression system.
Explain what Claude just changed in terms you understand
/code-sensei:quiz
Test your understanding with a contextual quiz
/code-sensei:why
Explain why a specific decision or pattern was used
/code-sensei:progress
Show your learning dashboard, streak, mastery, and next belt requirements
/code-sensei:recap
Summarize what you learned in the session
/code-sensei:level
Adjust difficulty or set your professional background
/code-sensei:belt
Show current belt rank and progress
/code-sensei:export
Export your local profile for backup or migration
/code-sensei:import
Restore a profile from a previous export
/code-sensei:doctor
Verify setup health and inspect exactly what CodeSensei stores locally
How it works
You build normally
Prompt Claude to create files, edit code, install dependencies, and run commands.
Hooks watch local activity
CodeSensei listens for file changes and shell commands, then queues lightweight teaching moments locally.
You ask when curious
Use /code-sensei:explain, /code-sensei:why, or /code-sensei:quiz whenever you want to understand something better.
Teaching adapts to you
White Belt gets analogy-first explanations. Advanced belts get more technical language, tradeoffs, and architecture discussion.
Progress persists locally
Your profile lives in ~/.code-sensei/ and carries across projects on that machine.
Belt progression
⬜ White Belt → 0 XP “You wrote your first prompt”
🟡 Yellow Belt → 500 XP “You understand files & folders”
🟠 Orange Belt → 1,500 XP “You get frontend vs backend”
🟢 Green Belt → 3,500 XP “You can read and modify code”
🔵 Blue Belt → 7,000 XP “You understand APIs & databases”
🟤 Brown Belt → 12,000 XP “You can architect a full app”
⚫ Black Belt → 20,000 XP “You think like an engineer”
Promotion is not XP-only.
Each new belt also requires:
concept mastery gates
quiz accuracy of at least 60%
That keeps progress tied to understanding, not just activity.
Adaptive teaching examples
White Belt / beginner
“Claude just added a translator to your server. Raw form data arrives as text, and this translator turns it into something your code can actually read.”
Blue Belt / advanced learner
“Claude added middleware to parse JSON before requests hit your route handlers, so req.body is already normalized when your business logic runs.”
Same project. Same concept. Different depth.
Background-specific analogies
Set a background with /code-sensei:level background marketing and CodeSensei will adapt examples to your field.
Examples:
Marketing — “An API is like a campaign brief: you send structured requirements and receive a structured result.”
Design — “Components are like design system elements: reusable, composable, and consistent.”
Finance — “A variable is like an account balance: a named value that changes over time.”
Medicine — “Error handling is like triage: you check critical problems first.”
评论