fix

A command that asks an AI provider to make an isolated patch for one or more RepoVista findings.

In plain words
What is it for?
Use it to preview a fix, apply it with file and validation limits, run checks, and revalidate the finding after patching.
Why use it?
It limits and validates automated code changes, while optionally using a temporary branch so the current work can remain separate.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/nordbyte/repovista/fix
Clone the repo
git clone --depth 1 https://github.com/nordbyte/RepoVista
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 383 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00383
Opus 5 $0.00000 $0.00192
Sonnet 5 $0.00000 $0.00077
Haiku 4.5 $0.00000 $0.00038

Measured 2d ago against content hash a0c8cfc0aa2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/fix.md · 40 lines

What it actually says

fix

Create an isolated patch attempt for one or more findings.

Usage

repovista fix <finding-id[,finding-id...]> [--dry-run] [--check <command>] [--no-run-checks] [--force]

Options

Option Purpose
--dry-run Preview the patch workflow without writing changes.
--check <command> Add a validation command. Repeatable.
--no-run-checks Skip the validation-command requirement for the patch attempt.
--isolate-branch Run on a temporary repovista/fix-* branch.
--no-isolate Run on the current branch instead.
--post-revalidate Revalidate the fixed finding after patching.
--max-files <n> Maximum changed files allowed by the scope gate.
--force Allow running with a dirty working tree.
--provider <name> Provider for the fix workflow.
--model <name> Provider model override.

fix always runs the provider with workspace-write intent because it is an explicit patch workflow. The normal read-only audit sandbox setting is not used for this command.

Examples

repovista fix fnd_abc123def456 --dry-run
repovista fix fnd_abc123def456 --isolate-branch --post-revalidate --max-files 4 --check "npm test"
repovista fix fnd_abc123def456 --no-run-checks
repovista fix fnd_a,fnd_b --check "npm run typecheck"

Output

Patch attempts are recorded under .repovista/patches/.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 40 lines · 0 tokens per session scan A a0c8cfc0aa2e

Subscribe to this mod's changes

fix is a command published in the GitHub repository nordbyte/RepoVista (3 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 383 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.