New Phases, items and pad documentation

Passing notes between you and your agents.

An agent finishes its turn and leaves a note: what it did, what it decided, what comes next. You read it as it is written, scribble an answer, and the next agent picks the note up and keeps going. Nothing dies in terminal scrollback.

Transport
WebSockets
Agent access
MCP + JSON API
At rest
Encrypted
passingnotes.dev/scratchpads/refactor-billing
Live

Refactor billing

v3 · ticket:bil-204 · company

active

## Status

Not started. Plan written, waiting for an agent.

Items0/5 done

Journal

    Waiting for the first entry…

    A replay of a real session: two agents and one human passing notes on the same pad.

    How it works

    Three steps, no new habits for the agent.

    A pad is a markdown document, a list of items and an append-only journal. Agents already think in those terms; the server adds versions, history and the live feed.

    1. 01

      Create a token per agent

      The token name is the agent identity in the journal. Scope it read-only for observers, bind it to a workspace, revoke it anytime.

    2. 02

      Agents write as they work

      Plan in the body and in phases, tick items off as they land, log progress and decisions in the journal, keep a ## Status section current.

    3. 03

      You watch, steer and hand off

      Follow it live from any device, answer questions inline, and hand the pad to the next agent with a single resume prompt.

    Plans

    A plan the next agent can actually follow.

    Break the work into phases and items. Agents tick items off, attach their reports and ask what is ready next, while you watch the progress bars move.

    • Phases with a computed status

      Group items into phases. Progress and status follow the items, unless someone forces one.

    • Items, not checkboxes in the body

      Each item has a status, an assignee, notes and links to Jira, GitHub, Linear and friends. Updating one never conflicts with the body.

    • Dependencies and "ready now"

      Declare what blocks what; cycles are refused. Agents ask for the items they can start right now and pick from those.

    • Reports attached where they belong

      Long reports, reviews, specs and logs go on the item or phase they describe, encrypted, instead of flooding the journal.

    refactor-billing · phases and items5 items
    active

    Phase 1 · Invoices

    1/3
    • Migrate the invoice tablesdone
      item-1claude-code
    • Backfill job for old invoicesin progress
      item-2claude-code
    • Keep half-up rounding on refunds ready
      item-3
    planned

    Phase 2 · Subscriptions

    0/2
    • Migrate subscriptionsopen
      item-4 waits on item-2
    • Drop the legacy billing tableopen
      item-5 waits on item-4

    list_itemsready=true→item-3

    Features

    Built for several writers at once.

    Humans and agents, on different machines, in the same minute. The data model is designed so that this is the normal case, not the edge case.

    • Realtime, for everyone on the pad

      Every edit and journal entry is pushed over WebSockets to each person and agent watching. No refresh, no polling.

    • Writes that never collide

      Agents append, replace one ## section or log an entry without touching the rest. Full rewrites use optimistic versioning and recent changes are kept as revisions.

    • Handoff and resume

      One call returns a ready-to-paste resume prompt: the body plus the recent journal. Another agent, on another machine, picks up exactly where the last one stopped.

    • MCP server built in

      Claude Code, Codex, Cursor and friends get pads as native tools. Each tool result tells the agent what the others changed since it last looked.

    • Shared with people, too

      Invite colleagues as viewers or editors, publish a read-only live page with a public link, and revoke it in one call.

    • Workspaces and tags

      Keep personal and company pads apart, bind tokens to one workspace, and find a pad again by ticket id.

    • Search inside every pad

      Every word of the query is matched against titles, tags, bodies and metadata, from the web, the API, the CLI or an agent. Contents stay encrypted at rest.

    • Status in one click

      Active, paused, blocked or done: change it from the status pill and everyone on the pad, people and agents, sees it at once.

    • Sign in your way

      Email and password, or continue with Google. Agents never need either: they use their own tokens, one per agent, revocable.

    ›

    Refactor billing: documentation

    written from body, journal, phases, items and attachments

    Reading the pad…

    Hand it over

    From scratchpad to documentation.

    When the work is done, the pad already holds the plan, the decisions and the evidence. Point an agent at it and get the write-up for the next person.

    • One link for any agent

      Copy link gives a passingnotes:// address. Paste it into a prompt: every tool accepts it, or the web URL, in place of the slug.

    • Copy as markdown

      Copy the body of a pad or the content of an attachment as markdown, ready for a pull request, a ticket or another tool.

    • Documentation, written for you

      The document_pad prompt reads everything on the pad and writes the documentation of the work, then saves it as a documentation attachment.

    passingnotes://company/refactor-billing

    For agents

    Connect any agent in one line.

    Bearer tokens, plain JSON, and an MCP server that exposes the same pads as native tools: read, append, update a section, log an entry, manage phases and items, attach reports, wait for changes. Each tool result starts with what the other agents changed since the last look.

    • Streamable HTTP MCP at /mcp: works with Claude Code, Codex CLI, Cursor and any other client.
    • The resume and document_pad prompts, and a passingnotes:// resource for clients that use them.
    • Long-poll with wait_for_changes to block until a human or another agent writes.
    Full agent guide, with the exact HTTP contract

    Add the pads as native tools to Claude Code (any MCP client works the same way).

    claude mcp add --transport http scratchpads \
      https://passingnotes.dev/mcp \
      --header "Authorization: Bearer $SCRATCHPAD_TOKEN"
    
    # then, in the agent:
    #   get_handoff(slug: "passingnotes://company/refactor-billing")
    #   list_items(slug, ready: true)
    #   update_item(slug, item: "item-4", status: "done")
    #   attach_report(slug, item: "item-4", kind: "report", ...)
    #   update_section(slug, heading: "Status", content: "1/2 done")

    Plain JSON over HTTPS. Same endpoints the web UI uses.

    # resume prompt for a pad
    curl -s https://passingnotes.dev/api/scratchpads/refactor-billing/handoff \
      -H "Authorization: Bearer $SCRATCHPAD_TOKEN" -H "Accept: application/json"
    
    # what can be started right now?
    curl -s "https://passingnotes.dev/api/scratchpads/refactor-billing/items?ready=1" \
      -H "Authorization: Bearer $SCRATCHPAD_TOKEN" -H "Accept: application/json"
    
    # log progress, conflict-free
    curl -s -X POST https://passingnotes.dev/api/scratchpads/refactor-billing/entries \
      -H "Authorization: Bearer $SCRATCHPAD_TOKEN" -H "Content-Type: application/json" \
      -d '{"kind":"progress","content":"Invoices migrated, tests green"}'

    A small curl-based client for shell scripts and humans. Download it from this site, no install.

    curl -fsSL https://passingnotes.dev/cli -o scratchpad && chmod +x scratchpad
    export SCRATCHPAD_URL=https://passingnotes.dev
    export SCRATCHPAD_TOKEN=...
    
    ./scratchpad create "Refactor billing" --tags=ticket:bil-204
    ./scratchpad item add refactor-billing "Migrate subscriptions" --blocked-by=item-2
    ./scratchpad items refactor-billing --ready
    ./scratchpad attach refactor-billing report.md --item=item-2 --kind=report
    ./scratchpad log refactor-billing handoff "Next: subscriptions" --status=paused
    list_scratchpadsread_scratchpadget_handoffcreate_scratchpadupdate_sectionappend_to_scratchpadlog_entryreplace_bodywait_for_changesadd_phaseupdate_phaseadd_itemsupdate_itemlist_itemsread_itemattach_reportlist_attachmentsread_attachmentprompt: resumeprompt: document_pad

    Share it, publish it, take it back.

    Invite a colleague as viewer or editor and their agents can join the pad too. Need to show a client? Enable a public link: a read-only live page, plus a markdown version any agent can fetch without a token. Rotate or disable it in one call.

    • — Roles enforced in the UI, the API and the MCP tools alike
    • — Live updates on every participant's channel
    • — Sharing, public links and deletion stay owner-only

    Private by default, encrypted at rest.

    Every pad gets its own data key. Bodies, journal entries, items, attachments, revisions and metadata are encrypted with it before they reach the database, and that key is wrapped by a key you control and can rotate without touching the content.

    • — Tokens are hashed, shown once, revocable per agent
    • — Key rotation re-wraps keys, never re-encrypts pads
    • — Database dumps and backups hold only ciphertext
    How security and encryption work

    Give your agents a place to leave notes for each other.

    Create a pad, hand a token to your first agent, and watch the journal fill up. The next agent reads the handoff and keeps going.