Skip to main content

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 seeGo to
devcoach <version> needs Node 24 or newerNode too old
Node 22.22.0 is too old: devcoach needs Node 24 or newerNode too old
plugin:devcoach:devcoach failed to connectCan't start
๐ŸŽ“ devcoach is not running: โ€ฆCan't start
Failed to spawn process: No such file or directory in Claude Desktop's logCan't start
Stop hook error occurred next to a lessonHarmless
Failed with non-blocking status code: on every turn, with โ€ฆ/bin/devcoach: not foundAfter 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 deniedCan't write
devcoach hooks are registered TWICE, 2 devcoach plugins enabled or 2 devcoach Stop entriesCounted twice
Failed to install plugin devcoach@ultimaphoenix: โ€ฆ invalid manifestOld 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 importedSharing
A share link's page says no dashboard answered, cannot check it, or hides the Import buttonSharing
No message, and no lessonNo lesson
A โœ— or โ†’ line in devcoach doctorReading 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).

devcoach doctor
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

An npm global install under nvm, after devcoach install, with lessons. Every check passes; the โ†’ lines are notes.
MarkWhat 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 run devcoach install --force.
  • Verdict (the last lines): โ†’ the next eligible stop would NOT cue a lesson with ยท pacing: next stop would be 1/10 is 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
SectionWhat it checks
EnvironmentThe 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 wiringThe 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 DesktopWhen it is installed: the command Claude Desktop starts, checked the same way (more)
Gemini CLI wiring, Codex CLI wiringWhen present: the hook entries in ~/.gemini/settings.json and ~/.codex/hooks.json, the skill, the MCP entry
Database & pacingThe database and its schema, onboarding, your settings, the pacing counters, a pending cue, the rate limit
VerdictWhy the next stop would or wouldn't cue a lesson

Node is too oldโ€‹

A devcoach command, or Claude Desktop's log
devcoach 2.7.1 needs Node 24 or newer (it uses the built-in node:sqlite); this is Node 22.22.0 at /opt/node22/bin/node. Upgrade Node, then restart.
The Claude Code plugin: /devcoach:setup, or the hooks' notice
Node 22.22.0 is too old: devcoach needs Node 24 or newer (it uses the built-in node:sqlite). Upgrade Node (e.g. `brew upgrade node`), then restart.

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 withAfter upgrading Node
npm install -g under nvmInstall devcoach again on Node 24, then run devcoach install --force
Homebrew, Scoop, the Windows installerNot affected: they bring their own Node
The Claude Desktop extensionIt runs on Claude Desktop's built-in Node: update Claude Desktop

The agent cannot start devcoachโ€‹

Claude Code shows plugin:devcoach:devcoach failed to connect, or the hooks show a notice like this one, at most once a day:

Claude Code, from the plugin's hooks
๐ŸŽ“ devcoach is not running: could not install devcoach 2.7.1 from npm (network needed on first use). Log: ~/.claude/plugins/data/devcoach-ultimaphoenix/install.log Run /devcoach:setup for details.
  1. Type /devcoach:setup. Its first step prints the reason and the fix:
    • Node older than 24
    • npm not on the PATH
    • no network on the first run
  2. 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.

"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:

Claude Code, with the notice
๐ŸŽ“ devcoach: checking whether a lesson is dueโ€ฆ

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:

CheckWhere it stops: what you see โ†’ what to do
1 ยท Hooks wireddoctor: โœ— no devcoach hooks โ†’ run devcoach install
2 ยท Database not from a newer devcoacherror: SchemaTooNewError โ†’ update this install
3 ยท Profile set uponboarding cue โ†’ answer the setup question
4 ยท No course in progresscourse in progress โ†’ finish or abandon the course
5 ยท Not in plan modeplan 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 hoursrate limited: Daily limit reached โ†’ wait, or raise max_per_day
8 ยท 4 hours since the last onerate limited: Too soon โ†’ wait, or lower min_gap_minutes
All passedcue (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.

Quiet on purpose

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.

Other agents

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:

~/.devcoach/hook.log
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?
DecisionWhat it means
course in progress โ€” cues pausedA 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 primeChecked 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 continuationThe 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 surface. The dots stand for the two versions and their schema numbers
The coaching database was upgraded by devcoach โ€ฆ (schema vโ€ฆ); this is devcoach โ€ฆ (schema vโ€ฆ). Reads work; writes need devcoach โ‰ฅ โ€ฆ โ€” update this install, or use the newer channel.

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:

WhereWhat happens
The CLIstats, 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 dashboardA โš  Read-only: banner with the message
Your agentdevcoach's tools refuse to save, with the message
devcoach doctorA โœ— line with the message, then this build is READ-ONLY on it: hooks cannot count interactions, lessons cannot be saved
The hooksThey 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 errorWhat 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 fileThe 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 saysFix
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 enabledThe release and the beta plugin are both on. Keep one enabled in /plugin
2 devcoach Stop entriesRun devcoach install: it keeps only the current entry
devcoach hooks are registered TWICE (extension + settings.json), under Gemini CLIdevcoach 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/.

Run devcoach uninstall first

Run 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:

Type in Claude Code
/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 seeCauseFix
This lesson code is damaged or incompleteA character of the code was changed: an email client wrapped it, a chat trimmed it, a model retyped itCopy the whole text again; devcoach re-joins wrapped lines, but not edited characters
too large to be a lessonThe 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 devcoachThe sender runs a newer share formatUpdate 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 importedThe URL points at localhost, a private network or a link-local addressCopy the lesson text instead of the URL
The link page says no dashboard answeredThe dashboard is not running, or runs on another portStart 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 dashboardSafari (WebKit) blocks the background request an https page would make to http://127.0.0.1, so the page skips the check. Nothing is wrongIf 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 itChrome 142+ asks once before a website may reach 127.0.0.1Allow it (icon left of the address bar โ†’ Local network access), then retry; Import works whatever the answer
The link page hides the Import buttonThe 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โ€‹

WhereWhat happens
claude.ai webNot supported: claude.ai cannot run a local (stdio) MCP server. Use Claude Desktop or Claude Code (more)
A container rebuilt for each sessionIn 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)
WindowsBeta. Gemini CLI and Codex CLI hooks on Windows are untested (Windows)
Multi-user machinesdevcoach writes to ~/.devcoach/, so each user gets their own coaching database. Profiles are not shared, and there is nothing to set up