Skip to main content
Contact

ClosedTab

ClosedTab gives anyone directing AI agents a six-part record of each run, scored by a check that names what it leaves out.

Released on npm · Version 0.5.0 · MIT license

Excerpt from Vloora's October 19, 2026, Agent Action Record, written after an agent edited the interaction patterns guide.

Who made each call in one agent run

Decisions the agent made on its own: Kept the six technical pattern rules but replaced the repeated rubric with plain paragraphs; used the existing train-price and changed-request fixtures as the guide's worked example; kept separate steps for approvals, mandates, acknowledgments, and disputed outcomes; used the site's existing guide template and public navigation.

Of those, which should a human have made or seen: Final company navigation priorities, guide headline and whether the kit's existing downloadable archive should be revised as an editorial release. The founder may direct changes; source and technical contracts remain available.

Where a human actually intervened: The founder required immediate use of the existing editorial suite, after rejecting the prose quality of the pushed kit. No new text changes have been approved by the founder in this run.

Points where it should have escalated and didn't: No strategic scope changes were made. Decisions about broader public distribution and protocol claims are left with the owner.

Accountable for these actions: The agent for accuracy and testing of the edits; the founder for final positioning and public distribution decisions.

$ closedtab check docs/aar-agent-interaction-patterns-editorial-2026-10-19.md

closedtab check: docs/aar-agent-interaction-patterns-editorial-2026-10-19.md
score: 6/6

  ✓ scope / the ask
  ✓ rationale (the why)
  ✓ delegation record (who decided)
  ✓ validation
  ✓ follow-ups and known gaps
  ✓ residual risks

all six breadcrumbs present.
The Judgment section names who answers for each call the agent made alone. The check scores the whole record 6 of 6.

Record an agent run in three steps

An agent starts the record when it finishes a piece of work, fills it in, and checks it before the next run begins.

Example. Terminal sessions from ClosedTab 0.5.0, run on October 20, 2026.

  1. Start a blank record

    After asking for an optional branch, pull request number, and commit, closedtab new writes a record file with today’s date, the six sections, and their field labels.

    $ closedtab new "Add the ClosedTab product page" --type record --dir docs

    closedtab: review an agent run (or write a task doc)
    
    Optional context (press Enter to skip any):
      Branch:
      PR #:
      Commit:
    
    Scaffolding a blank Agent Action Record. Work through the six sections in order; the field labels and hints are in the file.
    
    ✓ Wrote docs/aar-add-the-closedtab-product-page.md
      Open it, fill it in, and keep it alongside the work. Read records across runs: the Deviation and Change sections tell you the most over time.
  2. A blank record scores 0 of 6

    The check suggests a fix for each of the six parts it can't find.

    $ closedtab check docs/aar-add-the-closedtab-product-page.md

    closedtab check: docs/aar-add-the-closedtab-product-page.md
    score: 0/6
    
      ✗ scope / the ask
      ✗ rationale (the why)
      ✗ delegation record (who decided)
      ✗ validation
      ✗ follow-ups and known gaps
      ✗ residual risks
    
    to strengthen it:
      - State what the owner asked for, in their words.
      - Record why it was done this way, beyond what changed.
      - Note who decided what (owner / agent / joint), and flag any call the agent inferred.
      - Say how you know it works: tests run, what you checked.
      - List the follow-ups you left and the parts you scoped out for later.
      - Name the known gaps, risks, or open questions carried forward.
  3. Fill in the six parts

    The agent that did the work fills in each part, starting with the person’s instruction in their actual words.

    Because the check reads only the record's wording, a score measures what the record covers. Accuracy is a separate test, which closedtab reconcile runs.

    The six sections in an Agent Action Record
    PartWhat it captures
    IntentThe instruction, how success was defined, the authority the agent had, and what was out of scope
    ActionWhat the agent did, what it produced, where it diverged, and whether it stayed within its authority
    JudgmentThe decisions it made alone, which ones a human should have seen, where it should have escalated, and who is accountable
    DeviationThe root cause of each gap, the good departures, and what the agent got confidently wrong
    ConsequenceThe outcome, the harm, cost, or risk, who was affected, and the expected failure over 100 runs
    ChangeWhat changes before the next run, what to keep, what belongs with a human, and the signal that the change worked

Reconcile records, connect agents, and keep notes private

  • Reconcile a record with a machine trace

    closedtab reconcile checks the claims in a record's first two sections against a machine trace of the run. When its report finds unsupported claims, unmentioned actions, or contradictions, it sends the run to human review.

    Reconciliation runs locally against the supplied trace, using deterministic matching rules.

    closedtab reconcile --testimony <file.md> --trace <file.jsonl|file.json> [--out <diff.json>]
    • unsupported_claims
    • omitted_actions
    • contradicted_claims
    • needs_human_review
    • recommended_next_questions
    Fields in the reconcile report
  • An agent can keep its own record

    The closedtab-mcp server gives an agent the same tools through the Model Context Protocol (MCP). With it connected, the agent writes, scores, and saves its own record at the end of the run.

    { "mcpServers": { "closedtab": { "command": "closedtab-mcp" } } }
    • list_templates
    • new_doc
    • check
    • reconcile
    • write_private_note
    • list_private_notes
    • read_private_note
    Tools the MCP server provides
  • Private details stay out of a public repository

    When ClosedTab saves a record, text inside a private fence moves to a gitignored .closedtab/private/ folder, leaving a redaction stub in the public file. An unclosed fence redacts everything to the end of the file.

    <!-- private -->
    the part that stays out of the repo
    <!-- /private -->

Install ClosedTab from npm

ClosedTab needs only Node. After installing it with npm install -g closedtab, run closedtab new at the end of your next agent run.

Install from npm

Related writing