issue-amend

issue-amend is a command for Claude Code from assafkip/kipi-system. It costs 26 tokens per session (601 once invoked), scanned A, original, MIT.

A command for changing the scope of an active issue after its specification turns out to be incomplete or incorrect.

In plain words
What is it for?
It re-reads the issue, updates allowed and disallowed files and required checks, clears verification and review receipts, and records why the change was made.
Why use it?
It keeps the recorded issue scope aligned with the updated specification and makes previously verified work undergo verification again.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the kipi-dsse plugin — 6 commands shipped together

Good fit It re-reads the issue, updates allowed and disallowed files and required checks, clears verification and review receipts, and records why the change was made.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add assafkip/kipi-system
Claude Code
/plugin install kipi-dsse

Made for: Claude Code.

Or install kipi-dsse, the plugin that ships this one along with the rest of its 6 commands.

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 issue-amend

README.md
[![agentmods](https://agentmods.dev/badge/commands/assafkip/kipi-system/issue-amend/github.svg)](https://agentmods.dev/commands/assafkip/kipi-system/issue-amend)
Your own site
<a href="https://agentmods.dev/commands/assafkip/kipi-system/issue-amend"><img src="https://agentmods.dev/badge/commands/assafkip/kipi-system/issue-amend/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for issue-amend

Your own site · 80×15
<a href="https://agentmods.dev/commands/assafkip/kipi-system/issue-amend"><img src="https://agentmods.dev/badge/commands/assafkip/kipi-system/issue-amend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 601 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00026 $0.00601
Opus 5.5 $0.00010 $0.00240
Sonnet 5.5 $0.00005 $0.00120
Haiku 4.5 $0.00003 $0.00060

Measured 2mo ago against content hash 76870a6e5b55, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

issue-amend 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 2mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/kipi-dsse/commands/issue-amend.md · 39 lines

What it actually says

Use this when you realize mid-build that the spec was wrong. The flow:

  1. The founder edits the issue spec in q-ktlyst/.q-system/issues/<id>.md (or the instance-equivalent path). Typical edits: widen allowed_files, adjust required_checks, add a new disallowed_files entry.

  2. Run amend with a short reason explaining what changed and why:

    python3 "${CLAUDE_PLUGIN_ROOT}/scripts/issue_runner.py" amend \
      --reason "realized the bug also lives in helpers/*, widening scope"
    

    The runner does four things:

    • Re-reads the spec from disk.
    • Re-snapshots allowed_files, required_checks, and disallowed_files into state.
    • Clears receipts.verified and receipts.reviewed (forces re-verify + re-review).
    • Appends an entry to state.amendments with timestamp, reason, old snapshot, new snapshot.

    What amend does NOT change:

    • review_rounds counter (the cap still governs; amending does not reset review budget).
    • Spec status (stays in-progress).
    • findings_triaged receipt (that receipt only matters at closeout).
  3. Exit 0 means the amendment is logged. Exit 2 means either no active issue or missing --reason.

  4. Re-run /issue-verify to regenerate the verified receipt against the new scope. Then /issue-review for the reviewed receipt. The runner's review-rounds cap still applies; amending does not grant extra review budget. If a full standard + adversarial pair already ran pre-amend, ISSUE_ALLOW_REVIEW_REPEAT=1 is the override knob.

  5. On /issue-closeout, close flushes all entries from state.amendments into an ## Amendments section at the bottom of the spec file. That becomes the permanent audit record. After close, the spec shows exactly what was amended, when, why, and what the scope looked like before and after each amendment.

Guardrails:

  • Amend is for genuine mid-build spec corrections. It is not a retry button after a bad review. If the issue as specified was fine but the implementation was wrong, fix the implementation. Do not amend.
  • Amend requires a non-empty --reason. Empty strings are rejected.
  • Amend does not create or modify files other than .claude/state/active-issue.json. The spec edit is a separate manual step before amend.
  • Repeated amendments are fine. Each one records its own before/after snapshot and adds its own entry to the permanent footer on close.
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. 2mo ago First seen · 39 lines · 26 tokens per session scan A 76870a6e5b55

Subscribe to this mod's changes

issue-amend is a command published in the GitHub repository assafkip/kipi-system (131 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 601 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

issue-amend compared with commands from other repositories

issue-amend next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
issue-amendassafkip/kipi-systemCommand131todayMITA26Claude Code
recallmodeled-information-format/mnemonicCommand2311d agoMITA9Claude Code
querymodeled-information-format/mnemonicCommand2311d agoMITA9Claude Code
searchmodeled-information-format/mnemonicCommand2311d agoMITA8Claude Code
gcmodeled-information-format/mnemonicCommand2311d agoMITB7Claude Code
setupmodeled-information-format/mnemonicCommand2311d agoMITB8Claude Code
statusmodeled-information-format/mnemonicCommand2311d agoMITB8Claude Code