oh-my-tutor turns pi, Claude Code or Codex into a teaching-oriented coding assistant. All three share one learner profile and the same project tracks.
oh-my-tutor was called pi-tutor before. Profiles and tracks from that time keep working where they are. See State layout.
It adapts to how you like to learn, remembers what you're learning, resumes topics over time, and guides you with hint-first help instead of jumping straight to solutions.
What this is
oh-my-tutor is a tutor package for pi and a plugin for Claude Code. It is meant for learning while coding — not just getting answers, but building understanding, practicing in small steps, and keeping momentum across sessions.
What it does
adapts to your learning style and preferences
remembers what you're learning and resumes it later
keeps separate topic folders for different learning tracks
prefers hints, questions, and next steps before full solutions
helps you reflect on progress, blockers, and what to do next
supports learning through small projects, exercises, and repeated practice
Install
From npm
pi install npm:oh-my-tutor
From GitHub
pi install https://github.com/denismrvoljak/oh-my-tutor
Local path install
Use this when developing on the package itself:
pi install /absolute/path/to/oh-my-tutor
pi list
Project-local install
Use this when you want a clean temporary environment or project-scoped setup:
pi install -l /absolute/path/to/oh-my-tutor
pi list --approve
Pi 1.x ignores project-local packages until you trust the project. --approve trusts it for one run.
One-off test
pi -e npm:oh-my-tutor
Then open pi and enable tutor mode:
/tutor on
Claude Code
This repository is also a Claude Code plugin and marketplace:
For local development, run claude --plugin-dir /absolute/path/to/oh-my-tutor.
In Claude Code, the commands carry the plugin prefix: /tutor:tutor on, /tutor:hint, /tutor:tutor-implementation, and so on. A UserPromptSubmit hook (claude/user-prompt-submit.mjs) replaces the Pi extension. Tutor mode applies per session. The plugin uses the same learner profile and project tracks as Pi. The hook needs Node 22.18 or later.
While tutor mode is on, Pi shows ○ 🦉 tutor: ON in its footer. The dot lights up while the agent is working.
Claude Code shows 🦉 tutor: ON as a notice when you change tutor mode. It can also show the badge in its status line, but a plugin cannot set the status line for you. The first time you run /tutor:tutor on, Claude offers to add this to ~/.claude/settings.json:
The status line prints nothing while tutor mode is off. If you already have a status line, Claude offers to add the badge to your script and does not replace it. Your script must pass its stdin to node ~/.oh-my-tutor/statusline.mjs and print the output. Claude makes the offer once. To get it again, delete ~/.oh-my-tutor/statusline-offered.
Codex (experimental)
Codex installs the same plugin from the same marketplace:
Codex has no plugin slash commands, so type @tutor on, @tutor off or @tutor status.
Codex skips plugin hooks until you approve them. Run /hooks in codex and approve the oh-my-tutor hook. Codex asks again after every plugin update, and a plugin cannot change that. The two modes differ:
Hook approved
Hook not approved
@tutor on
Works, per session
Works through the tutor skill, for the current conversation only
Learner profile and track context
Added on every turn
Read once, when you turn tutor mode on
$hint, $reflect, $next_step, $start_tutoring
Work
Not available
Tutor badge
🦉 tutor: ON leads the hook context that Codex shows for each turn
None
Codex has no status line item that a plugin can set, so the footer cannot show tutor mode.
What it includes
/tutor on
/tutor off
/tutor status
conversational onboarding that creates learner-profile.md
topic tracks under tracks/<topic-folder>/
track-aware prompt templates:
/start_tutoring
/hint
/reflect
/next_step
track-aware skills for implementation mentoring and topic learning
guards that require tutor mode to be on before tutor workflows run