
devcoach
io.github.UltimaPhoenix由 GitHub 帳號 UltimaPhoenix 發布v2.7.1更新於 Oct 24, 2026
Progressive in-context technical coaching in your AI agent — one local, free lesson per task.
概覽
一個本機 MCP 伺服器,在 AI 代理完成任務後提供一則簡短、個人化的技術課程,並以本機知識檔案追蹤學習進度。
- 可以做什麼
- 在代理完成任務後推送一張簡短課程卡片,依你已知的程度調整深度並跳過已掌握的主題,可用「已會/已懂/沒跟上」回饋影響後續課程。管理知識檔案:檢視附信心分數的主題地圖、直接調整分數,並透過引導流程從本機專案歷史或對話式問答建立檔案。瀏覽、收藏、篩選和回顧課程歷史,並對單一課程記錄回饋。把課程以可複製文字、連結或檔案形式分享給同事,或匯入他人的課程。開啟本機網頁儀表板,調整每日課程數、最小間隔等設定,並備份或還原檔案。
- 適用情境
- 適合讓 AI 代理承擔大量寫程式工作、又希望從已完成任務中持續學習的開發者。最適合在桌面端使用 Claude Code、Claude Desktop、Gemini CLI、Codex CLI、Cursor、Windsurf 等相容 MCP 用戶端的使用者。
- 執行需求
- 以 stdio 本機程序執行,需要 Node.js 24 或更新版本(使用內建的 node:sqlite 模組)。可透過 npm(npx devcoach)、Homebrew、Claude Code 外掛或 Claude Desktop 擴充套件安裝。未宣告需要帳號、API 金鑰或環境變數。資料存放在使用者家目錄下的 SQLite 檔案。不支援 claude.ai 網頁版。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 devcoach,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
devcoach
[devcoach — progressive technical coaching, right inside your AI agent]
[npm] [CI] [Quality Gate] [Coverage] [Node] [Docs] [License]
Stay sharp while your AI does the work.
devcoach connects to Claude Code, Claude Desktop, Gemini CLI (beta), Codex CLI (beta), Cursor, Windsurf, and other MCP-compatible tools. When your agent finishes a task, devcoach teaches you one thing from it that you don't know yet: it keeps a map of what you already know precisely so it can skip it, and pitches each lesson at your level — no generic tutorials, no repeated topics, nothing to open.
Everything runs locally. No data leaves your machine. One SQLite file at ~/.devcoach/coaching.db.
Built on the official Model Context Protocol TypeScript SDK, Node's embedded
node:sqlite, Hono (web dashboard), and Commander (CLI). Requires Node.js ≥ 24.
Why devcoach?
AI agents now write much of our code — which makes it easy to ship more while understanding less. devcoach turns the tasks your agent finishes into short, in-context lessons on what you don't know yet, so you keep learning as you go. The deeper bet: as AI grows more capable, the scarce skill becomes validating what it produces — and that ability only survives if you keep practicing it.
How it works
→ Full decision flow: session startup · lesson selection · depth calibration
Privacy by design
Everything stays on your machine. No telemetry, no accounts, no calls home. Just one SQLite file.
Installation
devcoach runs locally — a stdio MCP server that stores everything in ~/.devcoach/coaching.db on the machine where your agent runs. It works in Claude Code, Claude Desktop, Gemini CLI (beta), and Codex CLI (beta), but not on claude.ai web (which only supports hosted/remote connectors).
Requires Node.js ≥ 24 (devcoach uses the embedded node:sqlite module, available only from Node 24 onward).
Pick by how you like to work — each section is self-contained (install and connect):
- Developer, comfortable in a terminal → Homebrew — one
brew install, and you get thedevcoachCLI too. - Prefer a one-click, no-terminal setup → the Claude Code plugin or the
.mcpbextension. - Registry-aware MCP client? devcoach is listed in the official MCP Registry as
io.github.UltimaPhoenix/devcoach— install it straight from there. - Anything else (npx, manual config, other agents, claude.ai web) is under Other install methods.
Homebrew (recommended for developers)
macOS / Linux. Add and trust the tap once, install, then connect — you also get the devcoach CLI (so devcoach ui and the CLI work without an npx prefix):
brew tap registers the third-party repository; brew trust --tap marks it trusted so Homebrew will load its formulae when HOMEBREW_REQUIRE_TAP_TRUST is set. Both are one-time. To update later: brew upgrade devcoach, then devcoach install again — Homebrew updates only the binary, the hooks and the skill it wired into your agents are refreshed by that second command (the Claude Code plugin does this automatically, which is why plugin + Homebrew is the nicest combination for Claude Code users: the plugin owns the coaching wiring, Homebrew adds the CLI — and then you skip devcoach install). One-liner: brew install UltimaPhoenix/tap/devcoach (run brew trust --tap UltimaPhoenix/tap first if your Homebrew enforces tap trust). The formula declares depends_on "node", so Homebrew pulls in a recent Node automatically.
Claude Code plugin (recommended for Claude Code)
The simplest way to add devcoach to Claude Code — one click, nothing to configure. It bundles everything (MCP server + automatic-coaching Stop hooks + skill), so don't also run devcoach install (or the Stop hooks get registered twice).
The MCP server, hooks, and skill activate on install — no restart needed. Open the web dashboard right from Claude Code with /devcoach:ui (or just ask — the open_ui tool); /devcoach:share and /devcoach:import hand lessons around; /devcoach:course turns a lesson you couldn't follow into a step-by-step course. Update later with /plugin marketplace update ultimaphoenix. Want what's coming next? The beta channel installs the latest canary as devcoach@ultimaphoenix-beta.
The plugin does not add the devcoach CLI, but the CLI stays a handy companion when you want the dashboard or your data without going through Claude — devcoach ui, stats, lessons, share / import, backup: run them with npx -y devcoach …, or install Homebrew / npm i -g devcoach for a bare devcoach. Just never run devcoach install next to the plugin — it owns the hooks.
Offline install (no marketplace access)
See Claude Code plugin for how it works.
Claude Desktop extension (.mcpb) (recommended for Claude Desktop) — Beta
A single bundle that runs on Claude Desktop's built-in runtime — no Node or terminal needed. Every GitHub Release ships one:
- Download
devcoach-<version>.mcpbfrom the latest release - Claude Desktop → Settings → Extensions → Install Extension… → pick the
.mcpb
The bundle is self-signed, so Claude Desktop installs it as an unverified publisher (a real code-signing cert would be needed for a verified signature). Prefer to build it from source?
Other install methods — Beta
npx / npm CLI (any MCP agent — no install)
No install required — npx runs devcoach on demand. For Claude Code and Claude Desktop, one command registers the MCP server, wires up automatic lesson delivery (Stop hooks), and installs the coaching skill into ~/.claude/skills/devcoach/:
Restart your agent afterward. Prefer a global binary? npm install -g devcoach, then run devcoach install (and drop the npx -y prefix everywhere). After upgrading devcoach, re-run devcoach install to refresh the skill — devcoach stats reminds you when it's out of date.
Canary builds: every change merged into the develop branch is published to npm under the next tag — npx -y devcoach@next (or npm install -g devcoach@next) runs the unreleased version, documented at ultimaphoenix.github.io/dev-coach/next. latest stays the last release.
Manual MCP config for Claude Code (if devcoach install isn't available)
Option A — via the claude mcp CLI (recommended):
Option B — edit ~/.claude.json directly:
Then add the hooks to ~/.claude/settings.json for automatic lesson delivery — stop-hook decides
after each turn whether a lesson is due, prompt-hook primes the model up front when one is:
Tip: a global install puts
devcoachon yourPATH, so you can drop thenpx -yprefix.devcoach installdetects this automatically. Using the Claude Code plugin (above)? Skip the hooks here — the plugin already provides them.
Gemini CLI — full coaching loop (hooks + skill) — Beta
One command registers the MCP server, the AfterAgent/BeforeAgent lesson hooks, and the coaching skill:
Or install the bundled Gemini extension instead: download devcoach-gemini-extension-<version>.zip from the latest release, unzip, then gemini extensions install <folder>. Pick one of the two (both provide the same hooks; devcoach detects the extension and skips duplicates). Details: docs/install/gemini-cli.md.
Codex CLI — full coaching loop (hooks + skill) — Beta
One command registers the MCP server (codex mcp add), the Stop/UserPromptSubmit lesson hooks (~/.codex/hooks.json), and the coaching skill (~/.agents/skills/):
Codex asks you to trust the new hooks once on the next run — approve them or coaching stays inert. Details: docs/install/codex.md.
Other MCP agents (Cursor, Windsurf, Cline, Continue, Zed…)
Add this to your agent's MCP config file (or, if your client browses the MCP Registry, install io.github.UltimaPhoenix/devcoach from there):
Stop hooks (automatic lesson delivery after each task) exist for Claude Code, Gemini CLI, and Codex CLI. The agents in this table have full access to all MCP tools and resources — coaching can be triggered manually or by prompting your agent.
claude.ai web (skill copy — no MCP)
Claude.ai does not support MCP servers. Install the coaching instructions as a skill instead:
- Copy the content of
assets/SKILL.md - Go to claude.ai → Settings → Custom instructions (or Skills, depending on your plan)
- Paste the content and save
This gives claude.ai the coaching behaviour without the MCP tools (lesson logging and profile tracking will not work).
Keep the skill up to date. For Claude Code / Claude Desktop, the skill is served automatically (via the MCP prompt or the plugin) and is always current. If you copied it manually to claude.ai, re-paste the latest
SKILL.mdafter each devcoach update.
Onboarding
The first time your agent connects to devcoach it detects that your profile isn't set up and walks you through it inline — no separate command needed. (Prefer the terminal? devcoach setup runs the same wizard.)
Phase 1 — Choose how to set up your profile
devcoach scans your full local Claude Code history (every project the agent has worked in, ranked by recent activity — file and activity metadata only, never prompt text) and offers four ways to build the profile:
Phase 2 — Build your profile
Automatic (strongly recommended)
Builds the whole profile — topics, confidence scores, groups, and the coaching notebook — in one pass from the stack detected across your history. No questions: you review and adjust the result afterwards (in chat, with the CLI, or in the dashboard).
Automatic (Deep)
Opt-in. Everything Automatic does, plus a separate subagent reads the real conversation text of your local Claude Code session transcripts (~/.claude/projects/) for the most accurate profile and notebook it can produce. A metadata-only pre-check runs first over a rolling 3-month window; if it finds more than 8 projects, devcoach asks whether to narrow the window, proceed with the 25 most recent, or pick specific projects. The agent says so up front: this shares more of your own local history with the model than the metadata scan does — once, on this machine, as a setup step.
Guided
Prefer to describe your stack yourself? devcoach asks about each technology and your confidence level (1–3 still learning · 4–6 comfortable · 7–9 strong · 10 expert), agrees the topic groups with you, then saves the profile.
Import backup
On a new machine or reinstalling? Provide the path to your backup zip and your full profile — knowledge map, lessons, settings, and notebook — is restored instantly.
Phase 3 — Profile saved, coaching begins
After saving, your agent shows what was set up, grouped the way your knowledge map is organised — for the Automatic modes this is your first look at it, so it's the moment to ask for changes:
That's it. You go back to work. Coaching happens silently in the background.
Your first lesson
You work on a task as normal. After your agent responds, devcoach appends a lesson:
Reply y (already knew it — confidence goes up), u (new and clear) or n (too dense — kept as a seed for a step-by-step course) to shape future lessons — or just move on: no reply means no change.
Screenshots
Context & personalization
Every lesson stores where it happened — your project folder, repository, branch, commit hash, editor. You can also personalize your coaching with a learning notebook at ~/.devcoach/learning-state.md that shapes which topics devcoach prioritises and how deep the lessons go.
→ The coaching notebook · Web dashboard guide
Web dashboard
Open the dashboard at any time to review your progress, edit your profile, or manage settings:
Using the Claude Code plugin? Type /devcoach:ui in Claude Code instead — no install needed (/devcoach:ui stop closes it).
Full reference: docs/usage/web-ui.md
Sharing lessons
A lesson that landed for you is one action away from a teammate — as copyable text (the card plus one devcoach:lesson:1:… line), a server-less link, or a .devcoach.md file. The receiver pastes, clicks or drops it into their own devcoach, where it joins the log as shared by you and never touches their daily limit. Only the lesson travels unless you include where it happened; a local path never does.
From the dashboard: ↗ Share on a lesson and + Import on the Lessons page (drop a .devcoach.md anywhere). From your agent: "share the last lesson", "import this devcoach lesson: …" — with the plugin, /devcoach:share and /devcoach:import. Full guide: docs/usage/sharing.md
CLI reference
The CLI is a secondary interface for querying and managing your coaching data. Everything is also available in the web dashboard. Run devcoach --help or devcoach <command> --help for full usage.
(Prefix with npx -y if you haven't installed globally.) Full reference: docs/usage/cli.md
Configuration
By default: up to 2 lessons/day, at least 4 hours apart. Want more coaching? Want less? Change it.
Or use the web dashboard Settings page. See docs/reference/configuration.md for all options.
Expected outcomes
Over a typical work week with 1–2 tasks per day, you'll receive 2–4 lessons aligned to your stack and confidence level. Each lesson takes 30 seconds to read. After a month of normal AI-assisted development, you'll have built a coaching notebook specific to your gaps — exact patterns you struggle with, edge cases you tend to miss, the reasoning behind tools you reach for instinctively.
Too intense? Dial back the frequency: devcoach set max_per_day 1. Want more coaching? Crank it up: devcoach set max_per_day 5. Everything is tunable.
The compounding effect: developers who keep learning while tools get stronger stay in control of the result.
Troubleshooting
"Node version error"
devcoach requires Node.js ≥ 24. Check your version: node --version. If you're below 24, upgrade: brew upgrade node (Homebrew) or nvm install 24 (if using nvm).
"Failed to install plugin devcoach@ultimaphoenix: … invalid manifest … repository: expected string"
Plugin releases up to 1.0.1 shipped a manifest that current Claude Code rejects, so the install stopped before copying anything. Refresh the marketplace so it points at the latest release, then install again:
"MCP server not connecting"
With the Claude Code plugin (plugin:devcoach:devcoach failed to connect): run /devcoach:setup — its first step prints the reason (Node older than 24, npm not on the PATH, no network on the first run) and the fix; then reconnect from /mcp. Do not run devcoach install for a plugin. Details: plugin troubleshooting.
Without the plugin (npm / Homebrew, Claude Desktop): run devcoach doctor: it checks the command each agent starts (Claude Desktop's from claude_desktop_config.json, Claude Code's from ~/.claude.json) — that it exists on the PATH that agent uses, that the Node it names exists and is ≥ 24, and which devcoach version it runs. Then devcoach install --force re-registers it with an absolute command, and you restart the agent. In Claude Desktop's log (~/Library/Logs/Claude/mcp-server-devcoach.log), Failed to spawn process: No such file or directory means devcoach never ran: the command, or the Node behind it, is missing — see When devcoach does not start. Every devcoach start writes one line to that log with its version, Node and install location.
"Coaching isn't firing / no lessons appear"
Run devcoach doctor — it checks the whole wiring (Node version, hook entries in ~/.claude/settings.json — plus ~/.gemini/settings.json and ~/.codex/hooks.json when present — skill, MCP registration, database, pacing counters, rate limit) and ends with a verdict explaining exactly why the next stop would or wouldn't cue a lesson. Remember that pacing is intentionally quiet: with the defaults a lesson is cued only after nudge_every interactions in a session and within the rate limits — that's by design, not a bug. For a live trace, set DEVCOACH_HOOK_DEBUG=1 and watch ~/.devcoach/hook.log: every hook run appends one line with its decision (paced (3/10), rate limited: …, cue). Hooks exist for Claude Code, Gemini CLI (beta), and Codex CLI (beta); other agents (Cursor, Windsurf, Cline) don't support them — coaching is available on demand via MCP tools or manual prompting.
"Stop hook error occurred" next to a lesson
That notice is Claude Code's current labeling of any Stop hook that blocks — including devcoach's lesson cue (the accompanying "🎓 devcoach…" line tells you it's coaching, not a failure). It's harmless, and 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.
"SQLite permission error"
devcoach writes to ~/.devcoach/coaching.db. If you get a permission error, check the directory exists and you have write access: ls -ld ~/.devcoach. If missing, run devcoach install or devcoach setup to initialize it.
Known limitations
- claude.ai web: MCP servers are not supported. You can use the skill copy (coaching behaviour only, no data storage).
- Ephemeral sandboxes: If your agent runs in a fresh sandbox on each restart (like GitHub Codespaces), devcoach cannot persist data across sessions. It works fine for the current session, but lessons won't carry over.
- Windows: devcoach is tested on macOS and Linux. Windows support depends on Node.js ≥ 24 and
node:sqliteavailability (generally solid, but report issues). - Multi-user machines: devcoach writes to
~/.devcoach/, so each user gets their own coaching database. Profiles are not shared.
Uninstallation
One command undoes everything devcoach install wired up — the MCP registration, the hook entries and the skill — for Claude Code and Claude Desktop (add --gemini, --codex or --all for the beta agents). Your coaching data stays unless you ask for it to go:
Run devcoach uninstall before brew uninstall / npm uninstall: Homebrew formulae have no uninstall hook, and once the binary is gone the hooks left in ~/.claude/settings.json would error on every turn. Using the Claude Code plugin instead? /plugin uninstall devcoach removes its hooks, skill and server in one go.
Learn more
Full documentation: The README is a quick start. For detailed guides, visit the official docs:
- Why devcoach exists — the philosophy
- Coaching in your agent — onboarding, your first lesson, the feedback loop
- Using the web dashboard — personalise your knowledge map, filter lessons, jump to code context
- CLI reference — all commands for querying and managing data
- Installation — every install method, agent by agent
- Configuration — rate limits, pacing, data location, schema
- Privacy & security — local-first architecture, what is read and stored
- How it works — session startup, coaching loop, lesson selection
- Vision & roadmap — free, local, not commercialized; ideas we're exploring next
- Plugin marketplace — UltimaPhoenix plugin collection
Community
- Star the repo — help others discover it
- GitHub Issues — feature requests, feedback and questions: open an issue
Contributing
Help welcome! See CONTRIBUTING.md to get started.
Development
- MCP Inspector:
npx @modelcontextprotocol/inspector node dist/bin.js mcp - Stack:
@modelcontextprotocol/server(MCP SDK v2) ·node:sqlite· Hono · Commander · Zod · Biome · Vitest · tsup
Branches & releases
developis the integration branch: every PR targets it, and each merge publishes a canary (npx -y devcoach@next, docs at/next/).mainonly receives releases and is always the last published version (the Claude Code self-marketplace installs from it).- A release is one click: run the CI workflow (Run workflow → patch / minor / major) on
develop. CI bumps the version ondevelop, tags it, fast-forwardsmain, then publishes to npm via OIDC provenance, attaches the.mcpb+ plugin zips to a GitHub Release, and updates the Homebrew tap, the plugin marketplace and the MCP Registry. First-time setup: configure a Trusted Publisher on npmjs.com for thedevcoachpackage (GitHub Actions, repoUltimaPhoenix/dev-coach, workflowci.yml).
License
Copyright (C) 2026 UltimaPhoenix
devcoach is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only).
You may use, modify, and distribute it — provided that any modified version you distribute, or run
as a network service, is also released as open source under the AGPL. There is no commercial
license on offer today; if you need to embed devcoach in a closed-source product,
open an issue and ask.
Licensing FAQ
devcoach is and stays 100% free to download, install, and use — for everyone, forever, including at work and on commercial projects. AGPL is not a price tag: you only ever pay if you want to ship a proprietary/closed derivative of devcoach itself without complying with the AGPL.
Using devcoach does not put your code under the AGPL. It runs as a separate process over
stdio/MCP (npx -y devcoach mcp); talking to it at arm's length is not a derivative work — exactly
like querying an AGPL-licensed database. Your own projects keep whatever license you choose.
- ✅ "I use devcoach inside Claude Code while building my closed-source startup app." — Free. Your app stays proprietary, zero obligations.
- ✅ "My whole team installs devcoach to get coaching on our internal/commercial repos." — Free. Using the unmodified tool at a company is fine.
- ⚠️ "I fork devcoach, add a feature, and publish the package or host its dashboard as a public service." — You must release your modified devcoach source under the AGPL.
- 💼 "I want to embed devcoach in my paid product and keep my changes closed." — Not covered by the AGPL — ask first by opening an issue.
Keep using devcoach as a tool/executable (not as an imported library) and the AGPL never reaches your own code.
來源:README.md,提交 650d6e6
工具
0版本歷史
6- v2.7.1最新Oct 8, 2026
- v2.7.0Oct 6, 2026
- v2.6.3Sep 30, 2026
- v2.6.1Sep 29, 2026
- v2.4.0Sep 19, 2026
- v2.3.1Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分