deepwork
This server provides a quality-gated, evidence-first workflow for managing coding tasks, enforcing a structured cycle: inspect, plan, implement, verify, and gate completion.
task_begin: Register a new task by recording its objective, acceptance criteria, workspace root, and optional metadata (non-goals, assumptions, constraints, allowed/protected paths) — establishing the contract before any code changes occur.inspect_repository: Perform a deterministic, read-only inventory of the repository using ripgrep, Git, manifests, and symlink/junction scans, producing a concise snapshot of the codebase before implementation begins.record_plan: Persist a structured, step-by-step implementation plan — including files to change, verification commands, and risks — after inspection and before any writes are permitted, enforcing plan-before-code discipline.run_verification: Execute a single planned test, lint, build, or check command (without a shell), fingerprinting the workspace before and after to detect unexpected mutations; also allows recording evidence that no executable tests apply.task_status: Return the append-only evidence log and current quality-gate stage for a given task (read-only).final_gate: Evaluate the final quality gate, refusing PASS unless inspection, plan, post-change verification, diff summary, and acceptance evidence for every defined criterion are all present.
Provides a quality and safety layer for Windsurf's Cascade, enabling evidence-first development cycles with multi-model execution via Arena mode, task management, and verification gates.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@deepworkrun deep-build on the authentication module"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Deepwork for Windsurf
Documentation | Security policy | Windsurf problem matrix | Claude Code pattern study
Independent community project. Deepwork is not affiliated with or endorsed by Cognition, Windsurf, Devin, or Anthropic.
Deepwork is a max-effort quality-and-safety layer for Cascade. It makes difficult coding work follow an evidence-first cycle: contract, inspect, research, compare designs, plan, checkpoint, implement, verify, review, and only then claim completion. Windsurf's native Arena mode supplies genuine multi-model execution.
It addresses the fixable parts of the recurring problems summarized in research/problem-matrix.md: shallow repository scans, lost requirements, broad edits, repair loops, missing tests, unsupported completion claims, unsafe paths, MCP configuration risk, and weak durable state. The Claude Code pattern study records the official Anthropic mechanisms adapted into the max-effort design.
Components
.windsurf/skills/deep-build/: the reusable@deep-buildprocedure and focused references, includingcapability-extraction.mdfor pushing under-provisioned model tiers..windsurf/workflows/deep-build.md: the 22-step/deep-buildmax-effort runbook..windsurf/workflows/deep-ultra.md: the deep route, adding hypotheses, an adversarial challenge gate, and seven review lenses..windsurf/workflows/deep-ultramax.md: the campaign route for the most complex multi-session work, with a twenty-step plan and a double challenge gate..windsurf/workflows/deep-plan.md,deep-debug.md, anddeep-review.md: plan-only, reproduce-first, and review-panel routes..windsurf/rules/deep-build.md: short always-on behavioral constraints..windsurf/hooks.json: fail-closed pre-action policy and metadata-only post-action audit hooks.src/: a thirteen-tool localdeepworkMCP, four effort profiles, user-global locked state, content-fingerprinted checkpoints/reviews, constrained verifier, and hook engine.ARCHITECTURE.md: the full system design, layer by layer.scripts/install.ps1: idempotent global installation with ownership metadata, predecessor restoration, atomic config writes, and path-link defenses.
Related MCP server: cleanroom-mcp
Max-effort gates
For a non-trivial task, effortProfile: "max" requires:
one measurable completion condition;
three distinct repository-research lanes and eight successful unique file reads, or the complete inventory when the repository has fewer than eight files;
three architecture alternatives and no unresolved design question;
at least eight plan steps, three risks, acceptance-to-test mapping, exact file scope, and rollback;
two content-fingerprinted checkpoints, with every plan step complete in the final checkpoint;
every planned verification command against the current workspace;
correctness, tests, security, error-handling, and simplicity review passes;
only findings at confidence 80-100, with every critical/high issue resolved or disproved;
a passing final gate against current Git scope and acceptance evidence.
Ultra effort
effortProfile: "ultra" exists for high-consequence work and for Enterprise deployments whose hosted models are weaker than the task deserves. It raises every max gate — four research lanes, four design alternatives, twelve plan steps, five risks, twelve unique reads, three checkpoints — and adds three mechanisms:
record_challenge: a mandatory adversarial round with at least three distinct attack vectors against the current design and plan. Writes stay blocked until a round is withstood; an exposed gap forces areviseverdict, a repaired plan, and a fresh challenge.record_hypotheses: competing falsifiable hypotheses with discriminating checks. Any hypothesis left open blocks the final gate.Seven review lenses: the five max lenses plus performance and compatibility.
task_briefing complements the deeper pipeline by rehydrating a fresh or degraded session from durable state — contract, design, plan progress, challenge/hypothesis status, verification results, and workspace-drift detection — instead of chat memory.
Ultramax effort
effortProfile: "ultramax" is the campaign tier for the most complex work: cross-cutting features, migrations, security-sensitive rewrites, and tasks expected to span multiple sessions. It raises every ultra gate again — five research lanes, five design alternatives, a twenty-step plan with eight risks, twenty unique reads, five milestone checkpoints — and requires two withstood adversarial challenge rounds before implementation: one attacking the selected design, one attacking the plan. Revising either invalidates the rounds and forces a fresh challenge. /deep-ultramax is the matching runbook and treats session boundaries as first-class: every resume starts from task_briefing, not chat memory.
Honest boundary
An MCP can expose tools to Cascade; the documented interface cannot switch Cascade's selected Windsurf-hosted model, launch another Cascade, or start Arena. Native Arena Mode is the supported path that runs multiple Windsurf models in isolated sessions/worktrees and charges their credit multipliers additively.
Deepwork mitigates but cannot repair provider outages, editor crashes, billing policy, finite model context, Enterprise allowlists, host MCP bugs, or editor vulnerabilities. The July 8, 2026 GhostApproval disclosure demonstrated a Windsurf trust-boundary failure; check the vendor's current remediation status before relying on editor-level approval UI. Hooks cannot remove filesystem time-of-check/time-of-use races. Use low-privilege OS isolation for untrusted repositories.
The public anthropics/claude-code repository was used as an official workflow reference. Its license is all rights reserved; Deepwork does not copy Claude Code core code or claim to reproduce its private agent loop.
Build and test
npm ci
npm test
node src/cli.js doctorThe automated suite covers max-effort depth gates, real stdio initialization/tool discovery, an external-project task through stdio, official hook payloads, fail-closed internal errors, hardlink/link escapes, Windows short-path aliases and PowerShell encodings, trajectory isolation, hostile command forms, repeat writes, verification-time mutations, stale same-file/untracked changes, every planned command, high-confidence review filtering, and final Git scope enforcement.
Install globally
Clone and validate the package from PowerShell before opening the clone as a Windsurf workspace:
npm ci
npm run check
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\install.ps1The installer:
stages and atomically installs a runtime under
~\.codeium\windsurf\deepwork-runtime;installs the global skill plus
/deep-build,/deep-ultra,/deep-ultramax,/deep-plan,/deep-debug, and/deep-review;appends a bounded managed block to
global_rules.md;merges global hooks without removing existing hooks;
merges one
deepworkentry intomcp_config.json;stores an ownership manifest and predecessor backups, proves the Windows hook launcher, and runs the state/hook/stdio doctor.
Runtime task events and transcript metadata are stored outside projects under ~\.codeium\windsurf\deepwork-state, keyed by the canonical workspace. A repository .deepwork/task.md is used only when the MCP is unavailable and should remain uncommitted. Uninstall intentionally retains deepwork-state as audit/continuity data.
Enterprise administrators may still need to enable or allowlist the MCP. The runtime, skill, workflows, hooks, and MCP configuration are installed and protocol-tested locally; restart Windsurf to reload them, then confirm UI discovery under the account's live Enterprise policy.
Use
For a normal complex task:
Initialize Git and preserve or commit the intended baseline.
Invoke
/deep-buildand mention@deep-build. Use/deep-ultrafor the deep gated route,/deep-ultramaxfor the heaviest multi-session campaigns,/deep-planfor no-edit architecture,/deep-debugfor a defect, or/deep-reviewfor an independent candidate review.Let the workflow call the thirteen
deepworktools and obey blocking hooks. Planned tests/builds run through the approval-bearing verifier; non-Deepwork MCP tools are denied unless their exactserver/toolidentity is deliberately allowlisted.
For deliberate multi-model use of the Enterprise credit pool:
Open the model picker and enter Arena.
Select two strong, different models currently available; avoid Adaptive when deliberate comparison is the goal.
Send the identical
/deep-build @deep-buildcontract to both isolated candidates.Compare research coverage, architecture, diff, tests, risks, and evidence; select a winner.
Run
/deep-reviewwith retained Arena models, resolve high-severity findings, and requiredeepwork.final_gateto pass.
Spend additional prompts on different research hypotheses, architecture challenge, repeated-failure diagnosis, specialized review, and finding validation - not interchangeable summaries.
Completion states
Verified: contract, research, design, traceable plan, completed checkpoints, five-lens review, Git scope, acceptance evidence, every planned command, and current fingerprint passed.Partially verified: useful work exists, but a relevant check is skipped, unavailable, or manual.Blocked: evidence contradicts completion or a required decision/platform capability is unavailable.
If the MCP/final gate is unavailable, the maximum honest status is Partially verified.
WhatsApp and remote control
This repository does not include a WhatsApp bot, hosted API, database, or remote Windsurf controller. The local MCP needs direct repository access, and native Arena is started manually. The documentation site explains a safe notification companion or separately built authenticated job service.
License status
The repository is publicly visible, but no software license has been selected. Public visibility alone does not grant reuse, redistribution, or derivative-work rights.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceAn MCP server that adds engineering discipline to AI-assisted development, enforcing evidence-gated TDD, security review, backup strategy, and deployment generation to turn AI-generated code into production-ready software.Last updated2710MIT
- Alicense-qualityDmaintenanceAn MCP server that enforces the clean-room software reimplementation process with role-gated tools and a tamper-evident audit trail.Last updated142MIT
- Flicense-qualityBmaintenanceAn MCP server that interviews users to capture project planning facts into SQLite and enforces mechanical gates to ensure structured progress.Last updated
- Alicense-qualityAmaintenanceAn MCP server that enhances Claude Code with evidence-first engineering, protocol gates, project-aware verification, auditable traces, and durable autonomous execution.Last updated524MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for generating rough-draft project plans from natural-language prompts.
Official MCP server for Qase — manage test cases, runs, suites, defects via AI tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/saisharan0103/windsurf-deepwork'
If you have feedback or need assistance with the MCP directory API, please join our Discord server