Troubleshooting
This page maps devkit symptoms to safe fixes. Start with devkit status and devkit doctor.
devkit status # version, source/channel, sync age, missing tools
devkit doctor # deep check: symlinks, personal config, tools
devkit version # installed versionsSymptom, cause and fix
| Symptom | Cause | Fix | Verify |
|---|---|---|---|
| Signature or checksum error | Artifact incomplete, changed, or from the wrong source | Check devkit config show, then devkit sync. If it still stops, do not bypass it. | devkit status shows the expected version |
| Skills or agents missing | Sync incomplete | devkit sync, then devkit doctor. | devkit list skills shows entries |
| Personal skill seems overwritten | Name collision; the guard kept your file and left the shared one inactive | Rename one of the two. | devkit doctor reports no collision |
| Config is stale | Background fetch not applied yet | devkit sync. | Sync age is fresh in devkit status |
| Tool missing, such as gitleaks | Not installed | devkit tools --install <name> or devkit sync. | No missing tools in devkit status |
| Wrong tool version | Older binary first in PATH | Check which -a <tool> before removing a foreign copy; then devkit sync. | Compare with the pin; pen uses pen version, pi-mcp-adapter has no version flag |
| Regression after update | New version is unwanted | devkit rollback or devkit rollback <version>. | devkit status shows the target |
| Hooks do not fire | Hooks not wired | devkit sync; devkit hook-install wires only the hooks. | Expected hook output appears |
| Need to switch the setup off | Debugging, foreign machine or foreign repository | devkit off removes links and hooks but keeps version and config; devkit on restores them. | devkit status says off |
| Doctor says a default MCP server is disabled | /mcp wrote it to disabledMcpServers; claude mcp remove does not clear that | Re-enable it in /mcp. | devkit doctor no longer names it |
Startup warns about Write(...) permissions | Legacy Write(path) rule | devkit init removes it where Edit(path) exists. | No warning at startup |
git push stops with sandbox proxy refused SSH auth to github.com | The Claude Code sandbox proxy passes only HTTP(S), never SSH | Once per machine: git config --global url."https://github.com/".insteadOf "git@github.com:", then gh auth setup-git. | git push --dry-run passes |
SPOTLIGHT_INDEXED; Mac slow during builds | Spotlight indexes build/dependency paths | Add the code folder to System Settings › Spotlight privacy. New devkit builds use target.noindex. | Doctor no longer prints SPOTLIGHT_INDEXED |
fseventsd load without a build; doctor warns about removed-worktree daemons | Codegraph daemon outlived its worktree | devkit worktree-gc --apply stops daemons whose roots are gone. | Doctor no longer warns about removed-worktree daemons |
A build waits with DEVKIT_BUILD_WAIT (macOS) | Two heavy devkit builds already run | Wait until a slot frees; DEVKIT_BUILD_SLOTS=<n> raises the cap. | The build starts |
| Context is nearly full | The session is approaching its native context window | Use native compaction. If you open a new coordinator chat, verify custody and bind the existing Run. | orca orchestration run-current shows the same Run |
review-quick reports waiting-for-review-lock | Another review owns this worktree's lock | Wait rather than restart: the queue waits up to 2 hours. | Review starts |
review-prep reports review_package_write step=… on an umask 002 host | A storage path cannot be proven private | Check the named path and its ancestors for foreign write access or ACLs; do not broadly relax permissions. | review-prep creates the package |
| Auto mode keeps prompting for a read-only command | Command not on the default allowlist | /fewer-permission-prompts writes an allowlist into .claude/settings.json. | The command runs without a prompt |
The macOS menu bar switch has its own page with its symptom table.
Retained delegate worktrees
Refused, pending and failed delegate candidates are kept as Git refs before their checkouts expire. The session-start sweep removes owner-free delegate checkouts after 24 idle hours, on configured offload hosts too; live supervisors, terminals and processes are protected, and ignored personal data needs owner reconciliation, not forced deletion.
devkit worktree-gc --owned # inspect
devkit worktree-gc --owned --apply # apply from the primary checkoutResult records live under devkit-retained/ in git rev-parse --git-common-dir; each names the checkout, reason, retained ref and a complete recovery command . List refs with git for-each-ref refs/devkit/retained/. Review a recovered candidate before devkit delegate-return. Retained refs do not expire.
Set up or update a project
devkit init sets up a project checkout for devkit — new, or from an older devkit version — one Git checkout per call. Git is required because Git is the undo.
devkit init --dry-run # shows the plan
devkit init # applies it
devkit init --dry-run # verifies: "Nothing to do"devkit init cleans up stale hooks, model pins and permissions, updates project context and carries CLAUDE.md instructions into AGENTS.md. Differing managed blocks and external links stop the migration; inspect them before retrying.
Closing state | Meaning |
|---|---|
clean | Nothing to do; the project is set up. |
pending | The dry-run found changes; run devkit init without --dry-run. |
applied | Changes were written. |
attention | Nothing was written; a phase stopped short of your decision. |
Full reset
devkit unlink # remove runtime and state; keep MCP client entries
curl -fsSL https://devkit.one-dot.io/install.sh | sh