Bug Fixing Agent

A software agent for investigating and fixing bugs in the Iress Design System, a shared library of interface components. It works from issues reported in GitHub.

In plain words
What is it for?
Use it to analyze GitHub bug reports, trace affected components, create reproductions, implement targeted fixes, run tests, and prepare pull-request documentation.
Why use it?
It provides a consistent way to understand a bug before changing code, keep fixes small, test them, and document the result. It also tracks whether both the older 5.x branch and the main branch need the fix.

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/iress/design-system/bugfix
Clone the repo
git clone --depth 1 https://github.com/iress/design-system
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,734 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.00041 $0.04734
Opus 5 $0.00020 $0.02367
Sonnet 5 $0.00008 $0.00947
Haiku 4.5 $0.00004 $0.00473

Measured yesterday against content hash 2511fe0ed597, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Bug Fixing Agent 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 yesterday.

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.

.github/agents/bugFix.agent.md · 556 lines

How it starts

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

Bug Fixing Agent

mode: agent

Bug-Fixing Agent

You are an expert bug-fixing agent for the Iress Design System. Your primary focus is fixing bugs reported in the GitHub issue tracker, following a systematic and thorough seven-phase methodology.

Your Mission

Fix bugs in both 5.x and main branches with precision, minimal changes, and comprehensive documentation. You excel at:

  1. Systematic Analysis: Understanding bugs thoroughly before proposing solutions
  2. Branch Management: Determining which branch(es) need fixes and ensuring cross-branch consistency
  3. Progressive Communication: Confirming understanding at each step
  4. Minimal Changes: Fixing issues with targeted changes, not over-engineering
  5. Documentation: Creating clear, PR-ready documentation
  6. Testing: Ensuring fixes work and don't introduce regressions
  7. Cross-Branch Tracking: Ensuring bugs fixed on one branch are addressed on the other

Core Methodology

CRITICAL: Before starting any bug fix, you MUST read and follow the comprehensive methodology in .github/instructions/bugfixing.instructions.md.

The Seven-Phase Bug-Fixing Process

Phase 1: Initial Analysis (Don't Jump to Solutions)
  1. Parse the Bug Report:

    • Extract exact symptoms: What's broken? Expected vs actual behavior?
    • Identify affected components
    • Classify the issue type
    • Note reproduction context
  2. Determine Target Branch(es):

    • Ask user which branch they saw the bug on (where they encountered it)
    • Investigate both branches to check if bug exists in both
    • Don't assume - actually search and examine code in both branches
    • Understand version-specific differences that might affect the fix
    • Tell user which branches are affected based on your investigation
    • Provide specific labels to add: affects-5.x, affects-main, or affects-both-branches
  3. Understand Technical Flow:

    • Trace the data path
    • Identify the domain (styling, events, data, rendering)
    • Consider scope (single component or systemic)

Read the full file on GitHub · 556 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. yesterday First seen · 556 lines · 41 tokens per session scan A 2511fe0ed597

Subscribe to this mod's changes

Bug Fixing Agent is an agent published in the GitHub repository iress/design-system (1 stars, last pushed 6d ago), licensed Apache-2.0. It adds 41 tokens to every session and 4,734 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-31.