How Dokmio works

Follow one bug from a support ticket to main, then read how each part works.

  1. 4:52 PM

    The ask

    Support files SHOP-482 in Linear and you assign it to Dokmio. It writes down what done means and picks the agents: Claude Opus 5.5 writes the fix and GPT-5.5 Codex checks it.

    SHOP-482UrgentFrom support

    Customers charged twice when the payment webhook is retried

    When the payment provider resends a webhook, the order is captured again.

    Assignee
    Dokmio
    Repository
    shopfront

    Dokmioin SHOP-482

    On it. Done when:

    1. A retried payment webhook does not charge twice.
    2. Two copies arriving at the same moment create one charge.
    3. Existing checkout tests pass.
    WritesOpus 5.5
    ChecksGPT-5.5 Codex
  2. 4:58 PM

    The first fix

    Claude fixes it in its own worktree and reports “Done. All 212 tests pass.” Usually, this is where someone merges it.

    Opus 5.5.dokmio/worktrees/shop-482
    12export async function handlePaymentWebhook(event) {
    13+ if (await processed.has(event.id)) return;
    14 await charges.capture(event.orderId, event.amount);
    15+ await processed.add(event.id);
    16}
    Opus 5.5

    Done. All 212 tests pass.

    Where a normal flow merges PR opened Checks green Ready to merge
  3. 5:04 PM

    Caught

    Dokmio takes the fix out and runs Claude’s new test again. It still passes, so it never tested the fix. Codex’s review finds a second problem: two retries arriving at once can both get past the check.

    Your checks: npm test 212 of 212 at 4e1b7c0

    Fix removed, new test kept
    13+ if (await processed.has(event.id)) return;
    15+ await processed.add(event.id);
    Rerun212 passed

    Tests still pass without this change

    The new test mocked the charge client and never counted charges.

    GPT-5.5 Codexseparate read-only session

    Checking and then charging isn't atomic. Two deliveries at the same moment can both pass the check.

    Left for you: 2 itemsDone when: 1 of 3 met

  4. 5:07 PM

    Sent back

    Your phone says a change is ready for review. You read the receipt and tap Request changes.

    Sent back to Opus 5.52 items
    1. Test proofAdd a test that fails without the fix.
    2. Review by GPT-5.5 CodexMake the check and the charge one step.

    It revises in the same worktree.

  5. 5:10 PM

    Proven

    Claude makes the check and the charge one step. All 214 tests pass, the new tests fail without the fix, and mutation testing shows they catch all 7 planted bugs.

    Revision 1same worktree
    12export async function handlePaymentWebhook(event) {
    13+ const first = await processed.insertIfAbsent(event.id);
    14+ if (!first) return;
    15 await charges.capture(event.orderId, event.amount);
    16}
    Fix removed, new tests keptResult
    Same webhook twicepassfails
    Two copies at the same momentpassfails
    Existing checkout tests212 pass

    Tests fail without this change

    Small breaks on the added lines

    7of 7 caught

    • !first → firstcaught
    • return droppedcaught
    • !first → truecaught

    Checks: 214 of 214 at 9f3c2ab

    Review: 3 of 3 criteria hold

  6. 5:12 PM

    Meanwhile

    Codex has finished SHOP-479 in a separate worktree. It edits the same ledger file and passes its checks on its own.

    SHOP-482 · Opus 5.5Customers charged twice on webhook retry

    Ready for review

    ChecksProofReviewpayments/webhook.tspayments/ledger.ts

    SHOP-479 · GPT-5.5 CodexShow refunds in order history

    Passes alone

    ChecksProofReviewingorders/history.tsxpayments/ledger.ts

    Running 2/2Review 2/3

  7. 5:24 PM

    Landing

    You accept SHOP-482. Dokmio tests it again on the latest main and it lands at 9f3c2ab. With it in place, SHOP-479 fails two checks, so it goes back to Codex with the failures.

    main SHOP-482 · proven SHOP-479 · passes alone 9f3c2ab 482 lands · 5:24 rechecked on the new tip 2 checks fail together back to Codex with the failing checks fixed c71d0e5 479 lands · 5:31
    1. mainStarting point
    2. SHOP-482 · provenRechecked on the tip of main
    3. 9f3c2ab · 5:24SHOP-482 lands at the commit that passed
    4. 2 checks fail togetherSHOP-479 rechecked on the new tip, kept off main
    5. Back to CodexWith the failing checks, same worktree
    6. c71d0e5 · 5:31SHOP-479 fixed, rechecked, lands

    passed, landedfailed togetherdashed: recheck on the tip

  8. 5:31 PM

    The receipt

    Codex fixes SHOP-479 and it lands at c71d0e5. Each change came with a receipt, and nothing reached main until you accepted it.

    shopfrontmain9f3c2ab

    SHOP-482 · Customers charged twice on webhook retry

    1. Done when3 of 3
    2. Checksnpm test at 9f3c2ab214 of 214
    3. Test proofNew tests fail
    4. Small breaksCaught 7 of 7
    5. Written byOpus 5.5
    6. Checked byGPT-5.5 Codex
    7. Goes toLand on main
    8. Used14 min, 31 agent calls
    9. Left for youNothing flagged
    mainshopfront
    1. c71d0e5SHOP-479Show refunds in order history5:31 PM
    2. 9f3c2abSHOP-482Customers charged twice on webhook retry5:24 PM
    3. 7d20b9eEarlier workWhere both tasks started4:52 PM

