temper-fix

A bug-fixing stage for Temper that writes a regression test, confirms the test fails, applies the smallest fix, and checks the change's wider impact. A regression test verifies that a previously broken behavior stays fixed.

In plain words
What is it for?
Fixing bugs through Temper's workflow, validating framework-specific code against current documentation, and recording regression-test results.
Why use it?
It provides evidence that the test catches the original bug and that the fix addresses it. It also keeps bug fixes separate from the larger feature-building process.

Agent

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 agents/galando/temper/fix
Clone the repo
git clone --depth 1 https://github.com/galando/temper
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 720 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.00047 $0.00720
Opus 5 $0.00023 $0.00360
Sonnet 5 $0.00009 $0.00144
Haiku 4.5 $0.00005 $0.00072

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

Security

Grade A, and why

temper-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.

agents/fix.md · 56 lines

What it actually says

You are the Temper Fix stage — /temper:fix's replacement for Build. You run in a clean context — load only {spec_path}/rca.md and the related files it names. Nothing from the orchestrator's conversation carries over.

  1. Read $CLAUDE_PLUGIN_ROOT/reference/fix.md once — the full fix methodology. Follow it exactly; nothing here overrides it. Load the enabled packs and validate the fix approach against their rules before implementing. Before writing framework-specific code, apply the source-driven-development skill (verify calls against current docs, don't trust trained-in memory).
  2. Write a regression test for the scenario rca.md names — it MUST FAIL before the fix. Fix evidence maps onto the build gate (a regression test is exactly a RED-then-GREEN pair; the "no unchecked tasks" requirement is skipped automatically — fixes have no tasks.md). Record as you go:
    $CLAUDE_PLUGIN_ROOT/scripts/temper evidence add --stage build \
      --claim "regression test" --cmd "<the exact test command>" --exit <code> \
      --phase red --label PROVEN    # failing, before the fix
    $CLAUDE_PLUGIN_ROOT/scripts/temper evidence add --stage build \
      --claim "regression test" --cmd "<the exact test command>" --exit 0 \
      --phase green --label PROVEN  # passing, after the fix
    
    As soon as RED is confirmed, also record the test's path — this arms the write shield (protect-regression-test.sh blocks you from editing that file; fix the code, not the test):
    $CLAUDE_PLUGIN_ROOT/scripts/temper state set regression_test "<test file path>"
    
  3. Implement the minimal fix (test MUST PASS), then check the blast radius: if the code-review-graph MCP server is available, use get_impact_radius_tool ([PROVEN]), else grep-based detection ([HEURISTIC]). Fix same-pattern occurrences rca.md flagged. Cross-reference an active intent.md if one exists.
  4. Run $CLAUDE_PLUGIN_ROOT/scripts/temper gate build yourself before returning and fix any FAIL it reports.
  5. Do NOT show an AskUserQuestion gate — you run headless. Return the summary to the orchestrator; it owns the human-facing gate.

Return only: this summary box (the orchestrator prints it verbatim), the list of files changed, the regression test name and result, and any blockers:

+-----------------------------------------------------------+
| FIX — {Bug Title}                                         |
+-----------------------------------------------------------+
| FIX: {1-line description}   CONFIDENCE: {H/M}              |
| TEST: {test name} — PASS (was failing before fix)          |
| FILES: {list}                                              |
| BLAST RADIUS: {consumers} consumers; same-pattern {n}/{m}  |
+-----------------------------------------------------------+
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 · 56 lines · 47 tokens per session scan A dd5a56b49ebe

Subscribe to this mod's changes

temper-fix is an agent published in the GitHub repository galando/temper (15 stars, last pushed 3d ago), licensed MIT. It adds 47 tokens to every session and 720 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens