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.
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:
- 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.
- It ranks them by stakes. Money, data, access, and privacy come first. Wording and layout get a single short line.
- You answer in one line. Reply
1b 2c 3b. The agent changes the code and records your answers. - 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 guesswork demo --open
Prefer pipx? pipx run guesswork demo. 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 get one short line at the end, 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.
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.
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.
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.
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 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. Five decisions in full, ranked by stakes, and any others on one line each. A few small ones share a closing line.
- 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@v3.0.0
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.
How it differs from rules files and decision logs
CLAUDE.mdandAGENTS.mdhold 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? | Measured on one model, not yet across models. In a pre-registered test of 30 builds, both conditions mentioned nearly every seeded decision (87 of 90 with Guesswork, 84 without). With Guesswork, 81 of 90 came as answerable choices against 46 of 90, and 104 decisions were saved against 0. A check of 3.1.1 kept 81 of 90 and cut the extra cost to 12 percent more tokens and about 20 seconds per feature. |
| 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.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| guesswork-3.1.1.tar.gz | 50.7 kB | With provenance | Details for guesswork-3.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| guesswork-3.1.1-py3-none-any.whl | Python 3 | none | any | Details for guesswork-3.1.1-py3-none-any.whl |
Total release size: 89.4 kB
Release files / guesswork-3.1.1.tar.gz
| Download URL | guesswork-3.1.1.tar.gz |
|---|---|
| Size | 50.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
544fc75a978ff8539466b81e7d50ed065f36cd902b07bf5724ffcff7169e7fb2
|
|
BLAKE2b-256 checksum How to use checksums |
b04b76c9dc77d86fa0b7469065e2af7193f630cb71245dd4dc86aaed23896237
|
| 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 logRelease files / guesswork-3.1.1-py3-none-any.whl
| Download URL | guesswork-3.1.1-py3-none-any.whl |
|---|---|
| Size | 38.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6baeaad3610e09435006d54d3de4718b6f3966648711fb63ee2c8536e37f0be5
|
|
BLAKE2b-256 checksum How to use checksums |
d0cc4b85e832ec5299fe43618518d436f01b0ac5b69465947aa0439eda0b6665
|
| 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 logSecurity for guesswork 3.1.1
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.
Attestation for guesswork-3.1.1.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 logA 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.