Reference
Command-line reference
Every command, flag, exit code, environment variable, policy key and risk signal of the current Probe (latest release: v0.5.1). Entries marked v0.4 make a binary older than v0.4.0 exit 3; see release ordering before pinning one in CI. Press / to search.
This page covers Probe for code, the command-line tool. Watching Word, Excel or PowerPoint files? See Probe Desktop.
Synopsis
probe init [--repo PATH] [--language go|typescript|javascript|python|rust]
probe lint [--base main] [--head HEAD] [--ci] [flags]
probe review [--base main] [--reviewer=false] [--ci] [flags]
probe review --swarm [--swarm-agents correctness,security,...] [--base main]
probe review --read-only [--base main] [--ci]
probe review [flags] BASE..HEAD
probe plan --intent-file FILE [--base main] [--ci]
probe plan --jira PROJ-123 | --linear ENG-123 [--notion PAGE] [--gdoc DOC] [--base main] [--ci]
probe review --plan .probe/PLAN.json [flags]
probe knowledge build [--base main] [--focus TEXT]
probe knowledge apply [--from .probe/knowledge-updates.json]
probe knowledge check [--knowledge PROBE_KNOWLEDGE.md]
probe context check [--context-dir DIR] [--context-repo NAME=PATH] [--clusters FILE]
probe graph build [--commit HEAD] [--out FILE]
probe graph query search|neighbors|path ARGS [--commit HEAD]
probe report [--input .probe/confidence-report.json] [--out DIR] [--format LIST] [--report-url URL]
probe login [--hub URL] [--status]
probe logout
probe version
- lint analyzes a change statically. It never executes repository code and never calls an AI provider.
- review adds sandboxed checks in Docker, the opt-in evidence stages (changed baseline tests, impacted tests, differential fuzzing, mutation, dependency preparation) and, when a model is configured, an AI investigation.
review --read-onlykeeps only the AI investigation, with read-only tools and no Docker. - plan asks the configured provider for an implementation plan before any code is written, evaluates it with fixed rules, and turns it into a contract that
lint --planandreview --plancheck the diff against. - knowledge, context and graph manage what the AI reviewer reads besides the diff: the codebase knowledge base, the other repositories and the repository graph.
- login connects the machine to a Probe Hub account, so that the AI reviewer uses the hub's LLM when no provider is configured; logout revokes that access. See
probe login. - Only committed files are analyzed; uncommitted edits and untracked files are ignored.
- Reports are written to
.probe/in the repository by default. Console output stays short. - Flags accept one or two dashes (
-cior--ci). Booleans are set with--cior--ci=trueand cleared with--checks=false. A value is given as--base mainor--base=main. - Run
probe <command> --helpfor the flags of a command.
Choosing revisions
Both sides of a comparison resolve to immutable commit IDs, recorded in the report. Renames, deletions, binary files and file type changes are handled.
| Form | Compares |
|---|---|
--base main (default) | From the merge base of main and --head to --head, like a pull request. Commits added to main since the branch point are not part of the change. |
--base main --exact | From the tip of main directly to --head. |
BASE..HEAD | The two exact commits, for example HEAD~1..HEAD to review the last commit. Overrides --base, --head and --exact. |
BASE...HEAD | From the merge base of the two revisions to HEAD. |
A range may appear before or after the flags: probe review main..HEAD --ci and probe review --ci main..HEAD are equivalent. At most one range is accepted. Any revision Git understands works: branches, tags, origin/main, HEAD~3 or a commit ID. CI jobs need enough history to resolve the base (for example fetch-depth: 0).
The trusted policy is always read from the base branch, never from the change under review, so a pull request cannot loosen its own rules.
probe lint
Static analysis of a change: Git comparison, risk signals and a report. No Docker, no provider call, no execution of repository code. Safe to run on untrusted branches.
| Flag | Default | Description |
|---|---|---|
--base REV | main | Base branch or revision. The comparison starts at its merge base with --head; its tip supplies the trusted policy. |
--head REV | HEAD | Candidate revision under review. |
--exact | false | Compare the base revision itself instead of the merge base. |
BASE..HEAD | — | Positional range; see Choosing revisions. |
--repo PATH | . | Repository directory. Any directory inside the work tree works. |
--config PATH | policy of the base | Use this local policy file instead of .probe.json from the base branch. Only pass a file you trust. |
--out DIR | .probe | Report directory, relative to the repository root. The path may not contain symbolic links. |
--format LIST | markdown,json | Comma-separated report formats to write: markdown, json, sarif v0.4, pr-comment v0.4, pr-summary. See Output files. |
--report-url URL v0.4 | — | An https link to the full report, cited in PR_COMMENT.md. Requires the pr-comment format; a URL that looks like it carries a credential is refused with exit 3. |
--impact | true | Build the static impact index of changed functions. --impact=false skips it. |
--graph | true | Build the repository graph of the head commit and record its structural delta against the base. --graph=false skips it. |
--graph-cache DIR | user cache directory | Where graphs are cached by commit, outside the repository and the report directory; off disables the cache. An unusable explicit directory exits 3. |
--plan PATH | — | A PLAN.json written by probe plan: check the diff against its contract and add a plan_drift section and signals. |
--ci | false | Exit with code 2 when human review is required. See Exit codes. |
--intent TEXT | — | Pull request intent or acceptance criteria, recorded in the report (at most 64 KiB). |
--intent-file PATH | — | Read the intent from a UTF-8 file. Cannot be combined with --intent. |
--jira KEY, --linear KEY, --notion PAGES, --gdoc DOCS | — | Add a Jira or Linear issue, Notion pages or Google Docs to the intent. See Intent from Jira, Linear, Notion and Google Docs. |
--checks, --reviewer | false | Must stay false: lint exits with code 3 if either is enabled. Use review. The review-only flags (--base-tests, --impacted-tests, --fuzz, --cache-dir, --parallel, --deadline, --allow-prepare-network, --swarm, --swarm-agents, an explicit --pr-summary) are refused the same way. |
probe lint HEAD~1..HEAD # the last commit
probe lint --base origin/main --ci # this branch as a pull request, for CI
probe lint --base main --format json # JSON report only
probe lint --base main --plan .probe/PLAN.json # scope drift against an approved plan
probe review
Everything lint does, plus the policy's test, typecheck, build and coverage commands in disposable Docker containers, plus an AI investigation when a model is configured. Requires Docker with Linux containers and a preloaded sandbox.image.
| Flag | Default | Description |
|---|---|---|
--base REV | main | Base branch or revision. The comparison starts at its merge base with --head; its tip supplies the trusted policy. |
--head REV | HEAD | Candidate revision under review. |
--exact | false | Compare the base revision itself instead of the merge base. |
BASE..HEAD | — | Positional range; see Choosing revisions. |
--repo PATH | . | Repository directory. |
--config PATH | policy of the base | Use this local policy file instead of .probe.json from the base branch, for example to try a policy before committing it. Only pass a file you trust: it decides what runs and where source is sent. |
--out DIR | .probe | Report directory, relative to the repository root. Artifacts go to DIR/artifacts/. |
--format LIST | markdown,json | Comma-separated report formats to write: markdown, json, sarif v0.4, pr-comment v0.4, pr-summary. |
--report-url URL v0.4 | — | An https link to the full report, cited in PR_COMMENT.md. Requires the pr-comment format. |
--ci | false | Exit with code 2 when human review is required, including high-risk signals, unverified areas or incomplete checks. |
--checks | true | Run the configured checks in the sandbox. --checks=false skips them; a configured reviewer may still run sandbox experiments. |
--reviewer | auto | AI investigation. Enabled automatically when a model is set in the trusted policy or PROBE_REVIEWER_MODEL, or when no provider is configured and the machine is logged in to a Probe Hub. --reviewer=false disables every provider call; --reviewer fails with exit 3 if no model is configured. |
--read-only | false | Investigate with the deployment's model and read-only tools only, without Docker or code execution. See Read-only review. |
--ai-impacts-criticality | true | A linter signal the reviewer read as no_risk, citing a recorded source read, drops one severity level; a low one is set aside. --ai-impacts-criticality=false keeps the linter's severities. See signal assessments. |
--swarm, --swarm-agents LIST | policy reviewer.swarm | Investigate with specialized agents in parallel instead of one reviewer; --swarm-agents picks them and implies --swarm. Refused with --reviewer=false. See Reviewer swarm. |
--pr-summary | on when the reviewer runs | After the review, the reviewer model writes a pull request description into PR_SUMMARY.md. --pr-summary=false skips the extra provider call. See PR summary. |
--max-iterations N | policy (20) | Override reviewer.max_iterations for this run, 1 to 100. |
--intent TEXT | — | Pull request intent or acceptance criteria (at most 64 KiB). Recorded in the report and given to the reviewer. |
--intent-file PATH | — | Read the intent from a UTF-8 file. Cannot be combined with --intent. |
--jira KEY, --linear KEY, --notion PAGES, --gdoc DOCS | — | Add a Jira or Linear issue (auto: the key in the branch name or commit messages), up to 5 Notion pages or up to 5 Google Docs to the intent. A failure to fetch exits 3 before anything runs. See Intent from Jira, Linear, Notion and Google Docs. |
--rules TEXT, --rules-file PATH | — | Team coding rules (UTF-8, at most 32 KiB) the reviewer checks the changed code against. See Coding rules. |
--feedback-file PATH | — | JSON summary of the team's reactions to earlier findings (at most 64 KiB), written by Probe Hub. Guidance for the model, never evidence. See Team feedback. |
--knowledge PATH | PROBE_KNOWLEDGE.md | The knowledge base, read at the tip of the base branch and given to the reviewer, which proposes updates. none disables it. |
--context-dir DIR, --context-repo NAME=PATH | — | Where the checkouts of the context repositories are: DIR/owner/repo or DIR/repo, or one path per repository (repeatable). |
--fetch-context | false | Shallow-fetch a context repository that has no local checkout from the url the policy gives. |
--clusters FILE | — | Operator JSON file of repository cluster definitions shared by an organization. |
--context | true | --context=false ignores the cross-repository context the policy declares for this run. |
--allow-network | false | Give sandbox containers network access. Takes effect only if the trusted policy also sets sandbox.network: true. |
--no-network | false | Force sandbox networking off. Does not affect reviewer API calls; add --reviewer=false for that. |
--plan PATH | — | Check the diff against the contract of a PLAN.json. A drifted change requests human review (exit 2 with --ci), never exit 1. |
--impact | true | Build the static impact index of changed functions. --impact=false skips it (and cannot be combined with --impacted-tests). |
--graph, --graph-cache DIR | true, user cache | Build the repository graph and give it to the reviewer; --graph=false skips it, --graph-cache off disables its cache. |
--impacted-tests v0.4 | false | Run the unchanged tests that the impact index lists as reaching a changed function, on baseline and candidate: Go tests, or TypeScript/JavaScript tests with a Vitest or Jest generated_test template. A test passing on the base and failing on the candidate is FAILS_ON_CANDIDATE: a reason to review, not a defect. |
--base-tests v0.4 | false | Run the baseline version of each test the change modified or removed, on baseline and candidate code: Go test functions, or TypeScript/JavaScript test() and it() calls with a Vitest or Jest template. |
--fuzz v0.4 | true | Run the differential fuzzing that the policy's fuzz object configures. --fuzz=false records the stage as disabled. |
--cache-dir DIR v0.4 | — | Opt-in cache of baseline executions, outside the repository and the output directory. A replayed baseline run never supports a positive result. |
--parallel N v0.4 | 1 | Run the initial checks N at a time, 1 to 4. |
--deadline D v0.4 | — | Overall time limit of the run, from 1m to 24h; 30 seconds of it are kept for cleanup and the report. |
--allow-prepare-network v0.4 | false | Give the prepare container network access, only if the policy's prepare.network also enables it. Checks stay offline. |
probe review --base main --ci # typical pull request run
probe review HEAD~1..HEAD --reviewer=false # checks only, no provider
probe review --base main --checks=false --reviewer=false # static only, like lint
probe review --base main --intent-file PR.md # give acceptance criteria
probe review --base main --impacted-tests --base-tests --ci # run tests on both revisions
probe review --base main --jira auto --ci # the Jira issue named by the branch is the intent
probe review --base main --swarm # specialized AI agents in parallel
probe review --read-only --base main --ci # AI review without Docker or execution
probe review --base main --format markdown,json,sarif,pr-comment --report-url "$RUN_URL"
Dependency preparation runs first, when the policy has a prepare object. Checks then run in the order test, typecheck, build, then coverage, followed by the evidence stages and the reviewer. Each container is non-root, has a read-only root and source mount, no added capabilities, no network by default, and the CPU, memory, PID and time limits of the sandbox policy. The Docker socket, your working checkout and API keys are never mounted. If Docker or the image is missing, the run ends with exit 4; nothing ever falls back to your host.
probe plan
Before the change is written: the configured provider simulates, read-only, how it would implement an intent at the base commit and submits a structured plan (files, symbols, dependencies, steps). Probe evaluates it with fixed rules and writes PLAN.json and PLAN.md. The model produces the plan; it never judges its risk. Nothing is modified or executed.
| Flag | Default | Description |
|---|---|---|
--intent-file PATH, --intent TEXT | — | The change to plan. Required, unless an issue or document below supplies it; at most 64 KiB of UTF-8, read like the review intent. |
--jira KEY, --linear KEY, --notion PAGES, --gdoc DOCS | — | Plan from a Jira or Linear issue, Notion pages or Google Docs, alone or with an intent; auto reads the key from the branch name. See Intent from Jira, Linear, Notion and Google Docs. |
--base REV | main | The revision the plan starts from. Its tip supplies the trusted policy. |
--config PATH | policy of the base | Explicit trusted local policy. |
--out DIR | .probe | Output directory, relative to the repository. |
--ci | false | Exit 2 when a category is flagged or something was left unverified. |
--max-iterations N | policy | Override the provider iteration budget, 1 to 100. |
--reviewer | true | A provider is mandatory: without a configured model, or with --reviewer=false, plan exits 3 and writes nothing. |
The planner's tools are read-only and work on a snapshot of the base commit: list_files, read_file, search_code and the index-backed find_references, inspect_symbol and find_callers, then submit_plan once. The assessment flags four categories from the plan and the base commit only:
| Category | Signals |
|---|---|
| Critical parts | plan_critical_path (a planned path matches sensitive_paths), plan_sensitive_symbol (an authentication, authorization or payment name). |
| Architecture | plan_exported_signature, plan_dependency_change, plan_new_package. |
| Regression risk | plan_wide_impact (10 or more callers), plan_untested_impact (callers and no reaching test), measured on the static index of the base commit. |
| Other major change | plan_file_deletion, plan_large_scope (20 or more files), plan_inconsistent, plan_unmeasured. |
Exit codes: 0; 2 with --ci when a category is flagged; 3 usage or configuration; 4 provider failure or no accepted plan.
Scope drift: --plan
lint --plan and review --plan read the plan's contract and compare the real diff with it. Each difference in the diff also becomes a plan_drift signal. The section is drifted when an item is medium or higher.
| Item | Severity | When |
|---|---|---|
unplanned_file | medium | A changed file the plan does not list (unplanned_test_file, low, for a test file). |
unannounced_exported_change | high | An exported Go declaration changed or removed without being announced as signature or remove. |
unannounced_critical_path | high | A changed path matches a critical glob of this review's policy and the plan did not list it. |
unannounced_dependency_change | medium | A dependency manifest changed without being declared. |
planned_file_untouched | low | A planned file the change does not touch (section only). |
probe plan --intent-file task.md --ci # 1. plan; exit 2: a human validates it
# 2. an agent implements the plan
probe review --base origin/main --plan .probe/PLAN.json --ci # 3-4. exit 0: merge; exit 2: review
The plan gate
review --plan ends with a decision, plan_drift.decision, printed on stdout and at the top of the Plan Conformance section. With --ci, it is the exit code.
| Decision | When |
|---|---|
no_human_review_required (exit 0) | All of: the plan, re-assessed by the review from its proposal at its base commit with this review's trusted policy, flags no category and has no measurement gap; the change conforms to the plan and to its base; at least one check ran and all passed; no reproduced issue, high or critical signal, unverified area or other section requesting review. |
human_review_required (exit 2) | Anything else. Every reason is listed in plan_drift.decision_reasons. lint --plan runs no check, so it always requires review. |
The flags and contract stored in PLAN.json are never trusted: the contract is re-derived from the proposal, so an edited plan cannot widen the scope unassessed, and probe report recomputes the decision from the recorded report. The gate is a process decision, not a verdict on correctness. A plan that raises nothing is not proof that the change is safe, and drift does not check that the change implements the intent. See pre-change plans and the CI recipe.
probe init
Write a starter .probe.json for the project. It refuses to overwrite an existing file. Review the commands and image, then commit the file to your base branch.
| Flag | Default | Description |
|---|---|---|
--repo PATH | . | Directory in which to create .probe.json. |
--language NAME | detected | go, typescript, javascript, python, rust or unknown. Detected from go.mod/go.work, Cargo.toml, tsconfig.json, package.json, then pyproject.toml/setup.py/requirements.txt. Selects the defaults. |
probe knowledge
Maintain PROBE_KNOWLEDGE.md, an editable Markdown knowledge base of the repository: how parts work and relate, known risks, architecture and conventions, one entry per ## heading. A review reads it at the tip of the base branch, like the policy, so a change never supplies the knowledge its own review receives, and gives the reviewer the entries whose paths match a changed file, within 24 KiB. They are context for the model, never evidence or instructions.
| Command | Does |
|---|---|
probe knowledge build [--base main] [--focus TEXT] | The configured provider explores the base commit with read-only tools and proposes entries, for example to bootstrap the file. Nothing is written to the repository or executed. Needs a model (exit 3 otherwise). |
probe knowledge apply [--from .probe/knowledge-updates.json] | Merge the proposed additions, corrections and removals into the working-tree file, keeping your manual edits. Review the diff and commit it: Probe never commits. |
probe knowledge check [--knowledge PATH] | Validate a hand-edited file: unique titles, known kinds, no stray heading outside code fences, size limits. Exits 1 on a problem. |
## Refunds are validated by the gateway
- kind: architecture
- paths: pay/**, gateway/refund.go
- updated: 2026-09-30 (review of 1a2b3c4d)
The refund handler trusts the amount because the gateway checks it first.
Kinds are component, relationship, risk, architecture, convention, review and note. During a review, the reviewer may propose up to 20 updates with its record_knowledge tool; they are recorded in the report and written to .probe/knowledge-updates.json, with a merged preview in .probe/KNOWLEDGE.md. review --knowledge none disables the knowledge base.
probe context check
Show how each repository of the policy's context resolves: available with its commit and file count, or unavailable with the reason. Exits 1 while one is unavailable, 0 when all are available or the policy declares none.
| Flag | Default | Description |
|---|---|---|
--base REV, --config PATH | main | Where the trusted policy is read, as for review. |
--context-dir DIR, --context-repo NAME=PATH, --clusters FILE, --fetch-context | — | The same flags as review. |
probe graph
The repository graph of a whole commit, not only the diff: components, packages, files, functions, types and external dependencies (go:, npm:, pypi:, cargo:), linked by contains, calls, member_of, implements, imports, depends_on and declares edges. lint and review build it by default (--graph), from Git objects only, and record its summary and its structural delta against the base: new external dependencies, new dependencies between components or packages, added or removed types. It adds no signal and never changes the exit code.
probe graph build [--commit HEAD] [--out graph.json] # build (or read from the cache), optionally export
probe graph query search Cart.Total [--kind function]
probe graph query neighbors internal/payment --kinds depends_on --direction in --depth 2
probe graph query path api.Handle Cart.Total [--undirected]
The reviewer queries the same graph with graph_search, graph_neighbors (up to 3 hops) and graph_path. Graphs are cached by commit in the user cache directory, or in --graph-cache DIR (off disables it); in CI, keeping that directory between runs reuses the base graphs. An edge is a place to look and a missing edge is not proof that none exists: function values, reflection and generated code are not resolved. See repository graph.
probe report
Re-render a saved JSON report, for example to regenerate Markdown or produce SARIF in CI. Nothing is re-run, and re-rendering does not authenticate the evidence it contains; every status is re-derived from the recorded checks, so an edited report is corrected rather than trusted.
| Flag | Default | Description |
|---|---|---|
--input PATH | .probe/confidence-report.json | Saved JSON report (version 1, at most 64 MiB). |
--out DIR | .probe | Output directory, relative to the current directory. |
--format LIST | markdown,json | Comma-separated formats to write: markdown, json, sarif v0.4, pr-comment v0.4, pr-summary. |
--report-url URL v0.4 | — | An https link to the full report, cited in PR_COMMENT.md. |
probe login and probe logout
Use the LLM of a Probe Hub instead of a provider account of your own. probe login prints a link and a code; open it in a browser where you are signed in to the hub, check that the code matches and approve. The CLI then receives a token that reaches only the hub's LLM gateway, valid 90 days, and stores it in your user configuration directory, readable by you only. No secret is shipped in the binary: the token stands for your hub account, within its daily quota, and is revoked like any agent token.
probe login # https://qa.app.probe.technology by default
probe review --base main # the reviewer now uses the hub's LLM
probe login --status # account, model, tokens used today
probe logout # revoke the token on the hub and delete it here
| Flag | Default | Description |
|---|---|---|
--hub URL | PROBE_HUB_URL, else https://qa.app.probe.technology | The hub to log in to. HTTPS only, except on the loopback interface. The hub must lend its LLM; otherwise login stops with exit 3. |
--status | false | Show the hub, the account, the model and the tokens used today. Exits 1 when not logged in, or when the login expired or was revoked. |
- The login is used only when nothing else selects a provider: no
PROBE_REVIEWER_ENDPOINT, no API key, and a policy endpoint that is OpenAI's default. A configured provider, including a keyless local one, always wins. - While it applies,
reviewenables the reviewer automatically, andreview --read-only,planandknowledge buildwork. The hub's model replaces the policy's, and the console names the hub and the account. - Bounded, redacted source context then goes to the hub and its provider. Use
--reviewer=falseorprobe logoutto keep it local. - In CI, create an LLM gateway token under Agent access in the hub and set it as the
PROBE_HUB_TOKENsecret.
probe version and help
| Command | Prints |
|---|---|
probe version, --version | The version, for example probe v0.5.1, and the license notice. |
probe help, -h, --help | The synopsis. With no argument, Probe prints the same text. |
probe <command> --help | The flags of a command, with their defaults. |
Exit codes
| Code | Meaning |
|---|---|
0 | Report completed without a reproduced high or critical issue. Without --ci, unresolved areas do not change this code. |
1 | A high or critical hypothesis is supported by a differential failure: a generated test passed on the base and failed on the candidate. Nothing else produces 1 in a review: not a fuzzing divergence, a surviving mutant, a failing impacted or baseline test, plan drift, nor a finding several swarm agents agree on. knowledge check and context check use 1 for an invalid knowledge base or an unavailable context repository. |
2 | With --ci only: human review required, including high-risk signals, unverified areas, incomplete checks, a FAILS_ON_CANDIDATE test, a fuzzing divergence or inconclusive stage, plan drift, a plan that raised a category (the plan gate), or (for plan) a flagged category. |
3 | Invalid arguments, Git comparison, or trusted configuration (including an unknown policy key or command name). |
4 | Operational error in the harness, analysis or report writing, such as Docker or the sandbox image being unavailable, a check that could not run, a failed dependency preparation, or a provider failure during plan. |
No code means "approved". A 0 says that nothing was reproduced, not that the change is correct.
Environment variables
The AI provider belongs to the deployment rather than to the repository, so these settings can come from the environment. Nothing else can: the image, commands, budgets and sensitive paths are always decided by the trusted policy.
| Variable | Effect |
|---|---|
PROBE_REVIEWER_ENDPOINT | Overrides reviewer.endpoint. Same URL rules as the policy. |
PROBE_REVIEWER_MODEL | Overrides reviewer.model, and on its own enables the reviewer during review. |
PROBE_REVIEWER_PROVIDER | Provider routing, sent as the request's provider field (OpenRouter). Comma-separated names restrict the request to those providers, in that order; a JSON object is sent as is. |
PROBE_REVIEWER_TEMPERATURE | Sampling temperature, 0 to 2. Unset leaves the provider's default. |
PROBE_REVIEWER_REASONING | Reasoning effort: none, minimal, low, medium, high or xhigh; none turns reasoning off for faster reviews. Sent as reasoning_effort (Mistral, OpenAI), or as {"reasoning": {"effort": ...}} on OpenRouter, where a JSON object is sent as the reasoning field. Unset leaves the model's default. |
PROBE_API_KEY | API key. The name is set by reviewer.api_key_env; this is the default. |
PROBE_API_KEY_FILE | Path of a file containing the key, used when the variable above is unset. The file must be readable, or the run fails with exit 3. |
/run/secrets/PROBE_API_KEY | Docker secret read last, when neither variable is set. Absence is not an error. |
PROBE_REVIEWER_ALLOW_INSECURE_HTTP | true permits an explicitly configured http PROBE_REVIEWER_ENDPOINT on a trusted network. Source and key then travel unencrypted. |
PROBE_HUB_TOKEN | An LLM gateway token created in a Probe Hub, for machines that cannot open a browser, such as CI. It takes precedence over a stored probe login and applies under the same conditions. |
PROBE_HUB_URL | The hub of probe login and PROBE_HUB_TOKEN. Default https://qa.app.probe.technology. |
PROBE_CREDENTIALS_FILE | Where probe login stores its token, instead of probe/credentials.json in the user configuration directory. off ignores any login. |
PROBE_JIRA_URL, PROBE_JIRA_EMAIL, PROBE_JIRA_TOKEN | Jira site for --jira; the e-mail is for Jira Cloud (API token), without it the token is a Server/Data Center personal access token. PROBE_JIRA_CRITERIA_FIELD names an optional acceptance-criteria field. |
PROBE_LINEAR_API_KEY | Linear key for --linear; a read-only key is enough. PROBE_LINEAR_TEAMS limits the team keys auto accepts. |
PROBE_NOTION_TOKEN | Secret of a Notion integration the pages are shared with, for --notion. |
PROBE_GOOGLE_ACCESS_TOKEN, PROBE_GOOGLE_CREDENTIALS, PROBE_GOOGLE_API_KEY | For --gdoc: an OAuth access token, a service-account key file the documents are shared with, or an API key for public documents only. |
A blank variable counts as unset. Key files are read whole with surrounding whitespace stripped, bounded to 8 KiB and must hold a single line. The Jira, Linear, Notion and Google tokens and keys may also come from <NAME>_FILE or the Docker secret /run/secrets/<NAME>. When the reviewer runs, the log names where each value came from, never the value itself. Whoever controls this environment chooses where redacted source is sent: keep it out of jobs that run untrusted fork code.
Output files
| Path | Contents |
|---|---|
.probe/CONFIDENCE_REPORT.md | The report to read: change summary, automated checks, investigation summary, reproduced issues, unverified areas, suggested human review, review surface, changed-line execution, recorded evidence and artifacts. |
.probe/confidence-report.json | The same data for tools: commit IDs, changed lines, signals, checks, hypotheses, evidence, audit events and artifact hashes. See the JSON schema. |
.probe/confidence-report.sarif v0.4 | With --format sarif: a SARIF 2.1.0 log for code-scanning tools, holding only findings backed by recorded sandbox evidence. No finding is not approval. |
.probe/PR_COMMENT.md v0.4 | With --format pr-comment: a pull-request comment with a status block and every evidence-backed finding. |
.probe/PR_SUMMARY.md | When the reviewer runs (or with --format pr-summary): the AI-written pull request description, ready to paste. Model output; it changes no status. |
.probe/knowledge-updates.json, KNOWLEDGE.md | The reviewer's proposed knowledge base updates, and a merged preview. probe knowledge apply merges them into PROBE_KNOWLEDGE.md. |
.probe/PLAN.json, PLAN.md | Written by probe plan: the model-written proposal, the deterministic assessment and the contract (schema). |
.probe/artifacts/ | Check logs, coverage profiles, generated test sources, test results, mutant patches and fuzzing records, each referenced by its SHA-256 hash in the report. |
Add .probe/ to .gitignore. The console prints one summary: files and lines changed, number of signals and reproduced issues, the focused review surface and changed-line execution.
Risk signals
Signals are reasons to look, not confirmed defects. Go files get syntax-aware analysis; TypeScript/JavaScript, Python, Rust and other languages use labelled text heuristics. Signals on the same lines are merged into one review range in the report. File-level signals (sensitive_path, dependency_change, migration_change, infrastructure_change, binary_change, file_deleted, file_type_change, large_change, branch_growth, no_test_change, prepare_input_changed, plan_drift) concern the file, not a line: the report lists them under the file as whole file, and the JSON marks them "scope": "file". Their line only places them on the file's first changed line.
| Kind | Severity | Raised when |
|---|---|---|
sensitive_path | high | A changed path matches a sensitive_paths glob. |
private_key | critical | An added line starts a PEM private key block (RSA, DSA, EC, OpenSSH, PGP, encrypted) or a PuTTY key. The key is never copied into the report. |
hardcoded_secret | high | An added line holds a credential shape (AWS, GitHub, GitLab, Slack, Stripe, Google, LLM provider, npm, Twilio/SendGrid, Azure storage keys, JWTs) or assigns a quoted literal of 8 or more characters with a digit or symbol to a secret-named key (password, api_key, token, client_secret…). Placeholders, templates and environment or vault lookups are ignored; the value is masked in the evidence. |
credential_in_url | high | An added URL carries user:password@ or a secret-named query parameter (api_key=, token=, password=…). |
tls_verification_disabled | high | InsecureSkipVerify: true, verify=False, rejectUnauthorized: false, NODE_TLS_REJECT_UNAUTHORIZED=0, curl -k, sslmode=disable, TLS 1.0/1.1 minimums and similar. |
excessive_permissions | high | World-writable modes (chmod 777, 0666 in file APIs), privileged containers, privilege escalation, runAsUser: 0, USER root, host PID or network, SYS_ADMIN, a mounted Docker socket, NOPASSWD: ALL. |
protection_disabled | high | CSRF disabled or exempted, wildcard CORS origins, insecure cookies, template autoescaping off, JWT none algorithm or unverified signatures, SELinux, firewall, seccomp or AppArmor disabled, public buckets or 0.0.0.0/0 ingress, workflow permissions: write-all. |
debug_enabled | medium | DEBUG = True, debug: true, app.run(debug=True), FLASK_DEBUG=1, gin.DebugMode and similar. |
hardcoded_email, hardcoded_ip | low | An added e-mail address, or an IPv4 address inside a string or URL, outside tests and documentation. Documentation, loopback and example ranges are ignored. |
auth_change | high | A Go function whose name suggests authentication or authorization has its body changed, or a changed line mentions authorization, authentication, JWT, bcrypt, argon2, CSRF or CORS. |
sensitive_function_change | high | A Go function whose name suggests payments (payment, refund, charge, capture, withdraw, deposit, balance…) has its body changed. |
validation_removed | high | A removed line called a validation, assertion or sanitizing function, or raised a validation error. |
public_api_change | high medium | Go: an exported declaration was removed or changed (high) or added (medium). Other languages: a line looks like a public declaration (medium). |
database_write | high | A changed line looks like a database mutation or transaction (INSERT, UPDATE … SET, .Exec(, .Commit(…). |
dynamic_execution | high | eval, process execution, subprocess, child_process, innerHTML and similar. |
type_suppression | high | Type or lint suppression such as @ts-ignore, as any, unsafe, nolint, eslint-disable. |
migration_change | high | A path containing migration or ending in .sql changed. |
infrastructure_change | high | A GitHub workflow, Dockerfile or Terraform file changed. |
file_type_change | high | Git reports a type change, for example a file becoming a symbolic link. |
network_change | medium | A changed line makes HTTP, gRPC or socket calls, or contains a URL. |
error_handling_change | medium | Error checks, wrapping, panic/recover, catch or except changed. |
dependency_change | medium | A dependency manifest or lockfile changed (go.mod, package.json, Cargo.lock, pyproject.toml…). |
uncovered_change | medium low | Added lines were not executed by the recorded coverage run: Go lines from a Go profile, TypeScript/JavaScript lines from an LCOV report. Low when the coverage run itself failed. |
branch_growth | medium | At least five more lines with branch constructs were added than removed in a file. Not a complexity metric. |
large_change | medium | More than 400 lines changed in one file. |
file_deleted | medium | A tracked file was removed. |
binary_change | medium | A binary file changed and cannot be analyzed as text. |
analysis_limited | medium | Go declaration analysis could not complete for a file, for example because it does not parse, or the impact index was limited or unavailable for changed functions (symbol impact_index). |
test_focus_added v0.4 | high | A focus marker was added to a test file (it.only, fdescribe…). |
test_assertion_removed, test_case_removed v0.4 | medium | A test file lost more assertion lines, or more test declarations, than it gained. Go, TS/JS, Python and Rust rules. |
test_skip_added, test_expectation_relaxed v0.4 | medium | A skip marker was added (t.Skip, it.skip, @pytest.mark.skip, #[ignore]…), or exact expectations were replaced by looser ones in a hunk. |
surviving_mutant v0.4 | medium | A mutation of an added Go or TypeScript/JavaScript line made none of the tests run for it fail. The mutant may be equivalent. |
prepare_input_changed v0.4 | medium | The change touches a file listed in the policy's prepare.inputs; the dependency layer was still built from the base commit. |
plan_drift | high medium low | With --plan: the diff leaves the plan's contract. See scope drift. |
impacted_caller | low | Unchanged code calls a changed function, according to the impact index. At most 10 per function and 100 per run. |
no_test_change | low | A source file changed and no test file in the same directory or with the same name stem changed. Existing coverage is not measured. |
todo_added | low | A TODO, FIXME, HACK or XXX marker was added. |
Impact analysis
With --impact (the default), lint and review build a static index of the candidate commit on the host, from committed Git objects, without running repository code. For each changed function it lists the places in unchanged code that call it and the existing tests that reach it within 3 calls, adds low impacted_caller signals, and backs the reviewer's find_references, inspect_symbol and find_callers tools.
| Language | How it is indexed | Resolution |
|---|---|---|
| Go | Parsed and type-checked with the Go standard library, package by package, with linux/amd64 build constraints. Interface calls are possible dispatch. | static, interface |
| TypeScript/JavaScript, Python, Rust | Scanned lexically: functions, methods and tests are found from tokens, and a call is linked by name to the same-named declarations of the same language, preferring the caller's class, the qualifying module or type and the same file. node_modules, dist, target, venv and similar directories are skipped. | name |
Every answer is approximate: a listed caller is a place to review, and an absent caller is not proof that none exists. --impacted-tests runs reaching Go tests only. See impact analysis.
Languages
| Feature | Go | TS/JS | Python | Rust |
|---|---|---|---|---|
| Risk signals and test-weakening rules | syntax-aware | text | text | text |
| Impact index and reviewer symbol tools | type-checked | lexical | lexical | lexical |
Sandbox checks and init defaults | yes | yes | yes | yes |
| Verified generated tests | yes | yes (Jest/Vitest JSON) | run, not verified by name | no default command |
| Repository graph | type-checked | lexical | lexical | lexical |
| Differential fuzzing | yes | yes | — | — |
Changed-line coverage, mutation, --base-tests, --impacted-tests | yes | yes (Vitest or Jest; coverage from LCOV) | — | — |
Policy file: .probe.json
The policy decides which commands run, in which image, with which limits, and whether an AI provider is used. It is read from .probe.json on the base branch, or from --config PATH. When there is none, built-in defaults for the detected language apply. Keys you omit take the default values shown below.
The file must be a single JSON object of at most 1 MiB. Unknown keys, unknown command names and duplicate keys are rejected with exit 3, so an older binary rejects a key it does not know.
| Key | Type | Default | Description |
|---|---|---|---|
version | integer | 1 | Policy format version. Must be 1. |
language | string | detected | Language written by init. Informational. |
fuzz, mutation, prepare v0.4 | object | absent | Opt-in evidence stages: differential fuzzing, mutation of added lines and trusted dependency preparation. init never writes them. |
context | object | absent | Other repositories the reviewer reads: cross-repository context. Release-ordered like the stages above: an older binary refuses a policy that contains it. |
{
"version": 1,
"language": "go",
"commands": {
"test": ["go", "test", "./..."],
"typecheck": ["go", "vet", "./..."],
"build": ["go", "build", "./..."],
"generated_test": ["go", "test", "{package}"],
"coverage": ["go", "test", "-covermode=count", "-coverprofile={coverage_out}", "./..."]
},
"sandbox": { "image": "golang:1.26-bookworm", "network": false, "timeout_seconds": 120,
"max_runtime_seconds": 600, "max_output_bytes": 65536, "memory_mb": 1024, "cpus": 2 },
"reviewer": { "endpoint": "https://api.openai.com/v1/chat/completions", "model": "",
"api_key_env": "PROBE_API_KEY", "max_iterations": 20, "max_generated_tests": 10,
"timeout_seconds": 600, "max_input_bytes": 131072 },
"sensitive_paths": ["**/auth/**", "**/payment*/**", "**/migrations/**", ".github/workflows/**", ".probe.json"]
}
commands
Each command is an argv array, not a shell string: ["npm", "test"], never "npm test". At most 128 arguments; configure only the checks your project provides.
| Key | Placeholders | Description |
|---|---|---|
commands.test | — | Test suite, run by review. |
commands.typecheck | — | Type or static check, for example go vet or tsc --noEmit. |
commands.build | — | Build command. |
commands.generated_test | {file}, {package}, {results_out} | How the AI reviewer's temporary tests (and --impacted-tests) are run on base and candidate. Go's default uses the test's package so it can exercise unexported code. Verified Go experiments need a single standalone target placeholder; a Jest or Vitest command writing a JSON report to {results_out} makes TS/JS experiments verifiable by test name. |
commands.coverage | {coverage_out} or {coverage_dir} (exactly once) | Measures which added lines a sandbox run executed. Runs last, in addition to test, within sandbox.max_runtime_seconds. Go writes a profile to {coverage_out} (add -coverpkg=./... to attribute execution across packages); Vitest or Jest write lcov.info into {coverage_dir}, for example ["vitest", "run", "--coverage.enabled", "--coverage.reporter=lcovonly", "--coverage.reportsDirectory={coverage_dir}"]. Run it from the repository root. |
sandbox
| Key | Default | Allowed | Description |
|---|---|---|---|
sandbox.image | golang:1.26-bookworm | image name | Preloaded image with the toolchain and dependencies. Never pulled by Probe; pin it by digest if you can. |
sandbox.network | false | boolean | Allow container networking. Also requires --allow-network on the command line. |
sandbox.timeout_seconds | 120 | 1–3600 | Time limit of each command. |
sandbox.max_runtime_seconds | 600 | 1–7200 | Total sandbox time for the run, shared by checks and experiments. |
sandbox.max_output_bytes | 65536 | 1024–4194304 | Captured output kept per command. |
sandbox.memory_mb | 1024 | 128–32768 | Memory limit of each container, in MiB. |
sandbox.cpus | 2 | 1–32 | CPU limit of each container. |
reviewer
| Key | Default | Allowed | Description |
|---|---|---|---|
reviewer.model | "" | model ID | Tool-capable model. Empty disables the reviewer. Overridden by PROBE_REVIEWER_MODEL. |
reviewer.endpoint | https://api.openai.com/v1/chat/completions | URL | Chat Completions endpoint with function calling; a /v1 base URL also works. HTTPS, or HTTP on loopback only. No credentials, query or fragment; redirects are refused. |
reviewer.api_key_env | PROBE_API_KEY | variable name | Environment variable holding the key; <NAME>_FILE and /run/secrets/<NAME> follow it. Empty for a provider that needs no key. |
reviewer.max_iterations | 20 | 1–100 | Model turns per investigation. --max-iterations overrides it. |
reviewer.max_generated_tests | 10 | 0–100 | Temporary tests the reviewer may create. |
reviewer.timeout_seconds | 600 | 1–1800 | Total time for the investigation. |
reviewer.max_input_bytes | 131072 | 4096–2097152 | Bound on source context sent to the provider. |
reviewer.swarm | absent | object | Present: every review runs a swarm of specialized agents. agents (all by default, at most 12), max_parallel (3, 1–8), partition_files (15, 0–1000; 0 never splits). An older binary refuses the key. |
sensitive_paths
Globs of paths that always raise a high sensitive_path signal when changed. Paths are relative to the repository root with forward slashes; * matches within a path segment and ** across segments. Absolute paths, backslashes and .. are rejected.
| Default glob | Covers |
|---|---|
**/auth/** | Any auth directory. |
**/payment*/** | payment, payments and similar directories. |
**/migrations/** | Database migrations. |
.github/workflows/** | CI workflows. |
.probe.json | The policy itself. |
fuzz v0.4
Runs the same seeded inputs through each changed package-level Go function and changed exported TS/JS function (with an unchanged signature) on baseline and candidate, and compares what the two revisions recorded. A diverged function is an observation, never a defect: it requests review (exit 2 with --ci) and never produces exit 1. {} enables it with the defaults.
| Key | Default | Allowed |
|---|---|---|
fuzz.max_functions | 8 | 1–32 functions per review |
fuzz.max_packages | 4 | 1–16 Go packages and TS/JS modules |
fuzz.max_inputs | 64 | 1–256 inputs per function |
fuzz.call_timeout_ms | 1000 | 10–10000, at most the command timeout |
fuzz.max_runtime_seconds | 240 | 1–7200, within sandbox.max_runtime_seconds |
mutation v0.4
Makes small deterministic changes to the added lines of changed non-test Go files and runs the package's tests once per mutant. A mutant no test notices becomes a medium surviving_mutant signal; no score is computed. All four keys are required. With a Vitest or Jest command ({file} and {results_out} instead of {package}, for example ["vitest", "related", "{file}", "--run", "--reporter=json", "--outputFile={results_out}"]), changed TypeScript and JavaScript sources are mutated instead, and each mutant runs the tests related to its file.
"mutation": {
"command": ["go", "test", "-json", "-count=1", "-failfast", "{package}"],
"max_mutants": 20, "timeout_seconds": 60, "max_runtime_seconds": 300
}
| Key | Allowed |
|---|---|
mutation.command | go test with exactly one -json and one standalone {package}; flags that change the selected tests or binary (-run, -exec, -o…) are refused. Or Vitest or Jest called directly (not through npm or a shell), with one standalone {file} and one {results_out}. |
mutation.max_mutants | 1–200. |
mutation.timeout_seconds | 1 to sandbox.timeout_seconds, per run. |
mutation.max_runtime_seconds | timeout_seconds to sandbox.max_runtime_seconds, inside the shared budget. |
prepare v0.4
Lets the trusted base-branch policy build the dependency layer: before any candidate code runs, its command runs once, in one bounded container, on dependency files exported from the base commit, and the container becomes the local image of every check. A later review of the same base and inputs reuses it. When it produces no image, the review exits 4; it never falls back to the unprepared image.
"prepare": { "command": ["go", "mod", "download"], "inputs": ["go.mod", "go.sum"], "network": true }
| Key | Default | Description |
|---|---|---|
prepare.command | required | Argv of 1 to 128 arguments; no placeholder is substituted. |
prepare.inputs | required | 1 to 64 repository-relative patterns (* never crosses /, no **). |
prepare.network | false | Network for the build container, only with --allow-prepare-network and without --no-network. |
prepare.user | "sandbox" | "sandbox" (the identity of checks) or "root". |
prepare.timeout_seconds | 600 | 1–3600. |
prepare.env | none | Up to 32 variables baked into the derived image; names that would change what checks execute (GOFLAGS, NODE_OPTIONS, LD_PRELOAD, PROBE_*…) are refused. |
prepare.max_added_mb | 4096 | 1–65536 MiB the derived image may add. |
context
A change often depends on contracts that live in another repository: shared types, an SDK, an API client, a sibling service. context names those repositories, directly or through clusters of related repositories, so the reviewer reads them and reports an incompatibility, for example an endpoint the SDK still calls the old way, as an UNVERIFIED hypothesis on the changed line.
"context": {
"repos": [
"company/shared-types",
{"name": "company/payment-sdk", "ref": "main", "paths": ["src/**"], "role": "payment SDK",
"url": "https://github.com/company/payment-sdk.git"}
],
"clusters": ["payments"],
"cluster_definitions": {
"payments": {"description": "Payment service, its SDK and shared types",
"repos": ["company/payment-service", "company/payment-sdk", "company/shared-types"]}
}
}
| Key | Description |
|---|---|
context.repos | Each entry is owner/repo or an object with name, ref (branch, tag or commit; HEAD by default), paths (globs that restrict what is read), role (for the reviewer) and url. |
context.clusters | The clusters this repository belongs to. Every other member becomes context; the repository itself is recognized from its origin remote and left out. |
context.cluster_definitions | Cluster definitions, or once for a whole organization in an operator file given with --clusters FILE. A cluster defined in both places is refused. |
Probe reads the committed files at ref of a local checkout given with --context-dir or --context-repo, never a working tree; with --fetch-context a missing one is shallow-fetched from its url. The reviewer's tools only list, read and search them: sensitive files and files over 1 MiB are never read, nothing is executed, and every read is audited. A repository that cannot be found is recorded as unavailable and never fails the review. Check the setup with probe context check.
# CI: check out the context next to the reviewed repository
- uses: actions/checkout@v4
with: {repository: company/payment-sdk, path: context/company/payment-sdk}
- run: probe review --base "origin/$GITHUB_BASE_REF" --context-dir context --ci
Language defaults
Written by probe init, and used when the base branch has no policy. Stock Node.js, Python and Rust images do not contain your dependencies: build an image that does, or add a prepare object, and adapt the commands.
| Language | Image | Commands |
|---|---|---|
go | golang:1.26-bookworm | test go test ./... · typecheck go vet ./... · build go build ./... · generated_test go test {package} · coverage go test -covermode=count -coverprofile={coverage_out} ./... |
typescript, javascript | node:22-bookworm | test npm test · build npm run build · generated_test npx --no vitest run {file} --reporter=json --outputFile={results_out} |
python | python:3.13-bookworm | test python -m unittest discover · generated_test python -m unittest {file} |
rust | rust:1-bookworm | test cargo test --workspace --offline · typecheck cargo check --workspace --all-targets --offline · build cargo build --workspace --offline · no generated_test |
unknown | golang:1.26-bookworm | No commands: review runs no checks until you add them. |
AI reviewer
Optional. When a model is configured, review lets it investigate the change with bounded tools: reading redacted files and diffs, searching source, looking up references and callers in the static index, querying the repository graph, reading the context repositories, running existing checks, and creating and running temporary tests on base and candidate. It also receives the knowledge base, the team's coding rules and feedback when they are given. It has no shell and no URL fetcher. Its claims stay hypotheses until a test reproduces a difference.
{
"reviewer": {
"endpoint": "https://your-provider.example/v1",
"model": "your-tool-capable-model",
"api_key_env": "PROBE_API_KEY"
}
}
export PROBE_API_KEY=… # from your shell or CI secret store
probe review --base main --config .probe.json # try it before committing
probe review --base main --reviewer=false # turn it off for one run
- Only the trusted policy,
--configor the deployment environment can enable the reviewer; a pull request cannot. - No provider account?
probe loginlets the reviewer use the LLM of a Probe Hub, within your account's daily quota. - Bounded, redacted source context is sent to the provider. Masking of secrets is best effort; use a local provider (for example
http://127.0.0.1:1234/v1) if source must stay local. - API keys never enter test containers.
lintnever calls a provider. - Provider failures and exhausted budgets keep the deterministic results and mark the investigation incomplete; with
--cithat requires human review.
Signal assessments
When the linter raised signals, the reviewer reads each one and gives it a plain-language title stating the intent of the modification ("Admin tokens now skip the expiry check" rather than "Lines added to a sensitive file"), a short explanation and a judgment: risk, no_risk or uncertain. A no_risk reading is kept only when it cites a recorded read of the source. With --ai-impacts-criticality (the default), a kept no_risk lowers its signal by one severity level, the linter's value staying in original_severity, and a low signal is set aside; review targets and the exit code then follow the adjusted severities. The judgment is never evidence and changes no hypothesis status.
Read-only review
probe review --read-only --base main --ci analyzes the diff and the relevant source with the deployment's model, without Docker and without executing repository code. Preparation, checks, coverage, fuzzing and mutation are skipped, and execution flags are refused. The model can read files, get the diff, search code and look up references, symbols, callers and the graph; any write or execution call is rejected.
- The provider comes from
PROBE_REVIEWER_MODELandPROBE_REVIEWER_ENDPOINT(OpenAI by default), or from a Probe Hub login when neither they nor an API key are set; the policy'sreviewersettings are ignored and built-in budgets apply. - Suspicions stay
UNVERIFIED: no reproduced issue can come from this mode. An unresolved hypothesis still requests human review (exit2with--ci). - The report records
analysis_mode: "review-read-only"and states that no code or test ran.
Reviewer swarm
With --swarm, or a reviewer.swarm policy object, several specialized agents investigate the change in parallel instead of one reviewer. Each is the ordinary reviewer, with the same tools and budgets, plus a focus. Their findings are merged without a model and checked against the evidence like any other: agreement between agents is never evidence.
| Agent | Focus |
|---|---|
correctness | Logic errors, edge cases, broken invariants, regressions of existing behavior. |
security | Injection, authentication and authorization bypasses, untrusted input, exposed secrets, unsafe deserialization, SSRF, misused cryptography. |
tests | Whether tests exercise the changed behavior; weakened or deleted assertions, tests that cannot fail. Writes differential tests where it can. |
compatibility | Exported APIs, callers in unchanged code, serialized formats, schemas and migrations, contracts with other repositories. |
reliability | Error handling, concurrency, resource leaks, timeouts and retries, performance regressions. |
intent | Whether the change does what its intent asks. Runs only when the intent yielded acceptance criteria. |
probe review --base main --swarm # every agent
probe review --base main --swarm-agents security,correctness # chosen agents, in this order
probe review --read-only --base main --swarm # also in read-only review
A change with more than partition_files changed files has its correctness agent split into up to 4 agents, each owning a group of files. Experiments run one at a time and share one reviewer.max_generated_tests budget; only the model conversations run in parallel, at most max_parallel at a time. If an agent fails, the others' work is kept and the failure is listed. The report lists the agents in reviewer_agents and credits each finding to the agents that submitted it. Provider traffic grows with the number of agents: five agents can cost up to five times one reviewer. See reviewer swarm.
Pull request summary
When the reviewer runs, it writes, after the verdict is settled, a description of the change a person can read in a minute: a title, an overview, changes by area, behavior changes, risks, where to look first, testing, and the developer intentions that group the signals and hypotheses ("Add agent sorting", "Test agent sorting"). It goes to pr_summary in the JSON report, to the top of CONFIDENCE_REPORT.md and to PR_SUMMARY.md, ready to paste as a pull request description.
probe review --base main # summary included when the reviewer runs
probe review --base main --pr-summary=false # skip it
probe report --format pr-summary # re-render PR_SUMMARY.md from the JSON report
It costs one provider call, two when the first answer is invalid. The summary is model output: it changes no status, severity, review target or exit code, and it is not an approval. A provider failure only leaves it out. Probe publishes nothing; posting it to a pull request is a CI decision. See PR summary.
Intent from Jira, Linear, Notion and Google Docs
The intent of a change can come from where the team already wrote it. review, lint and plan fetch it before any container starts or any provider call, add it to --intent or --intent-file, and record it in the report. Its acceptance criteria become AC-1, AC-2…, which the reviewer and the intent tests compare the implementation with.
| Flag | Source | Configuration |
|---|---|---|
--jira KEY, --jira auto | A Jira Cloud or Server/Data Center issue: summary, description and acceptance criteria. auto finds the key in the branch name or the commit messages. | PROBE_JIRA_URL, PROBE_JIRA_EMAIL, PROBE_JIRA_TOKEN |
--linear KEY, --linear auto | A Linear issue: title and description. auto also reads Linear's lower-case branch names. | PROBE_LINEAR_API_KEY |
--notion PAGE[,PAGE] | Up to 5 Notion pages (URLs or IDs): product, architecture or requirements. | PROBE_NOTION_TOKEN |
--gdoc DOC[,DOC] | Up to 5 Google Docs (URLs or IDs), such as design documents, exported as Markdown. | PROBE_GOOGLE_ACCESS_TOKEN, PROBE_GOOGLE_CREDENTIALS or PROBE_GOOGLE_API_KEY |
probe review --base main --jira auto --ci # the issue named by the branch
probe review --base main --linear ENG-123
probe plan --jira PROJ-123 --gdoc "$DESIGN_DOC_URL" --ci
Notion pages and Google Docs are context: their list items become criteria only under an "Acceptance criteria" heading. A fetch that fails (missing configuration, an issue or page the account cannot see, an authentication error) exits 3. The fetched text is data for the model, never instructions. See the Jira, Linear, Notion and Google Docs guides.
Team coding rules
--rules TEXT or --rules-file FILE (UTF-8, at most 32 KiB) gives the reviewer your team's coding rules, in both review modes. It checks the changed code, and only the changed code, against them and reports each violation as a hypothesis naming the rule, UNVERIFIED unless evidence supports another status. The rules are review criteria, not instructions: they cannot change the tools, the statuses or the evidence requirements. They come from the command line, never from the reviewed change, and are recorded in coding_rules when a reviewer ran.
probe review --base origin/main --rules-file docs/CODING_RULES.md --ci
Learning from team feedback
--feedback-file FILE (JSON, at most 64 KiB) tells the reviewer what the team thought of earlier findings, so reviews gradually fit the team. Probe Hub builds it from the votes, comments and replies on findings and from whether the next commit changed the flagged file. With at least three reactions and a two-to-one majority, the reviewer is told the trend: it spends less effort on topics the team finds not useful, investigates those it values more deeply, and follows the preferences the comments express.
The feedback is guidance for the model, never evidence. It changes no status, severity or exit code by itself, never justifies dismissing a concrete defect, and is recorded in team_feedback.
Nothing in the reference matches this filter.