
Misterdev
io.github.dcondrey由 GitHub 账号 dcondrey 发布v0.6.0更新于 Oct 24, 2026
Autonomous LLM build orchestrator that plans, edits, and verifies code across languages.
概览
Misterdev 是一个本地 MCP 服务器兼命令行工具,能根据自然语言目标自主规划、修改并通过校验关卡验证代码库中的改动。
- 可以做什么
- 规划与构建:把目标拆成任务,执行“编辑—验证”循环,以锚定的 SEARCH/REPLACE 修改磁盘文件;也可传入 spec_text 跳过规划直接执行(build)。项目管理:发现并注册项目、列出项目、查看任务状态、运行待办任务(scan、list_projects、status、run)。报告:汇总某次构建的费用、token、各模型台账表现与审计记录,且不重新运行任何内容。自我改进:在后台运行进化流程并轮询进度(evolve_async、job_status)。
- 适用场景
- 适合希望助手在本地代码库中完成多文件代码改动、并且只采信通过项目自身构建、测试、lint 与类型检查关卡的结果,同时能通过 git 自动回滚回归的场景。适合已有可用测试套件、并愿意为自主编辑支付模型费用的开发者。
- 运行要求
- 本地 Python 包(pip install misterdev),需 Python 3.10–3.13 及 git。MCP 服务器需安装 mcp 附加组件,以 misterdev-mcp 通过 stdio 启动。需要 OpenRouter 或 Anthropic 的 API 密钥,通过 OPENROUTER_API_KEY 等环境变量提供。可选附加组件提供本地嵌入、LSP 关卡、Playwright 网页关卡与 MCP 工具托管。
安装
在 SourceWeft 中
- 打开 控制台中的 Misterdev,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
misterdev
[misterdev logo] Autonomous LLM build orchestrator: plans a goal into tasks, edits code with anchored SEARCH/REPLACE, and verifies every change through build/test/lint/typecheck gates before reporting done. Runs as a CLI or MCP server.Point misterdev at a repository and a goal. It reads the codebase as a symbol graph, decomposes the goal into concrete tasks, and works each one in a try-edit-verify loop: it emits an anchored SEARCH/REPLACE edit, applies it against the file on disk, and runs the change through a sequence of correctness gates — build, tests, lint, typecheck, and any optional gates you enable. A gate that fails RED blocks the change; a gate that has nothing to check SKIPs and never blocks. When a change regresses the suite, misterdev reverts it through git. Nothing merges unless it stays green.
Because misterdev only trusts its gates, the loop is honest: "the model said it's done" is never the finish line — the build, the tests, and the diff are.
Install
Python 3.10 – 3.13. Optional extras add capability without bloating the core install:
Extras are all opt-in and timeout-bounded. When an extra's runtime dependency is absent, the gate it powers SKIPs rather than failing.
What it does
Autonomous build loop
Give misterdev a goal and it drives the whole cycle: analyze the project, plan tasks, edit, and validate — repeating until the goal is met or the budget is spent. Edits are anchored SEARCH/REPLACE hunks: the model emits only the changed regions, which are applied against the on-disk file, so a 5,000-line module is edited without reprinting it and without hitting the output-token ceiling. Matching tries exact first, then tolerates whitespace and indentation drift, always requiring a single unique anchor so a partial file is never written.
Polyglot symbol-graph context
A tree-sitter symbol graph gives misterdev structural understanding of Python, Rust, TypeScript/JavaScript, Go, Java, C/C++, C#, Swift, and Kotlin. Per-file outlines plus a whole-project structural map feed planning and editing, and large files are sent as a symbol outline plus verbatim windows of the task-relevant symbols — so context and cost scale with the edit, not with the file.
Correctness gates
Every change runs through an ordered gate sequence: build → lint → tests → typecheck, with optional gates layered on top — an adversarial critic (an independent second model that reviews each diff before it is applied), goal-check, claim-verifier, mutation scoring, runtime-smoke, web, and vision verification. A gate that fails RED blocks the change; a gate with nothing to check SKIPs and never blocks. Regressions are reverted via git, so a working tree only ever moves forward.
Dynamic model selection
misterdev keeps a per-model performance ledger and pairs it with a cost-aware selector that picks for quality-per-dollar across the full breadth of OpenRouter — routing each task up a capability ladder (harvested free / cheap → a strong mid-tier → a frontier tier) and escalating to a stronger model only when a cheaper one can't clear the gates. The strongest tier is reserved for the final attempt, so frontier spend is the rare safety net, not the default; a hard task that a mid model stalls on is finished by a frontier model, while easy tasks resolve on free/cheap ones. Quality never drops because a weak model that writes bad code fails the gate and the policy climbs. It runs against OpenRouter or Anthropic with automatic failover, caches responses to avoid paying twice, and token budgeting keeps spend inside the ceiling you set.
Parallel worktrees
Disjoint tasks run concurrently, each in its own isolated git worktree, so independent work doesn't contend for the tree. An integration gate re-checks each wave against the full suite and reverts any task that regresses it — parallelism without cross-contamination.
Self-improving
misterdev keeps a durable, fingerprinted stream of its own real failures and runs an AlphaEvolve-style keep-if-better loop over its own source: it attributes what breaks, classifies why (harness artifact vs observation gap vs capability), proposes a targeted structural self-edit, and promotes it only when it beats the champion on a held-out task set it never optimized against — with zero regressions. A reward-hacking guardrail walls off the tests and benchmark. The result is a loop that removes whole failure classes over time without overfitting to any one benchmark. See docs/path-to-100.md.
Run it with misterdev evolve --benchmark <polyglot-benchmark checkout> --workdir <scratch dir> (dry-run by default; add --live to actually apply/gate/promote, --from-failures to target the real-build failure stream instead of the benchmark's worst niche). evolution.benchmark_dir/evolution.noise_band in project.yaml set the defaults so a caller can omit the matching flags; both are opt-in and unset by default. An evolve_async MCP tool runs the same pass in the background (poll with job_status). A nightly --scheduled --live --from-failures pass also runs via .github/workflows/evolve.yml once the repo secret OPENROUTER_API_KEY is configured — gated by the same exclusive lock + circuit breaker, so an overlapping or repeatedly-failing trigger is a clean no-op.
On the correctness side, misterdev works reproduction-first: for an issue-driven task it synthesizes a failing test from the acceptance criteria, validates that the test actually fails on the clean tree (a test that reproduces nothing is discarded rather than trusted), then drives the fix to turn it green — so the model edits toward a concrete, verified target instead of a description.
Two-timescale evolution (built; opt-in via orchestrator.runtime_tooling; see docs/two-timescale-evolution.md) takes the self-improvement further than a memoryless runtime agent can. At runtime, the model may author a small task-specific helper tool that runs sandboxed (a hardened, network-less container — untrusted code never touches the host or the repo, and with no container engine the capability degrades off); its output feeds the edit. Every invented tool is then captured with the task's outcome into a tool corpus — a free byproduct of normal runs — and a deliberate promotion pass admits the tools whose success generalizes on a held-out task split (baseline drawn from the reproduction corpus) into a persistent, best-per-capability tool library that future runs start from. Fast loop invents; slow loop keeps only the winners; the same held-out gate that guards scaffold self-edits keeps the library general rather than benchmark-overfit. Capability compounds across runs instead of being reinvented each task — the memory the current top open-source scaffolds lack. Run the promotion pass with python -m misterdev.core.evolution.tool_promotion <project>.
Extensibility
Tools, gates, and targets self-register through Python entry points. pip install misterdev-plugin-x adds a capability with zero edits to the core — misterdev discovers the entry point at runtime and wires it in. A working example lives at examples/misterdev-plugin-hello. See Extending misterdev.
Agentic MCP
misterdev can connect to Model Context Protocol servers and let the model call their discovered tools mid-build — bounded, opt-in, and constrained by a tool allowlist. Transports include stdio and remote streamable-http with auth, so you can point it at a hosted MCP gateway like Glama and give the build access to a whole catalog of tools without running any of them locally.
Benchmarks
Gate-verified pass@1 on Aider's polyglot benchmark (Exercism exercises with hidden test suites), anthropic/claude-sonnet-4-6:
A continuous stress run has solved 20/20 across the three languages with zero failures — including the exercises usually cited as hard (bowling, forth, arbitrary-precision decimal). Every solve is judged by the exercise's own hidden tests, not the model's say-so. Full numbers, methodology, and how to reproduce: docs/benchmark-results.md. Test suite: 1,941 passing — docs/TESTING.md.
CLI reference
Don't want to remember flags? Just describe what you want — no project setup or devplan required. misterdev routes it with zero friction:
Action words (add, fix, implement, write, create, …) go straight to
build — no LLM routing call, no confirmation prompt, no ceremony. Query and
management words (list, status, what, how, check, run, …) are
mapped with a model call, shown as a preview, and ask before anything mutating:
The flag-based commands below still work for scripts and power users.
The misterdev command drives everything:
Plain misterdev with no subcommand launches interactive planning.
misterdev build flags
The prompt is free text or a mode word — debug, complete, review, or new <description>.
Drive it from an AI client (MCP server)
misterdev also ships as an MCP server (misterdev-mcp), so you can drive it
in plain English from Claude Desktop, Claude Code, Cursor, or any MCP client —
no flags to remember. The client just calls a tool (build, scan, status,
list_projects, run); the entire orchestration runs inside misterdev's own
process with its own model and context budget, and only a short summary
returns to the client — your codebase never enters the client's context window.
Then just ask: "Have misterdev add rate limiting to the API, keep it under $5."
Mutating tools (build, run) refuse a dirty working tree and carry a
conservative default budget.
Claude Code integration. The build tool accepts a spec_text parameter.
Pass a complete spec written by Claude and misterdev skips its own analysis and
spec-generation phases, going straight to decompose → execute → verify using
your codebase's own gate suite. Claude handles the design; misterdev handles the
execution, correctness gates, and rollback:
Requires the mcp extra: pip install 'misterdev[mcp]'.
Extending misterdev
A plugin is an ordinary Python package that declares entry points in the misterdev.* groups. Install it, and misterdev picks it up — no core edits.
A tool is a class; a gate is a callable returning a GateOutcome:
Targets register the same way through the misterdev.targets group. The full, runnable example — tool, gate, pyproject.toml, and notes — is at examples/misterdev-plugin-hello.
Configuration
A project.yaml is created automatically when you first run misterdev in a directory — no setup required to get started. Drop a custom one in the repo root to specify build/test/lint commands, model, budget, and gates.
Key knobs:
- Model & budget —
llm.model, provider/failover, and the run's dollar ceiling (also--budget). - Gates — optional gates (adversarial critic, mutation, runtime-smoke, web, vision, goal-check) are off by default and enabled under the
orchestrator.*keys. - MCP — declare servers under
mcp.serversand enable tool use withorchestrator.mcp_enabled/orchestrator.mcp_tool_use; point at a remote gateway for hosted tool catalogs. - Targets — a
targets:block gives a polyglot monorepo per-language build/test/lint, routed per task.
Guides: Getting started · Configuration · Plugins · MCP. project.yaml.example documents every configuration key.
Requirements
- Python 3.10 – 3.13
- git (branch-per-task, worktrees, and rollback all run through it)
- An API key for OpenRouter or Anthropic
- Optional per-gate toolchains — a Playwright browser for the web gate, a language server for the LSP gate, an MCP SDK for the tool-host substrate (all installed via the matching extra)
Development
Contributions are welcome — see CONTRIBUTING.md, and open an issue or a pull request on GitHub.
License
misterdev is dual-licensed:
- AGPL-3.0-or-later — free for open-source use under the terms of the GNU Affero General Public License.
- Commercial license — for use in a closed-source or proprietary product without AGPL obligations.
Choose the one that fits your project.
Built by David Condrey ·
github.com/dcondrey/misterdev
The static mark lives at assets/logo.svg.
来源:README.md,提交 3889e65
工具
0版本历史
1- v0.6.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分