Troubleshooting
Find the message on your screen in this table and follow its link; with no message at all, start
with devcoach doctor.
If you see thisโ
| You see | Go to |
|---|---|
devcoach <version> needs Node 24 or newer | Node too old |
Node 22.22.0 is too old: devcoach needs Node 24 or newer | Node too old |
plugin:devcoach:devcoach failed to connect | Can't start |
๐ devcoach is not running: โฆ | Can't start |
Failed to spawn process: No such file or directory in Claude Desktop's log | Can't start |
Stop hook error occurred next to a lesson | Harmless |
Failed with non-blocking status code: on every turn, with โฆ/bin/devcoach: not found | After uninstall |
The coaching database was upgraded by devcoach โฆ and Reads work; writes need devcoach โฅ โฆ | Newer database |
attempt to write a readonly database, unable to open database file or EACCES: permission denied | Can't write |
devcoach hooks are registered TWICE, 2 devcoach plugins enabled or 2 devcoach Stop entries | Counted twice |
Failed to install plugin devcoach@ultimaphoenix: โฆ invalid manifest | Old manifest |
This lesson code is damaged or incomplete, too large to be a lesson, shared by a newer devcoach or Only public http(s) URLs can be imported | Sharing |
| A share link's page says no dashboard answered, cannot check it, or hides the Import button | Sharing |
| No message, and no lesson | No lesson |
A โ or โ line in devcoach doctor | Reading doctor |
Reading devcoach doctorโ
devcoach doctor checks the whole wiring, changes nothing, and ends with a Verdict: would the
next turn bring a lesson, and why. Without a devcoach command, run npx -y devcoach doctor. With
the Claude Code plugin, type /devcoach:setup, which runs the plugin's own check (or run it from
a terminal: plugin page).
- Wired
- Not wired yet
- With the plugin
devcoach doctor v2.7.1
Environment
โ Node 24.22.3 via nvm (โฅ 24)
โ this devcoach: npm-global, bound to Node v24.22.3 (nvm) (~/.nvm/versions/node/v24.22.3/lib/node_modules/devcoach)
Claude Code wiring
โ Stop hook wired (1 entry)
โ UserPromptSubmit priming hook wired
โ Claude Code skill installed (current version)
โ MCP server registered (user scope)
โ command resolves to ~/.nvm/versions/node/v24.22.3/bin/devcoach
โ bound to Node v24.22.3 (nvm) โ removing or switching that version breaks it with `Failed to spawn process: No such file or directory`; run `devcoach install --force` after
โ runs on Node 24.22.3 (~/.nvm/versions/node/v24.22.3/bin/node)
โ it runs devcoach 2.7.1
Claude Desktop
โ registered: ~/.nvm/versions/node/v24.22.3/bin/devcoach mcp
โ command resolves to ~/.nvm/versions/node/v24.22.3/bin/devcoach
โ bound to Node v24.22.3 (nvm) โ removing or switching that version breaks it with `Failed to spawn process: No such file or directory`; run `devcoach install --force` after
โ runs on Node 24.22.3 (~/.nvm/versions/node/v24.22.3/bin/node)
โ it runs devcoach 2.7.1
Database & pacing
โ database opens (~/.devcoach/coaching.db)
โ schema v6, last upgraded by devcoach 2.7.1
โ onboarding complete
settings: max_per_day=2 ยท min_gap_minutes=240 ยท nudge_every=10 ยท nudge_scope=session
pacing: 0 session(s) counted, 0 interaction(s) total
โ rate limit: allowed
Verdict
โ the next eligible stop would NOT cue a lesson:
ยท pacing: next stop would be 1/10
ยท rate limit: allowed
devcoach doctor v2.7.1
Environment
โ Node 24.22.3 via nvm (โฅ 24)
โ this devcoach: npm-global, bound to Node v24.22.3 (nvm) (~/.nvm/versions/node/v24.22.3/lib/node_modules/devcoach)
Claude Code wiring
โ no devcoach hooks in ~/.claude/settings.json โ run devcoach install
โ Claude Code skill not installed โ run devcoach install
โ MCP server not found in ~/.claude.json โ it may be registered elsewhere (check with claude mcp get devcoach)
Database & pacing
โ no database yet (~/.devcoach/coaching.db) โ onboarding runs on the first technical task
devcoach doctor v2.7.1
Environment
โ Node 24.22.3 via nvm (โฅ 24)
โ this devcoach: claude-plugin (~/.claude/plugins/data/devcoach-ultimaphoenix/runtime/2.7.1/node_modules/devcoach)
โ Runtime: devcoach plugin ยท devcoach 2.7.1 ยท ~/.claude/plugins/data/devcoach-ultimaphoenix/runtime/2.7.1
Claude Code wiring
โ hooks provided by the devcoach plugin
โ Claude Code skill bundled with the plugin
Database & pacing
โ database opens (~/.devcoach/coaching.db)
โ schema v6, last upgraded by devcoach 2.7.1
โ onboarding complete
settings: max_per_day=2 ยท min_gap_minutes=240 ยท nudge_every=10 ยท nudge_scope=session
pacing: 0 session(s) counted, 0 interaction(s) total
โ rate limit: allowed
Verdict
โ the next eligible stop would NOT cue a lesson:
ยท pacing: next stop would be 1/10
ยท rate limit: allowed
| Mark | What it means |
|---|---|
| โ | The check passed |
| โ | Worth reading. Either a note about your setup (bound to Node โฆ, no database yet), or a missing part with the command that adds it (โ run devcoach install) |
| โ | Broken: that part cannot work. The line says what to run |
bound to Node v24.22.3 (nvm): devcoach lives inside that one Node version. After removing or switching it, install devcoach again on the Node you use, then rundevcoach install --force.- Verdict (the last lines):
โ the next eligible stop would NOT cue a lessonwithยท pacing: next stop would be 1/10is normal between lessons. It checks your profile, the count and the limits; a course or plan mode shows only in the hook log.
What each section of doctor checks
| Section | What it checks |
|---|---|
| Environment | The Node version and its manager (via nvm, via homebrew), and which devcoach install is running (npm-global, homebrew, claude-pluginโฆ) with its path |
| Claude Code wiring | The hook entries in ~/.claude/settings.json (or the plugin's hooks), the devcoach skill, the MCP registration in ~/.claude.json, and the command it starts: found, on which Node, which devcoach version |
| Claude Desktop | When it is installed: the command Claude Desktop starts, checked the same way (more) |
| Gemini CLI wiring, Codex CLI wiring | When present: the hook entries in ~/.gemini/settings.json and ~/.codex/hooks.json, the skill, the MCP entry |
| Database & pacing | The database and its schema, onboarding, your settings, the pacing counters, a pending cue, the rate limit |
| Verdict | Why the next stop would or wouldn't cue a lesson |
Node is too oldโ
devcoach requires Node.js โฅ 24: it uses the SQLite built into Node (node:sqlite). Your agent starts
the node on its own PATH, not the one your shell picked: with nvm, make 24 the default. Then
restart the agent.
node --version # below 24? upgrade:
brew upgrade node # Homebrew
nvm install 24 # nvm
nvm alias default 24
On an older Node the hooks stay silent (the plugin shows its notice once a day), so this can also look like no lesson. Then, depending on how you installed devcoach:
| Installed with | After upgrading Node |
|---|---|
npm install -g under nvm | Install devcoach again on Node 24, then run devcoach install --force |
| Homebrew, Scoop, the Windows installer | Not affected: they bring their own Node |
| The Claude Desktop extension | It runs on Claude Desktop's built-in Node: update Claude Desktop |
The agent cannot start devcoachโ
- Claude Code plugin
- npm, Homebrew, Claude Desktop
Claude Code shows plugin:devcoach:devcoach failed to connect, or the hooks show a notice like this
one, at most once a day:
- Type
/devcoach:setup. Its first step prints the reason and the fix:- Node older than 24
npmnot on the PATH- no network on the first run
- Apply the fix, then reconnect from
/mcp.
Each reason, with the plugin's full diagnosis: plugin troubleshooting.
Do not run devcoach install for a plugin.
Claude Desktop's log shows Failed to spawn process: No such file or directory with no devcoach line
after it: devcoach never ran. The log is ~/Library/Logs/Claude/mcp-server-devcoach.log on macOS and
%APPDATA%\Claude\logs\mcp-server-devcoach.log on Windows.
- Run
devcoach doctor. Under each agent, aโline says what fails: the command is not found, the Node behind it is missing or older than 24, or it runs another devcoach version. - Run
devcoach install --force. It registers the command it finds on your PATH: an absolute path for a Homebrew or npm-global install,npx -y devcoach mcpwhen there is none. For an absolute command, install devcoach with Homebrew ornpm install -gfirst. - Restart the agent.
Claude Desktop step by step, with its log: When devcoach does not start.
"Stop hook error occurred" next to a lessonโ
Nothing to fix: it's harmless. That notice is Claude Code's current labeling of any Stop hook that blocks, including devcoach's lesson cue. The line that comes with it tells you devcoach is checking for a lesson:
By design it's also rare: the UserPromptSubmit priming hook delivers most lessons within the turn, so
the blocking fallback only fires when that didn't happen. In a hook trace it is the
cue (โฆ) line.
No lesson appearsโ
The pace is yours to set. By default a lesson cue comes about every 10 interactions in a chat session, at most 2 lessons a day and at least 4 hours apart, so most turns end without one. When a task ends, the hooks run eight checks in this order and stop at the first one that fails:
| Check | Where it stops: what you see โ what to do |
|---|---|
| 1 ยท Hooks wired | doctor: โ no devcoach hooks โ run devcoach install |
| 2 ยท Database not from a newer devcoach | error: SchemaTooNewError โ update this install |
| 3 ยท Profile set up | onboarding cue โ answer the setup question |
| 4 ยท No course in progress | course in progress โ finish or abandon the course |
| 5 ยท Not in plan mode | plan mode โ leave plan mode |
| 6 ยท 10th counted turn (3rd after an unanswered cue) | paced (4/10) โ keep working, or lower nudge_every |
| 7 ยท Under 2 lessons in 24 hours | rate limited: Daily limit reached โ wait, or raise max_per_day |
| 8 ยท 4 hours since the last one | rate limited: Too soon โ wait, or lower min_gap_minutes |
| All passed | cue (10/10) โ a lesson, or skip_lesson when the task had nothing to teach |
Check 1 shows in devcoach doctor, the others in the hook log. doctor's Verdict
shows the profile, count and limit checks for your next turn, and last skip: "โฆ" after a skipped
cue. A turn held back by a limit still counts, so the lesson comes at the first turn the limits
allow. Why it works this way: How it works.
If the Verdict names the pacing or the rate limit, that is by design. Each number is a setting: to change the pace, see Staying unobtrusive.
devcoach wires automatic lessons only into Claude Code, Gemini CLI (beta) and Codex CLI (beta).
Codex CLI runs the hooks only after you trust them once; doctor reminds you with Codex runs hooks only after you trust them once. Claude Desktop and other MCP agents (Cursor, Windsurf, Cline,
Continue, Zed) get every devcoach tool, but devcoach cannot prompt a lesson after a task there: say
"set up devcoach" once, then ask for one ("teach me something from what we just did").
Trace every hook runโ
Start your agent with DEVCOACH_HOOK_DEBUG=1 and watch ~/.devcoach/hook.log: every hook run
appends one line with its decision.
DEVCOACH_HOOK_DEBUG=1 claude # or gemini, codex
tail -f ~/.devcoach/hook.log # in a second terminal
One session on the demo data:
2026-11-21T23:32:47.045Z prompt-hook 0bfef42a no prime
2026-11-21T23:32:47.206Z stop-hook 0bfef42a course in progress โ cues paused
2026-11-21T23:32:47.951Z prompt-hook 0bfef42a no prime
2026-11-21T23:32:48.076Z stop-hook 0bfef42a paced (1/10)
โฆ
2026-11-21T23:32:48.513Z stop-hook 0bfef42a paced (3/10)
โฆ
2026-11-21T23:32:49.894Z prompt-hook 0bfef42a priming
2026-11-21T23:32:50.023Z stop-hook 0bfef42a cue (10/10)
2026-11-21T23:32:50.472Z stop-hook 0bfef42a hook-forced continuation
โฆ
2026-11-21T23:32:52.658Z prompt-hook 0bfef42a no prime
2026-11-21T23:32:52.785Z stop-hook 0bfef42a rate limited: Too soon: last lesson 0m ago, minimum interval is 4h 0m (3h 59m remaining)
What does each decision mean?
| Decision | What it means |
|---|---|
course in progress โ cues paused | A course is active. Cues pause, without counting, until it is completed or abandoned |
paced (3/10) | This stop counted: 3 of the nudge_every interactions before the next cue |
priming ยท no prime | Checked when you send a prompt: would this turn's stop cue a lesson? If so, the agent is told up front, so the lesson can land inside the reply |
cue (10/10) | The Stop hook asks for the lesson. With priming in place this is the fallback, for a turn that ended without one (see above) |
hook-forced continuation | The extra turn a cue starts. It is never counted |
rate limited: โฆ | The threshold is reached, but max_per_day or min_gap_minutes says not yet. Stops keep counting, so the lesson comes at the first allowed stop |
A newer devcoach upgraded the databaseโ
Every devcoach on your computer shares ~/.devcoach: the Claude Code plugin, a Homebrew or npm CLI,
the beta channel. When a newer one upgrades the database, an older one can only read it:
| Where | What happens |
|---|---|
| The CLI | stats, profile and lessons (when it lists any) end with the message; other reads work without it. A command that writes prints it and exits with status 3 |
| The web dashboard | A โ Read-only: banner with the message |
| Your agent | devcoach's tools refuse to save, with the message |
devcoach doctor | A โ line with the message, then this build is READ-ONLY on it: hooks cannot count interactions, lessons cannot be saved |
| The hooks | They count nothing and cue nothing. The hook log says error: SchemaTooNewError: โฆ |
Update the older install so both run the same version: brew upgrade devcoach,
npm install -g devcoach, or update the plugin. With the beta
plugin, keep the CLI you write with on the same channel.
devcoach cannot write its folderโ
devcoach keeps your data in ~/.devcoach/, so the folder must exist and be writable by you. When it
is not, you get one of these errors:
| The error | What it means |
|---|---|
Error: attempt to write a readonly database | ~/.devcoach belongs to another user, for example root, after a devcoach command run with sudo. Commands that write fail; reads work, and devcoach doctor still says โ database opens |
Error: unable to open database file | The folder exists without a database, and you cannot write in it. Every command fails, reads too, and doctor says โ no database yet |
Error: EACCES: permission denied, mkdir 'โฆ/.devcoach' | devcoach cannot create the folder in your home. Every command fails, reads too, and doctor says โ no database yet |
The hooks fail without a word.
# the owner should be you
ls -ld ~/.devcoach ~/.devcoach/coaching.db
# owned by root? make it yours
sudo chown -R "$USER" ~/.devcoach
# no folder yet? this creates it
devcoach stats
devcoach install does not create the folder. devcoach stats does, and so does devcoach's first use
in your agent.
Every turn counts twiceโ
When devcoach's hooks are registered twice, each turn counts twice toward nudge_every, so cues come
after half the turns. devcoach doctor names it:
devcoach doctor says | Fix |
|---|---|
devcoach hooks are registered TWICE (plugin + settings.json) | devcoach install ran before the plugin was enabled, or while it was disabled: it skips the hooks only while the plugin is on. npx -y devcoach uninstall --claude-code removes its entries and leaves the plugin alone |
2 devcoach plugins enabled | The release and the beta plugin are both on. Keep one enabled in /plugin |
2 devcoach Stop entries | Run devcoach install: it keeps only the current entry |
devcoach hooks are registered TWICE (extension + settings.json), under Gemini CLI | devcoach install --gemini ran before the extension was installed. npx -y devcoach uninstall --gemini removes its entries and leaves the extension alone; or uninstall the extension |
An error on every turn after uninstallingโ
Claude Code shows Failed with non-blocking status code: and your shell's message, such as
/bin/sh: 1: โฆ/bin/devcoach: not found on Linux. The program was removed before
devcoach uninstall ran, so the hooks in ~/.claude/settings.json still call it.
npx -y devcoach doctor shows โ hook command not found: โฆ/bin/devcoach.
Put devcoach back, unwire it, then remove it:
# npm: install -g / uninstall -g
brew install devcoach
devcoach uninstall
brew uninstall devcoach
With Node.js 24 or newer, npx -y devcoach uninstall alone removes the leftover entries. Your lessons
stay in ~/.devcoach/.
devcoach uninstall firstRun devcoach uninstall before brew uninstall, npm uninstall -g or scoop uninstall: these
have no uninstall hook, and once the program is gone the hooks left behind error on every turn. The
Windows installer's uninstall.ps1 runs it for you. The Claude Code plugin removes itself with
/plugin uninstall devcoach@ultimaphoenix. Each method's own steps:
Homebrew, npx / npm,
Windows, Claude Code plugin,
Claude Desktop.
"Failed to install plugin devcoach@ultimaphoenix: โฆ invalid manifest"โ
Plugin releases up to 1.0.1 shipped a manifest that current Claude Code rejects (repository: expected string), so the install stopped before copying anything. Refresh the marketplace so it points at the
latest release, then install again:
/plugin marketplace update ultimaphoenix
/plugin install devcoach@ultimaphoenix
Sharing or importing a lessonโ
The first four rows come up when you import a shared lesson, the last four on the share link's page. How sharing works is in Sharing lessons.
| You see | Cause | Fix |
|---|---|---|
This lesson code is damaged or incomplete | A character of the code was changed: an email client wrapped it, a chat trimmed it, a model retyped it | Copy the whole text again; devcoach re-joins wrapped lines, but not edited characters |
too large to be a lesson | The code is bigger than a real lesson (64,000 characters / 256 KB decoded) | Ask the sender for the .devcoach.md file instead |
shared by a newer devcoach | The sender runs a newer share format | Update devcoach the way you installed it (see Installation), for example npm i -g devcoach@latest or brew upgrade devcoach |
Only public http(s) URLs can be imported | The URL points at localhost, a private network or a link-local address | Copy the lesson text instead of the URL |
| The link page says no dashboard answered | The dashboard is not running, or runs on another port | Start it (devcoach ui, /devcoach:ui) or set the port in the panel, then retry the check; the Import button works either way |
| Safari says it can't check my dashboard | Safari (WebKit) blocks the background request an https page would make to http://127.0.0.1, so the page skips the check. Nothing is wrong | If the dashboard is running, Import works as usual: it opens your dashboard as a normal link. Otherwise use Copy code or Download .devcoach.md |
| Chrome asked to allow local network access, or the page says the browser blocks it | Chrome 142+ asks once before a website may reach 127.0.0.1 | Allow it (icon left of the address bar โ Local network access), then retry; Import works whatever the answer |
| The link page hides the Import button | The code is longer than a URL Node's dashboard accepts (~12,000 characters) | Use Copy code or Download .devcoach.md and import that |
Known limitationsโ
| Where | What happens |
|---|---|
| claude.ai web | Not supported: claude.ai cannot run a local (stdio) MCP server. Use Claude Desktop or Claude Code (more) |
| A container rebuilt for each session | In a CI runner or a rebuilt dev container, ~/.devcoach starts empty, so lessons don't carry over. Set DEVCOACH_DIR to a folder that persists, in the environment your agent starts in (Environment variables) |
| Windows | Beta. Gemini CLI and Codex CLI hooks on Windows are untested (Windows) |
| Multi-user machines | devcoach writes to ~/.devcoach/, so each user gets their own coaching database. Profiles are not shared, and there is nothing to set up |