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 reviewers 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
  • reviewer 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 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.

outputs

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

.takopi/review/
  latest.json
  <run-id>/
    bundle.json
    report.json
    report.md
    raw/
      claude.txt
      codex.txt
      devin.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", "codex", "devin"]
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.0.tar.gz (15.3 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.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: takopi_review-0.1.0.tar.gz
  • Upload date:
  • Size: 15.3 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.0.tar.gz
Algorithm Hash digest
SHA256 eb350febef6b8bc6215c09b330bf7504c8f66d4af1d9225ca29e6c14d7b12cdd
MD5 6b50b38bc6b9d0a3d41c76e2d78d1332
BLAKE2b-256 46080ac4bdbf499e8daff5b25d7b39095f4f2668f6f6d76b11549e5a18076c00

See more details on using hashes here.

Provenance

The following attestation bundles were made for takopi_review-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: takopi_review-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90b86bd2efdd7a5f845a4bd4ff333b6299f33aed68d224aca937787281561fe5
MD5 75ac74c1f97184b38e171f2150983619
BLAKE2b-256 af56353ac5283b10bf6acf851928e8a012eb8bfe1bdf67680bd4153c9f1195be

See more details on using hashes here.

Provenance

The following attestation bundles were made for takopi_review-0.1.0-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