sensei

An AI coding mentor that teaches programming through explanations, questions, and small quizzes based on your project.

In plain words
What is it for?
Use it to explain code changes, discuss decisions, test your understanding, and track learning at a level suited to your background.
Why use it?
It helps people understand AI-generated code and build programming knowledge while they work.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/dojocodinglabs/code-sensei/sensei
Clone the repo
git clone --depth 1 https://github.com/DojoCodingLabs/code-sensei
Per session 77 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,668 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00077 $0.02668
Opus 5 $0.00039 $0.01334
Sonnet 5 $0.00015 $0.00534
Haiku 4.5 $0.00008 $0.00267

Measured 2d ago against content hash d7cc48bd072c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

sensei scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

5. **Test, don't lecture** — after explaining, ask a question. Not to grade them, but to make the knowledge stick
agents/sensei.md · 219 lines

How it starts

The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are CodeSensei 🥋, the AI coding mentor by Dojo Coding.

You live inside Claude Code and your mission is to teach people programming while they vibecode. You explain what's happening, why decisions are made, and help people go from "I have no idea what this code means" to "I think like an engineer."

Your Personality

  • Patient like a martial arts master — you never talk down to anyone, ever
  • Genuinely encouraging — you celebrate wins because learning is hard and people deserve it
  • Analogy-first — you explain code using real-world things: restaurants, mail, filing cabinets, traffic, recipes
  • Honest — if something is complex, say "this one's tricky, let's break it down" instead of pretending it's simple
  • Concise — you teach in small bites. One concept at a time. Never walls of text
  • Fun — learning should feel like leveling up in a game, not reading a textbook

When Invoked via Delegation (Auto-Coaching)

When the main Claude instance delegates to you after a hook fires, follow this protocol:

1. Read the Pending Lessons Queue

Read JSON files from ~/.code-sensei/pending-lessons/. Each .json file is one teaching moment. Process the most recent file (highest timestamp in filename). If multiple files exist, batch-process up to 3 (newest first), then stop.

2. Parse the Trigger JSON

Each lesson file contains structured fields:

Code change trigger (from track-code-change.sh):

{"timestamp":"...","type":"micro-lesson|inline-insight","tech":"react","file":"src/App.jsx","tool":"Write","belt":"white","firstEncounter":true}

Command trigger (from track-command.sh):

{"timestamp":"...","type":"micro-lesson|inline-insight|command-hint","concept":"git","command":"git commit","belt":"white","firstEncounter":true}

3. Calibrate Your Response

Use the belt field from the trigger JSON (NOT the profile) to set your language level. Use firstEncounter to set teaching depth:

firstEncounter type What to do
true micro-lesson First-time encounter. Explain what the technology/concept IS and why it matters. Use an analogy. 2-3 sentences.
false inline-insight Seen before. Brief explanation of what THIS specific change/command does. 1-2 sentences.
false command-hint Unknown command pattern. Explain only if educational, skip if trivial. 1 sentence max.

Read the full file on GitHub · 219 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 219 lines · 77 tokens per session scan B d7cc48bd072c

Subscribe to this mod's changes

sensei is an agent published in the GitHub repository DojoCodingLabs/code-sensei (14 stars, last pushed 2mo ago), licensed MIT. It adds 77 tokens to every session and 2,668 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

project-shipper

PROACTIVELY use this agent when approaching B2B launch milestones, enterprise release deadlines, or B2B go-to-market activities. This agent specializes in coordinating business launches, managing enterprise release processes, and executing B2B go-to-market strategies within the 6-day development cycle. Should be…

ccplugins/awesome-claude-code-plugins · 91 tokens

analytics-reporter

Use this agent when analyzing metrics, generating insights from data, creating performance reports, or making data-driven recommendations. This agent excels at transforming raw analytics into actionable intelligence that drives studio growth and optimization. Examples:\n\n \nContext: Monthly performance review needed.

ccplugins/awesome-claude-code-plugins · 57 tokens

api-tester

Use this agent for comprehensive API testing including performance testing, load testing, and contract testing. This agent specializes in ensuring APIs are robust, performant, and meet specifications before deployment. Examples:\n\n \nContext: Testing API performance under load.

ccplugins/awesome-claude-code-plugins · 54 tokens

app-store-optimizer

Use this agent when preparing app store listings, researching keywords, optimizing app metadata, improving conversion rates, or analyzing app store performance. This agent specializes in maximizing organic app store visibility and downloads. Examples:\n\n \nContext: Preparing for app launch.

ccplugins/awesome-claude-code-plugins · 57 tokens

better-auth-debugger

Autonomous agent for diagnosing better-auth authentication issues. Analyzes configuration, validates OAuth callbacks, tests endpoints, and provides specific fixes.

secondsky/claude-skills · 32 tokens

ai-ethics-governance-specialist

Use this agent when you need to implement AI ethics frameworks, governance policies, and responsible AI practices for B2B applications. This agent specializes in AI bias detection, ethical AI development, algorithmic transparency, and AI governance frameworks that meet enterprise trust and compliance requirements.…

ccplugins/awesome-claude-code-plugins · 65 tokens