Example project. Times, hashes and counts are illustrative.

Test proof and mutation testing

First Dokmio takes the fix out and runs the new tests again. If they still pass, they weren’t testing it. Then it plants small bugs in the new lines, one at a time, and checks that the tests catch each one.

  • Each planted bug changes one operator or number, like < to <=, and never touches strings or comments.
  • The receipt lists them as small breaks, with the file and line of any the tests missed.
  • Run the same checks on any branch with dokmio prove --base main.
Terminalshopfront

$ dokmio prove --base main --mutations 8

Tests fail without the change.

Compared 9f3c2ab with 7d20b9e (merge base with main).

Tests kept: tests/webhook.test.ts

Code reverted: payments/webhook.ts

Failing without it: npm test

Small breaks: tests caught 7 of 7.

exit 0

Reviewed by a second agent

If Claude wrote the change, Codex reviews it, and the other way round. The reviewer works in a session that can’t edit files and checks the change against what done means for the task.

  • New tasks go to whichever plan has room, and pause at the limit you set: 75, 80, 90 or 95%.
  • With only one agent installed, it reviews its own work in a fresh session, and the receipt says so.
Plan usage5-hour window
Claude Code 82%
New tasks pause at 80%
Codex 41%
Taking new tasks
SHOP-490Export orders as CSV
WritesGPT-5.5 Codex
ChecksOpus 5.5

Review, read-only session2 of 2 criteria hold. Commas and quotes in order notes are escaped.

Several tasks at once, landed one at a time

Each task runs in its own Git worktree, so agents don’t edit the same files. When you accept a change, Dokmio merges it onto the latest main and runs the tests again before your branch moves.

  • Two tasks run at once by default, up to four.
  • Tasks that touch lockfiles, CI files or migrations run alone.
  • Land on your branch, collect changes on a side branch or open a draft PR.
shopfrontmainTasks
Working 2
Show refunds in order historyGPT-5.5 Codex· Running checks
Retry failed email receiptsOpus 5.5· Writing
Queued 1
Upgrade the payments SDKLockfile: runs aloneStarts when the others finish
Ready for review 1
Customers charged twice on webhook retry3 of 3 criteria met · Checked by GPT-5.5 Codex
Running 2/2 · Queue 1 · Review 1/3

Questions, plan approval and taking over

When a decision is yours, Dokmio asks one question with suggested answers instead of guessing. Risky work waits until you approve the plan.

  • Send a note to steer it while it works.
  • Stop it, take over in your editor, then hand it back.
  • Move a task to the other agent.
Needs youQuestionSHOP-488Apply tax to gift card orders
Opus 5.5Should tax apply when a gift card is bought, or when it’s spent?
When it’s boughtWhen it’s spentNeither
Or type your own answerAnswer

Start from your issue tracker

Assign an issue to Dokmio or mention it in a comment, in Linear, Jira, GitHub Issues, GitLab, Azure Boards, Shortcut, Asana or ServiceNow. It replies on the issue and comes back with a tested draft PR.

  • Your issues lists everything assigned to you, each with a Do it button.
  • Import a roadmap and each item is marked Ready, Needs detail or Human-only.
  • Roadmap status changes when you accept the work, not when an agent says it’s done.
SHOP-493Show the refund reason on order emails
  1. You

    Youassigned the issue to Dokmio

  2. Dokmioacknowledged

    On it. Done when: the email shows the reason given at refund; emails without a reason are unchanged.

  3. Dokmiofinished

    • Checks pass. Tests fail without the change.
    • Checked by Opus 5.5: 2 of 2 criteria hold.
    Draft PR opened with the receipt

Review from your phone

