Skip to main content

Winnow

Winnow questions a codebase without changing it. Before decomposition, one typed direction turn translates the user's custom review instructions into additive guidance for every downstream system prompt. This keeps a request aimed at one subsystem focused there through scouting, allocation, review, and synthesis. A deterministic inventory then gives an agent-led splitter safe orientation, the splitter chooses semantic subsystems, one scout for every inventory shard supplies concrete leads to a separate allocator, and independent rubric and freeform reviewers investigate the allocation in parallel. One clean final turn reconciles both evidence streams. Codex remains the default, while any role can instead use Claude Code or Grok Build.

Every Codex thread is ephemeral, denies approval requests, and uses a workspace-scoped read-only permission profile. The profile denies reads outside the target repository and Codex's minimal runtime paths, and it also denies .env* and .winnow.toml inside the repository. Codex's native web search runs in live mode, while automatic skills, plugins, Codex Apps, login shells, and non-core shell environment variables are disabled. Winnow also disables configured ambient MCP servers on every turn.

Claude Code runs in safe, non-persistent print mode with Read, Grep, Glob, WebSearch, and WebFetch. Grok Build runs standalone in its strict OS sandbox with read_file, grep, list_dir, web_search, and web_fetch; shell, editing, MCP, memory, and subagents remain disabled for both external providers. Grok Build currently retains its own headless session history under ~/.grok/sessions; Winnow never resumes those sessions. See the official Claude Code CLI reference and Grok Build headless reference for their underlying CLI contracts.

Setup

Winnow requires Python 3.11+, Git, and an authenticated CLI for every provider selected by the run.

Install the CLI and its optional global Codex skill:

uv tool install winnow-review
winnow install-skill
winnow --help

The installer writes ~/.codex/skills/winnow/SKILL.md. It is safe to rerun and preserves a different existing skill unless --force is explicit.

For development from a source checkout:

codex login
codex login status
# Run `claude auth login` when selecting Claude Code.
# Run `grok login` when selecting Grok Build.
uv sync
mkdir -p ~/.config/winnow
chmod 700 ~/.config/winnow

Create ~/.config/winnow/config.toml and keep it private:

provider = "codex"

# Cost and concurrency bounds.
max_work_items = 8
max_concurrency = 4

# Provider defaults are Codex Terra/xhigh, Claude Fable 5/high, and Grok 4.5/high.
# Set either value only to override those defaults for the whole run.
# model = "gpt-5.6-sol"
# effort = "high"

# Optional: route materially different roles to different providers.
# [role_providers]
# customize = "codex"
# decompose = "codex"
# scout = "codex"
# allocate = "claude-code"
# rubric = "claude-code"
# freeform = "grok-build"
# synthesize = "codex"

# Optional: model names are interpreted by each role's selected provider.
# [role_models]
# customize = "gpt-5.6-sol"
# allocate = "claude-fable-5"
# rubric = "claude-fable-5"
# freeform = "grok-4.5"
chmod 600 ~/.config/winnow/config.toml
uv run winnow run "Review the async boundaries" /path/to/git/repository --output review.md
# Or force one provider for the whole run; its Winnow defaults apply:
uv run winnow run "Review the async boundaries" . --provider claude-code

Each adapter delegates authentication to its provider CLI; Winnow does not ask for or copy model-provider credentials. Output goes to stdout unless --output is supplied. Use --workers N to override the configured worker count for one run. Role providers fall back to provider; role models fall back to model, then Winnow's default for the selected provider. An explicit effort overrides the provider-specific effort default for every role. --provider forces one provider for the run; pair it with --model when overriding the model too. For mixed-provider runs, configure model names under [role_models] because model identifiers are provider-specific.

Run uv run winnow (or uv run winnow dashboard) in another terminal to watch every run. Each winnow run stays in its foreground terminal, while an atomic record under ~/.local/state/winnow/runs lets the dashboard show concurrent runs, their prompts, current steps, and progress. Agent decomposition and scout-backed allocation each advance one stage, parallel work items fill the third stage as they finish, and synthesis completes the fourth.

Use uv run winnow path RUN_ID to print the absolute report path recorded for a run, including while that run is still active and the report file does not exist yet.

