Skip to main content

Guesswork

Review the decisions, not the diff.

Your coding agent makes dozens of product decisions you never asked for.
Guesswork shows you the risky ones, and you answer them in one line.

Verify package MIT License Claude Code plugin Agent Skills

An agent builds team workspaces, records seven decisions, and shows a receipt. The owner replies 1b 2c 3b, and the agent applies the answers and locks the decisions.

The problem nobody reviews

You asked for "team workspaces with invites and a free trial". Your agent shipped it in four minutes, and along the way it decided:

  • deleting a workspace erases it forever;
  • the trial charges the card on day 14 without a reminder;
  • every CSV export includes every member's email address;
  • any member can invite anyone.

You didn't choose any of that. It's buried in 2,000 lines of diff, and nobody will read it until a customer emails support. The expensive bugs in agent-written code aren't syntax errors. They're decisions.

Guesswork makes your agent keep receipts:

  1. It records every guess. Each product decision made without instructions is logged in plain English, with why it was made and what else it could have been.
  2. It ranks them by stakes. Money, data, access, and privacy come first. Wording and layout are only counted.
  3. You answer in one line. Reply 1b 2c 3b. The agent changes the code and records your answers.
  4. It never forgets. Your answers become locked decisions that every later session, pull request, and CI run respects.

Try it in 10 seconds

No project, no agent, no setup. This creates a fictional app with real guesses, a receipt to answer, and an HTML report:

uvx --from git+https://github.com/curlymolelabs/guesswork guesswork demo --open

Use pipx run --spec git+https://github.com/curlymolelabs/guesswork guesswork demo if you prefer pipx. Both need Python 3.9 or newer.

See it work

1. Vibe coding a feature

You ask for a feature and keep working. At the end of the turn, the agent hands you the receipt from the animation above: the decisions with real stakes, numbered, each with alternatives. Low-stakes guesses such as page sizes are recorded but only counted, so the receipt stays short.

Reply 1b 2c 3b, all a to keep everything as built, or 2: something else in your own words.

2. Auditing an app you already built

Run /guesswork:audit in an existing project. The agent scans for the lines where products usually hide decisions, reads the flows behind them, and turns what it finds into a receipt.

guesswork scan output listing money, data, access, privacy, security, notification, and limit decisions found in a small app

3. Reviewing a pull request

The GitHub Action adds the decisions to every pull request, so reviewers read five decisions instead of two thousand lines. It can block merging while high-stakes guesses are still open.

A pull request comment listing twelve product decisions with their stakes, status, and files

4. Remembering across sessions

A week later, a new session starts already knowing what you decided. When the agent edits a file that implements one of your decisions, Guesswork reminds it before your choice gets quietly undone.

Session start context listing locked decisions, and a reminder shown when the agent edits the billing trial file

5. Seeing everything at once

guesswork report writes a dashboard of every decision: what needs you, what's locked, which files hold the most guesses. Click an option to copy the command that records it.

The Guesswork HTML report showing five decisions that need the owner, locked decisions, and a breakdown by category

6. Testing what you can't just decide

Some guesses are about how users will behave, such as "will teams pay per seat?". Your opinion can't settle those. Reply 3 test and the bundled Design Thinking skill designs the smallest test that can.

Install it

Claude Code: the full experience

/plugin marketplace add curlymolelabs/guesswork
/plugin install guesswork@curlymolelabs

On Claude Code 2.1.275 or later, one step also works: /plugin install guesswork --marketplace curlymolelabs/guesswork.

Then build something, or run /guesswork:audit. To skip permission prompts for the CLI, allow Bash(guesswork:*).

Codex, Cursor, Gemini CLI, OpenCode, and other Agent Skills clients

npx skills add https://github.com/curlymolelabs/guesswork --skill guesswork
python3 <skill folder>/scripts/guesswork.py init --agents-md

These clients get receipts and memory through the skill and AGENTS.md, but not the hooks yet. Hook adapters are open issues if you want to help. See the client guide.

The CLI on its own

pipx install git+https://github.com/curlymolelabs/guesswork

One Python file, no dependencies, Python 3.9 or newer.

