DDAG MCP
Click on "Deploy 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., "@DDAG MCPdecompose the build target into claims and verify them bottom-up"
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.
Decompose DAG (DDAG)
An epistemic scaffold for vibe coding. DDAG turns a build target into a graph of claims, makes a coding agent verify them bottom-up against evidence, and keeps an honest, replayable record of every decision, including the ones that turned out wrong. Agents use it through an MCP server; humans watch it through a live dashboard.

Why
Coding with an agent has two failure modes that a todo list cannot catch:
Sloppy product. The agent reports "done" on things it never checked, and nothing forces it to say what evidence it looked at.
Audits that never end. Every audit pass finds new issues, because the audit is a report, not a plan: nobody can say which properties have been examined by which method, and which have not.
DDAG answers both with one structure. The target is the root claim. Claims are decomposed into parts (arcs point part → whole). A claim can only be judged when all of its parts are solid, so the agent has to work bottom-up. Every judgment carries evidence and is pinned to the git commit and the hashes of the files it cites; when those files change, the judgment is marked stale on the dashboard. Findings are recorded as issues on the claim they refute, with full detail, and a working version is recorded after the commit that concluded it. The root is solid only when every claim under it has been verified. The whole history is an append-only chain of events, replayed deterministically, so the process itself can be read back.
Related MCP server: vibeframe
What's new in 0.4
Targets. One chain carries a main target, the build, and sub-targets for pipelines that consume it, such as publishing. A sub-target's wait never reads as the build being broken.
target_new,target_switch,target_list.Each claim has its own history.
graph_historyreads one claim's chain, one target's, or what happened since a position, with the cause of every reopening named.whysays in a few lines what put a claim in its state.Rounds and pins. A change is described once (
round_record) and cited by the judgments re-anchored after it, which then say one sentence about their own claim. A judgment pins the files it was given, and a claim with parts pins none, so an edit stales only the claims that rest on the edited file.Cheaper to talk to.
graph_stateis one line per claim with the frontier in full, and judgment replies no longer quote the evidence back.Dashboard. A target switcher, a one-sentence judgment with a per-claim timeline, and a graph laid out on depth rings where no arc crosses a claim.
Releases come from CI. A tag runs the tests and publishes through npm trusted publishing, so every version carries a provenance attestation.
Measured by the harness in bench/, which drives each
published version through its public interface only, same cases for all:
One scripted working session | 0.3.2 | 0.4.1 |
Context an agent pays for the session | 40.3 KB | 12.3 KB |
| 72.4 KB | 9.1 KB |
Files pinned per judgment | 4 | 1.1 |
Judgments staled by editing one file (right answer: 1) | 9 | 1 |
Latency of a judgment | 21.6 ms | 20.7 ms, unchanged within noise |
These numbers show mechanisms working and guard against regressions. Whether agents build better software with DDAG is a separate, outcome benchmark that is planned in the same folder and not yet run.
Install
Requires Node.js 22 or later and git. With Claude Code:
claude mcp add --scope user ddag -- npx -y @dreamc0der/ddagThat is the whole setup. The server runs from the folder Claude Code is
opened in and uses ./ddag.json there. The first time it runs it also starts
the dashboard at http://localhost:5199/ as a detached local process, which
keeps running while sessions come and go. To start or restart it by hand:
npx -p @dreamc0der/ddag ddag-dashboard # PORT=... to change the port; DDAG_NO_DASHBOARD=1 stops the auto-startAny other MCP client works the same way: the command is npx -y @dreamc0der/ddag, the
transport is stdio. The package on npm, @dreamc0der/ddag, is only the two built bundles and the
three design documents.
To work from source instead:
git clone https://github.com/DreamC0der-AI/ddag.git
cd ddag
npm install
npm run build:mcp # dist/ddag-mcp.mjs — the agent tool
npm run build:dashboard # dist/ddag-dashboard.mjs — the human view
claude mcp add --scope user ddag -- node /absolute/path/to/ddag/dist/ddag-mcp.mjs
npm run dashboardPrivacy
Everything stays on your machine. The server reads and writes the project
folder it runs in (the chain file, git metadata and hashes of the files a
judgment cites) and a registry of project paths under ~/.ddag/. The
dashboard binds to localhost, is read-only, and serves only registered chain
paths. Nothing is sent anywhere; there is no telemetry and no network access
beyond the loopback interface.
Use
Open any project folder in Claude Code and ask it to build with DDAG:
Build a CLI that ... Use ddag: decompose the target first, verify bottom-up, record what you find.
The first operation creates <folder>/ddag.json and registers the project in
~/.ddag/projects.json (set DDAG_HOME to move the registry). The agent
starts with graph_new, which names the build target as the root claim; on a
folder that already has a chain, graph_new replaces it, so a root that needs
a better wording is restated with mutate instead. From then on:
The agent adds claims with a
verify:criterion that names what evidence settles each one, and arationalefor every structural decision.It works the frontier, the claims whose parts are all solid. Nothing off the frontier can be judged; the server refuses it.
Every
verifycarries evidence written for a reader who was not there, and is pinned to the git HEAD and the files it was given: theartifactspassed with it, or, for a leaf judged without any, the paths its evidence names. A claim with parts rests on its parts and pins no files.Wrong turns are recorded as
verify = invalid, dead ends asdiscard. They are the most useful entries when you read the chain back.When the root turns solid, the target is verified. Standing is one line:
Root vault-cli: SOLID — the target is verified. Frontier: (empty)One project, one chain. The build, its audits, its fixes and its versions
all go on the folder's ddag.json. Several Claude Code sessions may work the
same folder at once: each operation locks the file, catches up on what the
other session wrote, applies against the current state, and writes
atomically. An operation the other session made illegal is refused with the
reason.
Auditing with the graph
An audit is a claim graph, not a report. Ask the agent to audit and it follows the protocol in the tool's instructions:
The root of the audit is the claim in scope, with the attacker model and exclusions in its text, added under the project's target.
It is decomposed by property, never by topic: "a revoked device cannot read the vault", not "authz". Each leaf's
verify:names the method that settles it (a fuzz harness, an interleaving test, crash injection, a review of named functions).The pending leaves are the audit plan. A property that holds is verified with what was run. One shown false is judged invalid (
refute, if it had already been verified;verify= invalid otherwise) and the finding is recorded as an issue on that property.A finding that fits no claim reveals a missing property: add it, then refute it. Growth is visible and bounded by the tree.
The fixer never re-verifies its own fix. After the issue closes, an independent re-examination re-judges the claim. The server says so when the same server process that closed the issue verifies the claim; a reconnected session does not carry that memory, so the evidence of a re-verification names the re-examination that made it.
The root is solid only when every property has been judged by its stated method. What remains unexamined is visible as absence, not as a surprise next round.
See DOCTRINE.md, "Auditing with the Graph".
A target that ships carries two standing parts besides its build, pending from the day it is decomposed: the audit above, and a walkthrough, "a new user with only the README can do everything the README says", settled by a tester session that has no source access and uses only the real interface. Until both are judged, the root says "built", not "done". DOCTRINE.md, "What a Shipped Target Rests On".
Targets
A chain has one main target, the build, and can carry sub-targets for the pipelines that consume it: publishing, deploying, a benchmark run. A sub-target is never a part of the build, so its wait never reads as the build being broken. Each target has its own standing and frontier, and the shells show one at a time:
target_new publish "0.3.2 is published where a user finds it" # or adopt: true to promote an existing claim
target_switch publish # graph_state, graph_audit and the standing line now speak for it
target_list # every target with solid / brokenThe main target keeps its name; a sub-target is named <project>/<id>,
so the dashboard shows vault-cli/publish. A claim from another target can
be linked in as a part and is judged only in its home target; here it is
used. The first target_new on an existing chain migrates it in place:
a project node goes above the old root, which stays the main target, and
every event replays unchanged.
The dashboard
Projects

