Open source · Apache-2.0 · a Claude Code plugin

Live spec-driven development
for teams on Claude Code.

Write the spec up front, then let the work ask its questions. dumen keeps every answer in the spec, in git, so the next agent on the next laptop already knows it, and the agents that are running hear it while they work.

claude › /plugin marketplace add nurettincoban/dumen && /plugin install dumen@dumen

The spec, up front

The product, its services, its words and the plan, written before the work starts, as in spec-driven development. Kept in git with everything else.

Its sources of truth

A Claude Design file, an Artifact, a Confluence page: kept in git as a link and a summary of what matters, so every agent has the context, even without a connector.

Decisions, made live

When your agent asks "A or B?" and you answer, the answer becomes a decision every agent follows. You confirm it once. Running agents hear it on their next step.

Together they are one living spec, on a branch of the git remote you already have. No server, nothing else to install.

Real sessions, at the same time

Headless Claude Code with the plugin, several sessions at once on real git repositories, recorded by test/live.mjs. Shortened; temporary paths replaced. Full recordings in docs/transcripts.

  1. Sofia · web-app

    She answers her agent's question

    Slot buttons that show how many tables are left. The backend does not return that yet. She says: save it for the team and put it in force.

    ⏺ Bash(dumen propose --kind ui --rule "Slot buttons show how many tables are left"
        --services web-app --needs "booking-svc: Return remaining tables per slot in GET /slots" ...)
      ⎿ Proposed D-9NWW: Slot buttons show how many tables are left
    ⏺ Bash(dumen approve D-9NWW)
      ⎿ Claude Code asks the person: dumen: it puts D-9NWW "Slot buttons show how many tables are left" [ui] for web-app in force for every agent on the team. It asks booking-svc to: Return remaining tables per slot in GET /slots ...
      ⎿ ✔ The person answers Yes.
  2. Ayşe's agent · booking-svc

    Mid-task, in another session, it hears it

    Ayşe's agent was already running its checks. On its next step, dumen hands it the decision and the work it asks of this service.

    ⏺ Bash(sh check.sh)
      ⎿ go vet: ok
    ⏺ Read(src/slots.go)
      ⎿ [dumen] DECISION NEWS: teammates changed the living spec while you worked ...
        - D-9NWW [ui · web-app] Slot buttons show how many tables are left (approved by sofia@example.com)
          NEEDS FROM booking-svc: Return remaining tables per slot in GET /slots
    ⏺ Something changed while I worked ... List() []string only carries slot names, so it can't hold a remaining-tables count. The decision is binding now, so I'll build GET /slots to include that count rather than ask you again.
  3. Ayşe's agent · booking-svc

    It looks before it asks

    Building the cancel endpoint, it finds the refund rule in the living spec instead of asking Ayşe again.

      ⎿ dumen: this product has a living spec ... This repository is the service booking-svc.
        1. Decisions in force for booking-svc and the whole product ...
           - D-MWEU [product] Cancelled bookings are refunded as store credit
    ⏺ The team already decided this: D-MWEU. I'll follow that for the cancel endpoint, so I won't ask you. Running the tests now.
  4. Deniz · billing-svc

    Meanwhile the rule changes

    Accounting wants refunds back on the card. Deniz tells his agent to change the decision, and confirms the prompt.

    ⏺ Bash(dumen supersede D-MWEU --kind product
        --rule "Cancelled bookings are refunded to the original card, not as store credit" ...)
      ⎿ Claude Code asks the person: dumen: it retires D-MWEU "Cancelled bookings are refunded as store credit" and puts in force "Cancelled bookings are refunded to the original card, not as store credit" [product] for the whole product ...
      ⎿ ✔ The person answers Yes.
  5. Ayşe's agent · booking-svc

    About to stop, it is held back once

    It was about to report "nothing changed". dumen stops it once with the news, and it corrects itself before Ayşe reads a word.

    ⏺ sh test.sh finished with PASS. Nothing changed for the cancel endpoint ...
      ⎿ [dumen, before stopping] DECISION NEWS:
        - D-PEEZ [product] Cancelled bookings are refunded to the original card, not as store credit (approved by deniz@example.com)
          It replaces D-MWEU, which is no longer in force.
    ⏺ Correction to my last message: the decision I said I was following is out of date. Deniz approved D-PEEZ while the tests ran ... Cancelled bookings in src/cancel.go are now refunded to the original card. I haven't written any cancel code yet, so nothing needs undoing.

