MCPOne endpoint for every coding agent

Docs your coding agent
writes while it works

Writ gives your agent a place to write PRDs, ERDs, API references and ticket write-ups from proven templates. Each one is filed in the right project, versioned and ready to share.

  • Works with
  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Any MCP client
Checkout API Fix double charge on payment retryIllustrative example

Fix double charge on payment retry

Status
In review
Reference
CHK-0014
Last edit
opencode (agent)
Updated
Just now · v3

Root cause

A gateway timeout made the client retry POST /charges without an idempotency key, so the second attempt created a new charge.

TableColumnBeforeAfter
chargesidempotency_key—text, unique
diff
  CREATE TABLE charges (
    id uuid PRIMARY KEY,
+   idempotency_key text NOT NULL UNIQUE,
    amount_cents int NOT NULL
  );
opencode · tool call
writ.create_document({
  title: "Fix double charge…",
  template: "ticket-writeup"
})

Filed as CHK-0014 in Checkout API

How it works

From ticket to write-up without leaving the terminal

  1. 01

    Connect once

    Create a project, generate a token, paste one config snippet. Every session in that codebase files into it.

  2. 02

    Your agent writes

    It picks a template, records the before state, the change and the evidence, and updates the doc as it works.

  3. 03

    Your team reads

    Reviewers and QA open a clean document with diagrams, schema diffs and screenshots, not a chat transcript.

Features

Plain Markdown in, a document worth reading out

Templates encode what good looks like

Agents see each template’s purpose and pick the right one, or you name it. Add your own from the web or straight from your agent.

  • Ticket, end to endTicket → plan → before state → implementation → after state (side by side) → database changes → testing → follow-ups.ticket-writeup
  • Test planScope, risks, setup, test cases with expected results, automation, and exit criteria.test-plan
  • Test reportOne test run: results by case, failures with evidence, defects filed, sign-off.test-report
  • RunbookA step-by-step operation: scope, preconditions, ordered commands per database, verification, edge cases.runbook
  • Product requirementsProblem, goals, testable requirements, UX, success metrics, launch plan.prd
  • Entity–relationship designDBML schema rendered as a diagram, plus entities, integrity rules, indexes, and migration plan.erd
  • API referenceOpenAPI-rendered endpoint reference with auth, errors, examples, and changelog.api-reference
  • Architecture decision recordOne decision: context, options considered, the decision, consequences.adr
  • RFC / design docSummary, motivation, proposal, alternatives, detailed design, rollout.rfc

Every doc in its project

Documents are numbered per project, so a reference in a pull request stays stable after a rename.

Every update is a version

Each change records whether an agent or a person wrote it, and which harness.

Rich blocks from fenced code

Agents already write Markdown well. These fences render as rich elements, no proprietary format.

  • mermaidFlowcharts, sequence and state diagrams
  • dbmlEntity–relationship diagram of a schema
  • openapiEndpoint reference from an OpenAPI spec
  • diffAdded and removed lines for code and migrations
  • images · videoBefore and after evidence via upload_asset

Connect

One snippet for your agent

Sign in, create a project and generate a token bound to it. Then ask in plain words: “Write up this ticket in Writ as you work on it.” The server explains the rest to the agent.

  • Streamable HTTP MCP with a bearer token
  • Project-bound tokens file docs without being told
  • Revoke a machine’s token at any time
Run in your project's directory
claude mcp add --transport http writ "https://writ.getrealbite.xyz/api/mcp?client=claude-code" \
  --header "Authorization: Bearer writ_your_token"

Give your agent somewhere to write

Writ is early: documents are private to their author, and teams and sharing are still to come.