Skip to main content

Review orchestration plugin for Takopi.

Project description

takopi-review

multi-review orchestration plugin for takopi.

takopi-review runs multiple review agents over the same diff bundle, normalizes their findings into one schema, deduplicates overlap, and produces a single report you can act on. It keeps raw reviewer output for audit, but everything downstream uses the same provider-agnostic finding shape.

shipped now

phase 1 and the initial /review fix flow are implemented here:

  • /review diff
  • /review pr <number|url>
  • /review commit <sha>
  • normalized provider-agnostic findings
  • consolidated markdown reports with audit artifacts
  • deterministic meta-review
  • /review fix for accepted findings

how it works

the plugin runs in four stages:

  1. collect the review target, diff, changed files, inferred test surface, and repo instructions
  2. run the configured reviewer instances in parallel with the same bundle
  3. normalize, deduplicate, rank, and classify findings as accepted, needs-human-triage, or rejected
  4. optionally hand only accepted findings to a fixer engine and write a fix report

requirements

  • python 3.14+
  • takopi installed
  • claude and/or codex engines available in your takopi setup
  • gh installed if you want /review pr ...

install

uv tool install -U takopi --with takopi-review

or install into the same environment as takopi:

pip install -U takopi-review

enable it:

[plugins]
enabled = ["takopi-review"]

commands

review the working tree diff:

/review diff
/review diff --focus security --focus tests
/review diff --reviewer claude --reviewer claude --reviewer codex:security

review a pull request:

/review pr 123
/review pr https://github.com/acme/repo/pull/123 --focus performance

review a commit:

/review commit abc1234

apply accepted fixes from the latest saved review run, or a specific run:

/review fix
/review fix --id RF-001 --id RF-002
/review fix --run 20260313T161318Z-ff69298e --engine codex

/review fix loads the latest saved review run for the active repo context and only applies findings marked accepted.

reviewers can be configured or overridden per run as:

  • claude
  • codex
  • claude:security
  • codex:tests

repeated reviewer entries are allowed. If you configure the same reviewer more than once, the plugin keeps them as distinct reviewer instances in reports and audit artifacts, for example claude#1 and claude#2.

outputs

review artifacts are written under .takopi/review/ by default:

.takopi/review/
  latest.json
  <run-id>/
    bundle.json
    report.json
    report.md
    raw/
      claude-1.txt
      claude-2.txt
      codex-security.txt
    fix-report.json
    fix-report.md

the markdown review report includes:

  • a consolidated findings table
  • an agreement matrix by reviewer
  • recommended fix order
  • testing gaps
  • reviewer execution errors, if any

finding schema

all reviewer output is normalized into this shape before consolidation:

{
  "reviewer": "claude",
  "title": "Missing authorization check",
  "priority": 1,
  "confidence": 0.84,
  "file": "src/example.py",
  "start_line": 42,
  "end_line": 45,
  "summary": "Route allows any Slack user to trigger destructive actions.",
  "suggested_fix": "Check allowed_user_ids before dispatch."
}

config

[plugins.review]
default_fixer = "codex"
reviewers = ["claude", "claude:security", "codex", "codex:tests"]
timeout_s = 900
max_parallel_reviews = 3
post_github_comments = false
auto_fix = false
report_dir = ".takopi/review"

reports and raw reviewer outputs are stored under report_dir inside the repo.

development

install the locked dev environment:

uv sync --frozen --group dev

run the same checks as CI:

uv run --no-sync ruff check
uv run --no-sync pytest -q

build the package locally:

uv build

release

ci runs on pushes to main and pull requests. publishing is wired through github actions on tags matching v*.

once PyPI trusted publishing is configured, a release is:

git tag v0.1.0
git push origin main --tags

Project details


Download files

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

Source Distribution

takopi_review-0.1.2.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

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

takopi_review-0.1.2-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file takopi_review-0.1.2.tar.gz.

File metadata

  • Download URL: takopi_review-0.1.2.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for takopi_review-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bdeb8a3b62539f07a5f416f578cf3576bad297215bb60be684ce13c6c9a878c5
MD5 b121c63913a1709f157b91d79c86827b
BLAKE2b-256 4ff79a6cf8231f1e0d7656e2b98ebe1ad522739d9a0f3049774e89f7fce7c16f

See more details on using hashes here.

Provenance

The following attestation bundles were made for takopi_review-0.1.2.tar.gz:

Publisher: workflow.yml on richardliang/takopi-review

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

File details

Details for the file takopi_review-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: takopi_review-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for takopi_review-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 915f9ae4697da36d04163cf0d774e7aff600c29f793421036fae84ee7adb297b
MD5 d5715137d7d30acf55c6a612ceb0e4f3
BLAKE2b-256 2c4977cd97db08864b29546ff3b5fd957045905bd8d6a00287099eb05f4b13ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for takopi_review-0.1.2-py3-none-any.whl:

Publisher: workflow.yml on richardliang/takopi-review

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