From design to shipped behavior

A field demo in Claude Code with the dumen plugin, where people answered the prompts themselves. Table for Two is a fictional reservation app built by five separate Claude Code sessions: a PM, a designer, two backend developers and a frontend developer. It was recorded on one Windows machine with one account, with the plugin built from aa40640, one commit before the v0.2.0 release.

  1. The Table for Two design prototype: a card titled Table for two, with 18:00 and 19:00 marked Available, 18:30 greyed out and marked Fully booked, and a disabled Reserve table button. A handoff note beside it lists the choosing, selected and confirmed states and the slot rules.

    Designer The design is the starting point

    The PM wrote the acceptance criteria in a Claude Artifact. The designer made a Claude Design prototype and handed off its states: 18:00 and 19:00 can be chosen, while 18:30 stays visible but disabled.

  2. Claude Code asks: Allow Claude to run this command? The prompt quotes decision D-4P2V: when Reserve table returns 409, the web app refreshes availability, keeps party size two, clears the stale selection and announces That time just booked. The command's one-use ticket is redacted. The buttons are Deny and Allow once.

    PM A person approves the decision

    Development was already under way when the PM added a rule for a time that someone else books first. The rule was proposed as D-4P2V. Claude Code then asked the PM with the decision's exact words, and the PM approved it once. dumen wrote the approved decision to the shared git branch.

  3. The frontend session says: A decision D-4P2V (ux, web-app) arrived through the dumen hook and is now in force, so I'm changing the 409 path in public/app.js. Its task list shows the browser test in progress and a new step: Apply D-4P2V to 409 path and tighten test.

    Frontend session A running session hears it

    The frontend session's first prompt held neither the decision nor the recovery rule. It was writing a two-page browser test when its normal dumen hook delivered D-4P2V on its next tool step. It added the new rule to its plan without being told.

  4. The app after a conflict: 18:00 and 18:30 are now Fully booked, 19:00 is Available, nothing is selected, and the message That time just booked. Choose another time. is shown above a disabled Reserve table button.
    The confirmation screen: Reservation confirmed. Your table is set. 19:00, party of 2.

    The app The behavior ships

    When a second page hits a 409, the app refreshes the times and clears the stale choice. It keeps the party of two, says "That time just booked. Choose another time." and moves focus to a time that is still free. If no time is left, focus moves to the message instead. In a live Chrome run, one page took 18:00 and the second page then booked 19:00.

    • 0/4 new browser checks passed on the app before the change
    • 16/16 application tests passed after it, on desktop and mobile sizes

Verification note. In one Desktop setup, the PM's approval first ran in a worktree that Claude Desktop had created automatically, and it did not find the decision record. Opening the existing worktree folder directly as a Local project fixed it, and approval and delivery then completed.

The shortest path: one sentence to another session

A Claude Code session asked only to run three read-only README checks. After check 2 it reports: While it ran, the shared spec got a new teammate decision: D-A2LS sets the waitlist cool-down to 17 minutes. These checks only read files, so it doesn't affect them.

Cedar Queue started as a clean project with an empty local bare git store and two ordinary Claude Desktop worktrees. dumen was set up once. Then the PM wrote in plain words, with no dumen command:

The default waitlist cool-down must be exactly 17 minutes, even if a slot becomes available sooner.

The agent proposed D-A2LS, the PM approved it in the Claude Code prompt, and it was recorded as approved in the shared store. The other session's only task was three read-only README checks. During the third check it reported the decision and the 17 minutes on its own. It had been given no hint about the decision.

A second design

Patchbay, a fictional release readiness board for Aurora 2.4: unit tests, build and changelog passed, accessibility review pending with a Mark passed button, and the release decision Blocked with Mark release ready disabled.

Patchbay is a fictional release readiness board built from a Claude Design prototype and an acceptance-criteria Artifact. Its base flow passed 24 of 24 Playwright checks. It is shown here as a design example, not as a sync demo: when the PM later described a fifth check, the agent's proposal could not be recorded, so nothing was approved or delivered. That first-write problem is still under investigation (see limits).

