RepoPilot

v0.25.0
io.github.MykytaStel/repopilot Checked 1 hour ago Published 1 month ago

Local, deterministic review of Git changes: weakened tests and CI gates, risky flows, blast radius.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

repopilot_review_change

Review a Git change locally: what it touched and which checks it weakened. Use it before finishing work or before a merge. By default it reviews uncommitted work (working tree vs HEAD); pass `base` (e.g. "origin/main") to review a branch. For a repository health check that is not about one change, use repopilot_scan instead. Returns a JSON report with a decision, findings on changed lines vs the rest, blast radius (files that import the changed files), and deterministic signals grouped by confidence tier (definitely / maybe / noise) in `tiered_signals`: checks the change weakened (focused or s…

ParameterTypeDescription
basestringBase Git ref to diff against, e.g. "origin/main". Optional; defaults to the working tree vs HEAD.
baselinestringOptional baseline file (from `repopilot baseline create`). Findings recorded in it count as accepted debt, separate from new findings.
configstringOptional repopilot.toml path. Defaults to the one discovered in the repository.
detailstring"compact" returns at most 20 findings and 20 signals; "full" returns all of them.
fail_on_reviewstring"definitely" fails the report's gate when a gate-eligible definitely-tier signal is present; "none" reports signals without gating.
filtersobjectOptional thresholds and rule IDs that narrow the returned findings.
headstringHead Git ref. Optional and only valid together with "base".
intentobjectOptional inline statement of what the change is meant to touch (paths, contract families, critical paths, verification IDs). The report marks drift outside it. It is metadata only and cannot execute c…
intent_pathstringOptional repository-rooted TOML file that states what the change is meant to touch. The report marks drift outside it. Use either this or `intent`, not both.
limitintegerMaximum findings to return.
offsetintegerZero-based finding offset.
pathstringRepository path to review. Defaults to the current working directory.
profilestring"default" hides low-signal suggestions; "strict" shows all findings.
scopestring"changed" reports findings in the changed files only; "full" also returns findings from the rest of the repository.
verifyarrayIDs of checks configured in repopilot.toml to request for the reviewed revision. Each needs a separate one-time user approval through form-mode Elicitation; unsupported clients skip checks. Omit to ru…

repopilot_scan

Audit a repository, folder, or file for findings across architecture, coupling, code quality, security, and testing, and return the JSON scan report (findings, metrics, risk summary). Use it for a health check that is not about one change. To review what a change touched or which checks it weakened, use repopilot_review_change; for a short Markdown brief to read before editing, use repopilot_context. Explain a returned finding with repopilot_explain_finding. Runs entirely on disk; nothing is uploaded.

ParameterTypeDescription
basestringBase Git ref for "changed" scope, e.g. "origin/main": scans files changed between base and HEAD. Without it, "changed" means changed against HEAD, including untracked files.
configstringOptional repopilot.toml path. Defaults to the one discovered in the repository.
filtersobjectOptional thresholds and rule IDs that narrow the returned findings.
limitintegerMaximum findings to return.
offsetintegerZero-based finding offset.
pathstringPath to scan. Defaults to the current working directory.
profilestring"default" hides low-signal suggestions; "strict" shows all findings.
scopestring"full" scans every file under `path`; "changed" scans only changed files (against HEAD, or against `base` when given) and skips repository-level rules.

repopilot_context

Generate a budgeted Markdown brief of the repository (risks, hotspots, structure) to read before editing, especially in an unfamiliar codebase. Use it for orientation. For the full findings as JSON, use repopilot_scan; to review a change, use repopilot_review_change. Pass `analysis_handle` to make sure the brief still matches an earlier scan or review. Built locally from a scan; no AI service is called and nothing is uploaded.

ParameterTypeDescription
analysis_handlestringOptional `analysisHandle` from an earlier repopilot_scan or repopilot_review_change call. The call fails if the workspace changed since that analysis.
budgetintegerOptional approximate token budget for the brief. Defaults to the standard budget.
configstringOptional repopilot.toml path. Defaults to the one discovered in the repository.
focusstringOptional focus: security, architecture (or arch), quality, framework, or all.
pathstringRepository path. Defaults to the current working directory.
profilestring"default" hides low-signal suggestions; "strict" includes all findings.

repopilot_explain_file

Explain how RepoPilot treats one file: the role it assigns (for example test, generated, config, or CLI command handler) and the evidence for it, which rules apply, the ordered overrides that change a rule's severity, and whether the default profile would show the result. Use it to understand a file without a report, or to ask why a rule (`rule`, optionally one detector `signal`) would or would not fire there. To explain a finding already in a scan or review, use repopilot_explain_finding; for a review signal, use repopilot_explain_review_signal. Reads local files only and returns JSON.

ParameterTypeDescription
path *stringPath to the file to explain.
rulestringOptional rule ID (see the repopilot://rules resource) to focus the explanation on.
signalstringOptional detector signal within `rule` to focus on, e.g. "rust.todo" for language.rust.panic-risk.

repopilot_explain_finding

Explain why a finding was reported. Use it when you have a `finding_id` from repopilot_scan or repopilot_review_change in this session and need to know why it fired or whether it still reproduces. It replays the stored rule decision against the current workspace, returns the full decision trace, and reports whether the decision matched or drifted. For a review signal (`signal_id`), use repopilot_explain_review_signal; for a file with no finding, use repopilot_explain_file. Local-only.

ParameterTypeDescription
finding_id *stringStable finding ID from the findings array of the selected session report.
analysis_handlestringOptional `analysisHandle` from an earlier scan or review in this session, to use that report instead of the latest one.
evidence_pathstringOptional evidence path from an ambiguity candidate. Used with line_start to select one occurrence without changing the stable finding ID.
line_startintegerOptional evidence start line from an ambiguity candidate.
sourcestringWhich report holds the finding: the latest repopilot_scan ("last-scan") or the latest repopilot_review_change ("last-review").

repopilot_explain_review_signal

Explain one signal from a review: where it came from, its confidence tier, whether it can fail a gate, the files it affects, how to verify it, and its limits. Use it after repopilot_review_change, with a `signal_id` from that report's `tiered_signals`. For a finding (`finding_id` in the findings array), use repopilot_explain_finding instead. Reads the stored review only; it runs nothing and changes nothing.

ParameterTypeDescription
signal_id *stringThe `signal_id` of an entry in the review report's `tiered_signals`.
analysis_handlestringOptional `analysisHandle` from an earlier repopilot_review_change call. Omit to use the latest review in this session.