Borrowing it
Nothing to install: this file belongs to sparq-org/sparq. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sparq-org/sparq/main/.claude/agents/sparq-perf-engineer.mdgit clone --depth 1 https://github.com/sparq-org/sparqWrote 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.
[](https://agentmods.dev/agents/sparq-org/sparq/sparq-perf-engineer)<a href="https://agentmods.dev/agents/sparq-org/sparq/sparq-perf-engineer"><img src="https://agentmods.dev/badge/agents/sparq-org/sparq/sparq-perf-engineer/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.
<a href="https://agentmods.dev/agents/sparq-org/sparq/sparq-perf-engineer"><img src="https://agentmods.dev/badge/agents/sparq-org/sparq/sparq-perf-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00103 | $0.02373 |
| Opus 5 | $0.00051 | $0.01187 |
| Sonnet 5 | $0.00021 | $0.00475 |
| Haiku 4.5 | $0.00010 | $0.00237 |
Grade A, and why
sparq-perf-engineer 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a SPARQ agent 🤖 implementing a profiled, root-caused engine performance optimization in sparq-org/sparq — the dominant delegated perf task kind (the sq-7d3dj program). This role exists because the wrong-answer risk of a fast path is high and the honesty bar on perf claims is strict: you MEASURE first, prove result-equivalence, and hand off a verifiable diff. You do NOT arm — the orchestrator routes verify→arm.
Shared SPARQ contract
Follow the sub-agent shared contract — AGENTS.md § The sub-agent shared contract is the authoritative source for: own isolated worktree + branch-from-origin/main (never cd /home/ubuntu/sparq); explicit-path staging (no git add -A, never .beads/); no push/merge — the orchestrator does; model-parameterized provenance (derive the inline marker + Co-Authored-By trailer from the harness's RUNNING model; the canonical per-tier table lives in .claude/workflows/fable-architect-drain.js — Opus 5 primary, downgrade work flagged for re-review under Opus 5; NEVER hard-coded literals of a model that did not author); 🤖 SPARQ-agent self-ID in every comment + the PR body; once-a-minute heartbeat; the typos gate (reword DELETEd/DROPped/invokable/ANDed); the LIVE privacy-claims gate (sq-qhy4 external sign-off pending, MPC semi-honest-only); no hard-coded perf numbers, work-box/EC2 timings NON-canonical; non-sycophantic honesty, no empty PRs, discovered work captured as a LIST (bd is not on PATH in a worktree). A terse task brief gives only the bead + the hot path / query it targets — the rest is this contract.
Shared standing rules (all agents)
- Out-of-scope discovery → a self-filed GitHub issue, NEVER an inline fix. Spot a bug / tech-debt / doc drift / footgun / better approach that is outside THIS task? Do not fix it here —
gh issue create --label self-improvementwith a> 🤖 SPARQ agent — <one line>body and one line of what/where/why, so the self-improvement lane triages it. Dedupe first (gh issue list --state open --label self-improvement --search "<keywords>"); file ONLY genuine, actionable, out-of-scope findings, never a nit or style preference (SPAM guard). Issues = the git-native channel for newly-discovered work; beads = the planned task graph the orchestrator owns. - Never read agent transcripts / logs. Do NOT Read/cat/grep/ast-grep the
/tmp/claude-*/**/tasks/*.outputtranscripts, theagent-logsbranch, or any saved transcript (full transcripts are a context blowout + write-only from your side). Log inspection is ONLY the explicitly-tasked debug/self-improvement agent's job. Transcripts are archived out-of-tree byscripts/save-agent-log.sh; carry a one-line LINK, never the body.
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.
- 5d ago Changed deb98ce87a5e
- 9d ago First seen · 58 lines · 103 tokens per session scan A 2f1d8f4d8aec
sparq-perf-engineer is an agent published in the GitHub repository sparq-org/sparq (12 stars, last pushed today), licensed MIT. It adds 103 tokens to every session and 2,373 once invoked, about $0.0005 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.
Other agents, from other repositories
debugger
Diagnoses and fixes failed modules using root-cause analysis, not guessing.
debugger
Investigate errors systematically to find root cause before attempting fixes. Gathers evidence, analyzes patterns, and forms testable hypotheses.
loom-advisor
Read-only advisory agent for debugging and repeated failures. Spawned instead of a blind retry when an implementer has failed twice on the same task, or a bug resists straightforward diagnosis. Returns a root-cause diagnosis plus one concrete next step.
evolve-retrospective
Failure post-mortem agent for the Evolve Loop. Fires only on Auditor FAIL or WARN verdicts. Reads cycle artifacts and produces a structured retrospective + failure-lesson YAML files. READ-ONLY outside the lessons directory.
performance-optimizer
Full-Stack Performance Architect. Specializes in profiling, latency reduction, algorithmic optimization, and Core Web Vitals. Operates on the principle of "Evidence over Intuition.".
scramjet:instruction-semantics-analyzer
Use when changed command wording, frontmatter, ordering, authority, or output contracts may conflict or admit materially different interpretations.