The plugin itself is the same everywhere. Windows was only the machine these runs used. Stable release: v0.2.0.

You talk. Your agent runs dumen.

You never type a dumen command. You answer your agent, and you confirm Claude Code's prompt when something is put in force.

You

Answer and confirm

  • "Set up dumen for this project." One sentence. The living spec goes to a branch of your repository's own origin.
  • Answer its "A or B?" as you always do. It saves the answer for the team.
  • Say yes and confirm the prompt. It shows the decision's exact words, as they are in the store.
  • "Change it." The new decision replaces the old one, and everyone hears "replaces".
  • "This design is the truth for checkout." It becomes a source, with a summary in git.
Claude Code asks
dumen: it puts D-9NWW "Slot buttons show how many tables are left" [ui] for web-app in force for every agent on the team. It asks booking-svc to: Return remaining tables per slot in GET /slots.
YesNo
Your agent

Keeps the spec living

  • Reads the living spec at session start: the spec parts, the sources' summaries, the decisions in force for its service.
  • Looks before it asks. What a decision settles, it does not ask you again.
  • Records your answer with dumen propose, with the work it needs from other services.
  • Puts it in force with dumen approve, only after your yes in the prompt. The command needs a one-use ticket that only the prompt gives out.
  • Hears news on every step: decisions, replacements, updated sources, questions for you.

Designs, Artifacts and docs, in the spec

Point your agent at the design or document that is the truth for part of the product. It keeps the link and a summary of what matters in git, marked as read from the link or told by you, and proposes the decisions it implies, each pointing at the source. When the design changes, the summary is updated and everyone hears it.

> This Claude Design file is the source of truth for the checkout screens: https://claude.ai/design/p/9f3c-checkout
  (I cannot connect it here, so here is what it says: ...) Keep it for the team as a source, and propose the decisions it implies.

⏺ Bash(dumen source --title "Checkout design" --url https://claude.ai/design/p/9f3c-checkout --about "checkout screens" --from person --file /tmp/checkout-design.md)
  ⎿ Added the source checkout-design: Checkout design <https://claude.ai/design/p/9f3c-checkout>.
⏺ Bash(dumen propose --kind ux --rule "Checkout has three steps in this order: Time, Details, Pay" --source checkout-design ...)
  ⎿ Proposed D-3HY4: Checkout has three steps in this order: Time, Details, Pay
⏺ Bash(dumen propose --kind product --rule "The Pay step shows a 10 minute hold timer for the chosen slot"
       --needs "booking-svc: Hold the chosen slot for 10 minutes and expose when the hold expires" --source checkout-design ...)
  ⎿ Proposed D-WGG2: The Pay step shows a 10 minute hold timer for the chosen slot
⏺ The design is saved as a source for the team, and I've proposed four decisions from it. None is in force yet.
  I marked it --from person because I couldn't open the design. Other agents will see that it's your description and not something I read.

Built to be trusted by a whole team

Git is the only transport, so dumen does the careful part: every change is fetched, checked against the latest state, committed once and pushed fast-forward, or not made at all.

Install: a Claude Code plugin

Needs git and Node.js 18 or newer. dumen uses the SSH keys or credential helper your git already has, and stays silent in repositories that are not part of a dumen project.

1

Each developer, once

claude › /plugin marketplace add nurettincoban/dumen
claude › /plugin install dumen@dumen

The plugin brings a skill, a few hooks and one dependency-free script. Nothing to download later.

2

One of you tells the agent

> Set up dumen for this project.

⏺ Bash(dumen init)
  ⎿ dumen is set up: this repository is the service shop, and the living
    spec is on the branch dumen of this repository's origin. Teammates join
    by installing the plugin ...

Several repositories? Name one private store repository and each repository's service. The store holds teammates' emails and plans: keep it where only the team can read it.

3

Then just describe the decision

> The default waitlist cool-down must be exactly 17 minutes, even if a slot becomes available sooner.

You type no command. Your agent proposes the decision and Claude Code asks you to confirm it. Once you confirm, running sessions get it on their next tool step. This sentence is from the Cedar Queue field demo.

Honest limits

The whole design is in docs/protocol.md. Every change runs an adversarial review, the gauntlet.