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 of the review pipeline is implemented here:

  • natural-language /review <request> runs, including reply-to-snippet reviews
  • repo-aware PR review requests such as /review this pr 123 in this repo owner/repo
  • working-tree diff requests such as /review the working tree diff
  • commit review requests such as /review commit abc1234
  • normalized provider-agnostic findings
  • consolidated markdown reports with audit artifacts
  • lead reviewer validation, dedupe, and prioritization
  • final review message inherits the lead reviewer session metadata when available

how it works

the plugin runs in four stages:

  1. collect the review target, diff or source content, changed files when available, inferred language/test surface, and workspace instructions
  2. run the repo-owned specialist reviewer roles in parallel against the same bundle
  3. run a final lead reviewer that validates the specialist findings, merges overlap, ranks the final list, and emits the grounded output
  4. persist the consolidated report and raw reviewer artifacts for audit

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 a freeform request, optionally by replying to a pasted snippet or message:

/review python auth middleware in this pasted snippet
/review typescript react component for accessibility --focus ui

review the current workspace diff:

/review the working tree diff
/review the current diff --focus security --focus tests

review a pull request, including one from another repo:

/review this pr 123
/review this pr 123 in this repo richardliang/takopi-review --focus performance
/review https://github.com/acme/repo/pull/123

review a commit:

/review commit abc1234

reviewer roles are now fixed in the repo/plugin and are no longer user-settable from the command line. the shipped pipeline runs these specialist lanes by default, on codex only:

  • security-best-practices
  • typechecker
  • correctness-simplicity
  • tests
  • regression-checker
  • integration-contracts

the typechecker lane stays enabled for every review because the intended repo set is typed by default.

when the bundle looks like React or Next.js code, the pipeline also adds:

  • react-vercel

before the lead pass, the pipeline also runs a broad code-review-excellence review on both codex and claude.

after those pre-lead passes finish, a single final code-review-excellence lead reviewer runs on codex, validates whether the reviewer findings are actually grounded, merges duplicates, and ranks the final report. the lead lane is explicitly single-engine so the final emitted message has one canonical session to inherit.

the security-best-practices lane is backed by the repo-local skill corpus in src/takopi_review/review_skills.py and uses the bundled language- and framework-specific references when the bundle matches supported stacks.

the final lead lane is backed by the same repo-local skill corpus, so the adjudication stage uses explicit code-review principles rather than a bespoke repo-local reviewer persona.

the repo vendors one shared skill copy for both engines. the reviewer prompt loader no longer depends on separate Claude or Codex skill installs for review prompt enrichment.

all /review commands go through the same parser. the plugin uses an LLM pre-pass to infer the review target, repo hint, and primary language signal from the text after /review and any replied content, then injects that signal into the reviewer prompts.

outputs

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

.takopi/review/
  latest.json
  <run-id>/
    bundle.json
    report.json
    report.md
    raw/
      security-best-practices-codex.txt
      typechecker-codex.txt
      correctness-simplicity-codex.txt
      tests-codex.txt
      regression-checker-codex.txt
      integration-contracts-codex.txt
      react-vercel-codex.txt
      code-review-excellence-codex.txt
      code-review-excellence-claude.txt
      code-review-excellence-lead-codex.txt

the markdown review report includes:

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

finding schema

all reviewer output is normalized into this shape before consolidation:

{
  "reviewer": "security-best-practices-codex",
  "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]
timeout_s = 900
max_parallel_reviews = 8
require_repo = true
post_github_comments = false
report_dir = ".takopi/review"

reports and raw reviewer outputs are stored under report_dir inside the repo. set require_repo = false to allow natural-language snippet reviews outside a git repo; repo-targeted PR reviews can already run without a local checkout when the command names the repo explicitly.

plugins.review.reviewers, plugins.review.default_fixer, plugins.review.auto_fix, and /review fix were removed in the hard cutover. reviewer selection now belongs to the repo-owned orchestration pipeline, not the caller.

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.4.tar.gz (26.1 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.4-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: takopi_review-0.1.4.tar.gz
  • Upload date:
  • Size: 26.1 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.4.tar.gz
Algorithm Hash digest
SHA256 e531c4d73779ac402e02ba46f1ef07fcf8a3d74378da1b012229833cab231125
MD5 4a24d3b6150bb51aa1687da34d5d5e8f
BLAKE2b-256 181e26e378cd6afe5a8a52a3ca458ca93b07534f5a3e88419aae3c5d009686aa

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: takopi_review-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 28.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 27c6d1031553c8fa7a583a7d56bf2eeb9fc4fc0b4acddbbc05604c16db7706ea
MD5 b468c334161cbb2bf2d0653d8d593093
BLAKE2b-256 0f2249ac68ec8e621df6ffa4a2e585cc1b3713738dcda1595e3661567b28db1f

See more details on using hashes here.

Provenance

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