Pair your phone with a QR code and it connects over Tailscale. Approve plans, answer questions and accept or send back changes without going to your desk.

  • You get an alert when a plan is waiting, a question needs you, a task fails or a change is ready.
  • Alerts never include code or the question’s text.
  • A pairing code works once and expires after 10 minutes.
DokmioA plan is waiting for approval.
now
Pair a phone

Scan with the phone’s camera. Dokmio opens as an app you can add to the home screen.

Phone · paired by QRRevoke

Project memory

Dokmio keeps lessons from past tasks and ties each one to the files it’s about. When those files change, the lesson is marked Stale instead of being passed on as fact.

  • Every saved lesson is scanned, and anything unsafe is blocked.
  • Memory is loaded once at the start of a run, so the prompt cache stays warm.
  • Agents working at the same time share their decisions.
Project memorySHOP-486
  • Make the check and the charge one step: processed.insertIfAbsent, not has() then add().payments/webhook.tsfrom SHOP-482 at 9f3c2abCurrent
  • Ledger rows store refunds as negative amounts.payments/ledger.tschanged in c71d0e5Stale
  • [BLOCKED] This text matched a memory safety rule.A save from this run, held back

Safe to close mid-run

Quit Dokmio in the middle of a task and reopen it. It carries on from the last finished step, without losing work, running anything twice or leaving an agent running in the background.

  • Test results are tied to the exact commit they checked.
  • If the branch moves after that, the change is checked again before you can accept it.
SHOP-486Retry failed email receipts
  1. Running checksstep 4 of 6
  2. Dokmio closed mid-run5:16 PM
  3. Reopened, continuing from the last finished stepstep 4 of 6
  4. Checks passed, review startedstep 5 of 6

Security and control

Where your code goes, what agents can run, and the record each change leaves.

Where your code goes

Tasks run on your developers’ computers, and your code and tickets don’t pass through Dokmio’s servers. Claude Code and Codex send what they read to Anthropic and OpenAI under your own accounts and those plans’ data terms.

Sign-ins

Dokmio uses each agent’s own sign-in and never sees or stores your Claude credentials. Linear and GitHub work goes through their bot identities, and tokens never appear on screen.

What agents can run

Agents run commands with your user’s permissions, as Claude Code and Codex do on their own. A worktree keeps each task apart but is not a sandbox. The reviewer’s session can’t edit files, and high-risk tasks wait for you to approve a plan.

Text from tickets and memory

Issue and comment text is treated as data, never as instructions. Memory and lessons are checked for secrets, hidden characters, prompt injection and requests to send data elsewhere, and flagged text reaches agents as [BLOCKED].

Merging

On a team, Dokmio opens draft PRs and has no merge rights, so your branch protection and required reviews still decide. Working alone, nothing lands until you accept it, and it’s rechecked on the latest main before it lands.

A record of each change

The receipt shows what done meant, who wrote and reviewed the change, the proof and the commit it passed at. Editing the branch afterwards marks it stale. dokmio ledger --json exports usage by role and model.

Remote access

The workspace listens on your own computer and nowhere else, behind a session token. A phone pairs with a one-time QR code over Tailscale, gets a token you can revoke, and every action it takes is logged.

Limits

Checks catch many bad changes and can still miss some. Someone on your team reads the diff before it ships.

Details

Platforms

Windows with an installer, macOS and Linux. In private beta.

Requirements

Python 3.11 or later, Git, and Claude Code, Codex or both.

Projects

Any Git repository with at least one commit. Dokmio finds the test command for Python, Node, TypeScript, Go and Rust, or you set your own.

Agent usage

Counts against your Claude Code and Codex plans, with new work moved to whichever has room. The receipt shows what each task used.

Insights

A ledger of accepted changes, the minutes you spent on each and the reported cost. A missing cost shows as unknown.

Ticket check

dokmio lint tells you whether a ticket is ready for an agent, without calling a model.

Questions

Do I need an API key?

No. Dokmio uses your Claude Code and Codex sign-ins, and an API key works too.

Can I start a task without an issue tracker?

Yes. Type it in one box: Enter starts it and opens it, Ctrl+Enter starts it in the background.

What happens when an agent goes quiet?

After 45 minutes with nothing logged it shows as Stalled. A task that has waited on you for 24 hours gets a nudge.

Does it use my MCP servers and plugins?

Yes, for that run only.

Request beta access

Dokmio is in private beta on Windows, macOS and Linux. Leave your email and we’ll send an invite.

Thanks. We’ll email you when your invite is ready.

Your invite includes a sample repo. dokmio demo runs a scripted fix with no model calls.