How it stays out of your way

  • It guesses safely. When the agent must guess, it picks the option that's cheapest to undo: soft delete, private by default, opt-in, a reminder before any charge.
  • It asks first only when it matters. The agent stops to ask only when a decision is high stakes and expensive to reverse, such as a payment flow or a data model.
  • It keeps receipts short. At most five decisions, ranked by stakes. Everything else is a count.
  • It nudges at most once. In Claude Code, the end-of-turn check reminds the agent once per turn, and only when code changed and nothing was recorded. You can change that in .guesswork/config.json.

The ledger is plain files in your repository

.guesswork/
|-- config.json
`-- guesses/
    |-- g-workspace-delete-permanent.json
    `-- g-trial-converts-silently.json

Each guess is one JSON file: the decision, why it was made, its category and stakes, whether it can be undone, the files that implement it, the alternatives, and your answer. One file per guess keeps parallel agents and branches from colliding. Commit the folder with your code, or gitignore it to keep it private. See the ledger format.

Agents are told never to write secrets, credentials, or personal data into the ledger.

Commands

Command What it does
guesswork demo Create a fictional project to try everything in seconds
guesswork log Record guesses from flags or a JSON batch on standard input
guesswork receipt Show the open decisions that need you, numbered for one-line replies
guesswork decide 1b 2a Record answers to the latest receipt, or g-id=b, or --custom "..."
guesswork context <files> Show the decisions that cover some files
guesswork scan List code lines that often hide product decisions
guesswork report Write the HTML report to .guesswork/report.html
guesswork pr --base origin/main Summarize the decisions on a branch in Markdown
guesswork check --fail-on high Exit with an error while open guesses reach a stakes level
guesswork test <id> --plan "..." Mark a guess that needs evidence before anyone decides
guesswork status One-line summary, also usable in a status line

Review decisions in pull requests

name: Guesswork
on: pull_request
permissions:
  contents: read
  pull-requests: write
jobs:
  decisions:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
        with:
          fetch-depth: 0
      - uses: curlymolelabs/guesswork@main
        with:
          comment: "true"

By default the action only reports. Add fail-on: high to block merging while a pull request adds open high-stakes guesses. Pin it to a release tag once one exists.

How it differs from rules files and decision logs

  • CLAUDE.md and AGENTS.md hold rules you write before the work. Guesswork captures the decisions the agent made during the work, the ones you never anticipated.
  • Decision logs and ADRs record what your team decided. Guesswork records what the agent decided for you, then asks you.
  • Code review reads the diff. Guesswork reads the decisions.

What is proven so far

Question Current answer
Do the CLI, hooks, receipts, pull request summaries, and report behave as specified? Yes, covered by unit tests that pass on Linux and Windows in CI
Does the Claude Code plugin pass Claude Code's own validator? Yes, for both the plugin and the marketplace
Do agents reliably record the decisions they make? Not measured yet
Do owners answer receipts and keep using them? Not measured yet

This repository uses Guesswork on itself. Its .guesswork/ folder holds the real decisions made while building it, and how each one was settled. PROOF.md describes the evidence bar for the behavior claims. The screenshots come from real CLI output on the fictional example app.

Contribute

Hook adapters for Cursor, Codex, and Gemini CLI, plus scan rules for more frameworks, are open as good first issues. Read the contribution guide. Report vulnerabilities through private security reporting.

License

MIT. See LICENSE.

Metadata

Release files for guesswork 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for guesswork 3.0.0
File Size Uploaded Provenance Actions
guesswork-3.0.0.tar.gz 49.0 kB With provenance Details for guesswork-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for guesswork 3.0.0
File Interpreter ABI Platform Actions
guesswork-3.0.0-py3-none-any.whl Python 3 none any Details for guesswork-3.0.0-py3-none-any.whl

Total release size: 86.8 kB

Release files / guesswork-3.0.0.tar.gz

Download URL guesswork-3.0.0.tar.gz
Size 49.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1ea03d270d67cc99f89b4d3815e8582171624c42c3c676f0ee39e715af2a1248
BLAKE2b-256 checksum
How to use checksums
9ed40d79ba7f1953a7c1b952adf5c05ae73b1177e7bfde0f558ca4b977e6320b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / guesswork-3.0.0-py3-none-any.whl

Download URL guesswork-3.0.0-py3-none-any.whl
Size 37.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
07d9464a634d2a272166099c6bf41426fed38732ebf725473ba2595f86e70250
BLAKE2b-256 checksum
How to use checksums
1dd295c0cec36e71bad790d7cb14bf3d7f89893725af76c5667c00953d619eb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for guesswork 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for guesswork-3.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page