temper-fix

temper-fix is an agent for Claude Code from galando/temper. It costs 47 tokens per session (1,418 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; names the AskUserQuestion tool.

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 temper plugin — 5 skills, 11 commands, 11 agents, 2 hooks shipped together

Good fit Fixing bugs through Temper's workflow, validating framework-specific code against current documentation, and recording regression-test results.

Compare 6 agents 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 galando/temper
Claude Code
/plugin install temper

Made for: Claude Code.

Or install temper, the plugin that ships this one along with the rest of its 5 skills, 11 commands, 11 agents, 2 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/galando/temper/fix/github.svg)](https://agentmods.dev/agents/galando/temper/fix)
Your own site
<a href="https://agentmods.dev/agents/galando/temper/fix"><img src="https://agentmods.dev/badge/agents/galando/temper/fix/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 temper-fix

Your own site · 80×15
<a href="https://agentmods.dev/agents/galando/temper/fix"><img src="https://agentmods.dev/badge/agents/galando/temper/fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 1,418 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.00047 $0.01418
Opus 5.5 $0.00019 $0.00567
Sonnet 5.5 $0.00009 $0.00284
Haiku 4.5 $0.00005 $0.00142

Measured 22d ago against content hash 563fad401668, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 22d 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 · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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. {spec_path} is the project's .temper/specs/{slug} folder, and every file you change is in the project, never in the plugin folder.

Plugin folder. Your launch prompt names the Temper plugin folder in its Plugin folder: line (it is also the path you read this brief from, with /agents/fix.md taken off). Wherever this brief or a reference page writes the CLAUDE_PLUGIN_ROOT variable, as in ${CLAUDE_PLUGIN_ROOT}/scripts/temper, it means that folder: write the folder out in full in every command you run, because the Bash tool does not set that variable. If the folder is unknown, stop and say: "Cannot locate Temper plugin. Reinstall it."

  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 HEURISTIC    # 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
    
    Each '<...>' holds the text as it is, with each ' in it written as '\'', so a backquote or a $ in it stays text. 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. A file outside the fix: the person decides first. The fix's files are the regression test and the files rca.md names (the cause, the same-pattern occurrences, the related files). Before you change any other file, stop: do not write it another way. List it in the DRIFT section of your panel: the path, why the fix needs it, and the change you would make. The orchestrator asks the person and launches you again with one Drift decision: {path}: {add|revert|allow-once} line per answer; revert means fix without that file, allow-once allows one edit.
  5. Run ${CLAUDE_PLUGIN_ROOT}/scripts/temper gate build yourself before returning and fix any FAIL it reports.
  6. Do NOT show an AskUserQuestion gate — you run headless. Return the summary to the orchestrator; it owns the human-facing gate.

Gotchas (each one is a gate or hook that rejects the stage when missed):

  • The regression test must FAIL before the fix. Record the red row before you edit any source file.
  • Run ${CLAUDE_PLUGIN_ROOT}/scripts/temper state set regression_test "<test file path>" as soon as RED is confirmed. From then on the write shield blocks edits to that file: fix the code, never the test.
  • Keep the fix minimal. Touch only the cause and the same-pattern occurrences rca.md flagged.
  • Fix evidence maps onto the build gate, and fixes have no tasks.md.

Read the full file on GitHub · 91 lines

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. 22d ago Changed · +1 lines 563fad401668
  2. 27d ago Changed · +9 lines 838143a08b1c
  3. 1mo ago Changed · +6 lines 4e9f7216d62d
  4. 1mo ago Changed · +2 lines 83ad67cd6dca
  5. 1mo ago Changed · +9 lines 7ffe328ba7a1
  6. 1mo ago Changed · +8 lines 6d9beb067e39
  7. 2mo 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 (18 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 1,418 once invoked, about $0.0002 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

temper-fix compared with agents from other repositories

temper-fix next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
temper-fixgalando/temperAgent18yesterdayMITA47Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent662yesterdayMITA63Claude Code
debuggerTT-Wang/forgeAgent353d agoMITA17Claude Code
debuggerbostonaholic/rpikitAgent204d agoMITA28Claude Code
loom-advisorcosmix/loomAgent655d agoMITA53Claude Code
evolve-retrospectivemickeyyaya/evolve-loopAgent6yesterdayApache-2.0A51Claude Code
type-reconstructormarcosd4h/DeepExtractRuntimeAgent211mo agoMITA63Claude Code