http://localhost:5199/ lists every registered project: root solid or
broken, latest version and the commit it sits on, event count, frontier size,
open and closed issues, the last event, and the folder. Click a card to open
the project. The Sandbox button opens a random simulator for learning the
operations without a project.
Project view
http://localhost:5199/p/<name> is the live view of one chain. It follows the
file; nothing needs a refresh. Its sections, from the first screenshot:
Toolbar. Project name, root standing (SOLID or BROKEN), the latest version chip (
v0.7.0 @ccadd44, with*when the tree was dirty), the home button and a project switcher.Issues pane (left, collapsible). Every recorded finding with its key, outcome (open, fixed, wontfix, invalid, duplicate), severity, the claim it concerns and its full detail on expand. Filters: all, open, closed. A claim whose issues are all closed but whose judgment is still invalid is tagged "ready to re-verify".
Graph (centre). Nodes are claims; arcs point from part to whole; the root has an inner ring. Green is valid, yellow pending, red invalid. A shadow marks the frontier. A
!badge marks a judgment that is stale, with the changed hunks in the tooltip and the function each falls in when git can name one; a judgment pinned on a dirty tree shows its diff as approximate, so commit before judging when the hunks matter. A count badge shows open issues on the claim in red, or all-closed in grey. Theibutton shows the legend.Detail panel (bottom). The selected claim: its text, verdict and standing; Verify by, the criterion; Judged, the evidence of the last judgment; Audit, what the judgment is pinned to and whether it still matches (
pinned @0719eac*, 5 artifacts, all unchanged since), or which files changed and where; Issues on this claim; Parts and Composes into; and Memory, whether the fingerprint is intact, so a reopened claim heals on its own when its parts are restored.Epistemic operations (top right). The six atoms (Add, Link, Unlink, Mutate, Verify, Doubt), the composites (Revert, Discard, Substitute, Merge, Reverify, Refute), and the Records (Issue, Close, Version). Hover a composite or a record for what it does.
Actions (right). The chain, newest first. Compact shows one line per event with its evidence on hover; verbose explains each event: what was done, its grounds, and what it changed. Versions show as bands.
The dashboard is read-only, serves only registered chain paths, and binds to localhost.
The operations
Everything an agent can do is one of these. The kernel is small on purpose: structure settles nothing and can only reopen doubt; judgment is the only source of trust.
Operation | What it does |
| Articulate a new claim as a part of an existing one, with its |
| Reuse an existing claim as a part; withdraw support. |
| The claim now reads differently. Its judgment reopens. |
| Submit the judgment, valid or invalid, with evidence. Only on the frontier. Pinned to HEAD and the cited files. |
| Withdraw a judgment. |
| Back to the last verified wording. |
| Abandon a line of work. |
| Swap one part for another under the same whole. |
| Two claims are the same claim. |
| Re-judge a stale claim on today's evidence, in one call. |
| Withdraw a valid claim a finding has shown false, and judge it invalid. |
| A topic gets its properties: add the parts it stands for, all or nothing. |
| Record a finding with its full detail on the claim it concerns; close it with an outcome and what changed; the fixer's worklist. |
| Declare a working version after the commit that concluded it; every version with what the chain said of it then. |
| The standing and frontier, one line per node with the frontier nodes in full ( |
| Why a claim is in its current state, in a few lines: what it was last judged on, or the event that reopened it and the claim that event was about. |
| Describe a change once — what moved, how it was checked — and cite it by key ( |
| Start a chain in this folder with the target as its root, replacing any chain already there; open one under it. |
| Add a sub-target (or adopt an existing claim as one); choose the target this session works on; every target with its standing. |
Storage
<project>/ddag.jsonis the chain: an ordered list of events, each with its operation, rationale or evidence, provenance (commit, dirty flag, artifact hashes) and a snapshot. It belongs in the repository; it is the project's decision log.~/.ddag/projects.jsonis the registry of folders that have a chain, which the dashboard reads. A project's name is its folder's basename.
Development
npm test # vitest: kernel laws, chain, MCP server, dashboard, cases
npm run typecheck
npm run dev # the web app with HMR on :5299 (/api proxied to :5199)DESIGN.md is the kernel: what each operation does and what is guaranteed.
DOCTRINE.md is how to play it well: when to open a graph, when to decompose, how to judge, how to repair, how to audit.
ALGORITHMS.md names the kernel's algorithms against the design.
bench/ measures versions side by side; RELEASING.md says how a release goes out.
DDAG is built through DDAG: the repository's own chain and the projects used to exercise it are the author's working record and are not published.
ddag.json,testcases/andtestbed/are ignored, so a chain you start in this folder stays yours.
License
MIT. Built by dream coder.
This server cannot be deployed
Maintenance
Related MCP Connectors
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
Deterministic AI code review, with an audit record. Governance inside the agent loop.
- memoricOAuthio.memoric
Provenance-first database for teams and agents: every value carries sources, rules and coverage.
Deterministic context layer for your codebase: change impact, blast radius, answers with receipts.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables acceptance gates for AI coding-agent runs by recording evidence, running deterministic validation, applying a quality gate, and rendering auditable outcomes.729 PyPIApache 2.0
- AlicenseNot gradedqualityAmaintenanceEnables agentic coding tools to maintain a living, in-repo model of intent, architecture, and code, with deterministic indexing, bidirectional linking, and continuous drift detection for task-scoped context and reconciliation.MIT
- AlicenseNot gradedqualityAmaintenanceEnables agents to query a git-native markdown corpus for the specs governing a file in about two reads, plus supports lexical topic search with expansion. Includes maintenance loops that surface uncovered code and stale governing docs to keep the corpus honest.MIT

weavatrix-qualityofficial
AlicenseNot gradedqualityAmaintenanceEnables coding agents to turn OpenSpec intents and Git changes into revision-bound proofs by planning, selecting, and running the smallest safe protection set, then verifying composite verdicts and explaining evidence or unresolved states.MIT