Use uv run winnow transcript RUN_ID for a polished human view that follows an active run, renders newly completed turns into terminal scrollback, keeps live progress at the bottom, and exits when the run finishes. Agents should use uv run winnow transcript RUN_ID --agent to receive the current original Markdown immediately without rendering or watching. Transcripts include developer instructions, prompts, SDK-visible activity, and responses. Runs created by older Winnow versions have no recoverable transcript.

Use uv run winnow report RUN_ID for the same polished live status and Markdown rendering around the final report. Agents should use uv run winnow report RUN_ID --agent for raw Markdown. Every new run persists its report by ID even when --output is omitted; --output remains an optional additional destination.

Every role can use its selected provider's native web search, but no MCP server is enabled. Each role's prompt ties research to its own decision: scope, questions, allocation, review evidence, or final verification. Agents never include source code, file contents, secrets, or non-public repository details in search queries.

What runs

  1. customize receives the user's request and the exact base prompts for decomposition, scouting, allocation, both reviewer modes, and synthesis. With the selected provider's reasoning effort, it returns a strict Pydantic object containing one concise addition per role. The additions can narrow focus and priorities, but cannot replace Winnow's read-only, evidence, or output rules.
  2. decompose asks Git for a bounded inventory, then gives that seed, the invoked repository-relative scope, and its generated direction to a read-only splitting agent. The agent inspects the repository and splits a whole codebase into semantic subsystems, or treats an explicitly requested subsystem as the target and divides it into smaller parts.
  3. plan preserves one directed scout per deterministic inventory shard. A separate directed allocation turn combines every scout's questions with the semantic subsystem plan and covers each subsystem with balanced rubric and freeform assignments plus deliberate overlaps.
  4. execute fans out one isolated, read-only provider turn per directed assignment. Half apply the complete production rubric and check-normal evidence process. Half retain Winnow's existing open professional review. With an odd worker bound, the extra worker is freeform; a bound of one keeps the original freeform lane.
  5. synthesize gives the subsystem plan, role-labelled assignments, selected providers and models, unchanged WorkResult records, and the generated reporting direction to one clean provider turn. It collapses repeated mechanisms, preserves disagreements and coverage gaps, and emits the most actionable Markdown report first.

The allocation—not peer findings—is shared with workers. This keeps the two review modes independent and leaves cross-agent reconciliation to the synthesis stage. Every downstream review turn receives guidance to start from the charitable prior that the author is a highly capable programmer, reconstruct the strongest coherent rationale, and then try to falsify it against actual behavior. This is agent guidance, not a deterministic intent mechanism; it cannot excuse a demonstrated gap or turn inferred intent into fact. Each turn is also told the exact target path, that it is working locally on the user's machine, and which provider-specific read-only controls apply.

Development

Review standards are documented in Repository guidance and engineering practice, with testing details in Test quality and suite stewardship.

uv run ruff check .
uv run pytest

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

winnow_review-0.1.1.tar.gz (39.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

winnow_review-0.1.1-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

Details for the file winnow_review-0.1.1.tar.gz.

File metadata

  • Download URL: winnow_review-0.1.1.tar.gz
  • Upload date:
  • Size: 39.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for winnow_review-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2c742f36ebf52941b100921546b640513c949227dacde26ea0e9fefc31121da3
MD5 48c1cbd0f411cf13f4beb868000b8b64
BLAKE2b-256 f55ec0e012ca040a16f6c16a7ec581685f89e02a1c061758452c25e1eba6e937

See more details on using hashes here.

Provenance

The following attestation bundles were made for winnow_review-0.1.1.tar.gz:

Publisher: workflow.yml on coder-2011/winnow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file winnow_review-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: winnow_review-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 45.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for winnow_review-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aeec2a5bbcf89d3ff4d52554b1423ff82cd5fe7266d78c3551299107b534166f
MD5 0d899ccec716cc2ac3d7741e6eb75192
BLAKE2b-256 503fb4d21ee905957214d3d338b999016df7b53c56da0b9eee7fbef12f9dd18f

See more details on using hashes here.

Provenance

The following attestation bundles were made for winnow_review-0.1.1-py3-none-any.whl:

Publisher: workflow.yml on coder-2011/winnow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page