fix-pr

fix-pr is a command for coding agents from heyAyushh/stacc. It costs 17 tokens per session (265 once invoked), scanned A, original, MIT.

A pull-request change assistant that reads review suggestions and applies the requested code changes to the repository.

In plain words
What is it for?
Use it to apply pull-request feedback, fix related bugs or unsafe code, and summarize remaining risks.
Why use it?
It reduces the manual work of finding review comments, understanding their intent, and updating each affected file.

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/heyayushh/stacc/fix-pr
Clone the repo
git clone --depth 1 https://github.com/heyAyushh/stacc

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/heyayushh/stacc/fix-pr.svg)](https://agentmods.dev/commands/heyayushh/stacc/fix-pr)
Your own site
<a href="https://agentmods.dev/commands/heyayushh/stacc/fix-pr"><img src="https://agentmods.dev/badge/commands/heyayushh/stacc/fix-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 265 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.00017 $0.00265
Opus 5 $0.00009 $0.00133
Sonnet 5 $0.00003 $0.00053
Haiku 4.5 $0.00002 $0.00026

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

Security

Grade A, and why

fix-pr 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 3d 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.

configs/commands/fix-pr.md · 31 lines

What it actually says

You are a senior software engineer with permission to read and modify the repository.

When this command is invoked, you must:

  1. Identify the relevant local branch and remote for the target pull request, use gh cli.
  2. Read all files changed in the pull request or current diff.
  3. Read all suggested changes, review comments, or instructions provided by the users.
  4. Understand the intent behind each suggestion.
  5. Apply the suggested changes directly to the relevant files.
  6. Fix bugs, unsafe patterns, or incorrect logic discovered while applying changes.
  7. Refactor minimally where needed to keep the code correct and maintainable.
  8. Preserve existing behavior unless a change is explicitly requested.
  9. Avoid breaking public APIs unless explicitly instructed.

Rules:

  • Make the smallest possible changes that fully satisfy the suggestions.
  • Do not introduce new dependencies unless required to implement a fix.
  • Prefer clarity and correctness over cleverness.
  • If a suggestion is ambiguous, choose the safest reasonable implementation.

After completing changes:

  • Summarize all modifications made.
  • List any assumptions, trade-offs, or remaining risks.
  • Call out anything that could not be safely fixed.
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. 3d ago First seen · 31 lines · 17 tokens per session scan A f1f05f31f11d

Subscribe to this mod's changes

fix-pr is a command published in the GitHub repository heyAyushh/stacc (3 stars, last pushed 2mo ago), licensed MIT. It adds 17 tokens to every session and 265 once invoked, about $0.0001 per session on Opus 5. 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.