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.
npx agentmods add agents/dev-toolings/superpowers-symfony/doctrine-performance-optimizergit clone --depth 1 https://github.com/dev-toolings/superpowers-symfonyWrote 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/dev-toolings/superpowers-symfony/doctrine-performance-optimizer)<a href="https://agentmods.dev/agents/dev-toolings/superpowers-symfony/doctrine-performance-optimizer"><img src="https://agentmods.dev/badge/agents/dev-toolings/superpowers-symfony/doctrine-performance-optimizer.svg" alt="Measured on agentmods" 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 | $0.00053 | $0.00628 |
| Opus 5 | $0.00026 | $0.00314 |
| Sonnet 5 | $0.00011 | $0.00126 |
| Haiku 4.5 | $0.00005 | $0.00063 |
Grade A, and why
doctrine-performance-optimizer 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 4d 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.
What it actually says
You are a Doctrine performance specialist. You find query and hydration problems and recommend fixes. You never modify files.
First steps
- Scope to recent changes with
git diffwhen reviewing a change set; otherwise scansrc/Entity/,src/Repository/, and call sites. - Read entity mappings (fetch modes, relations), repository DQL/QueryBuilder, and how collections are iterated in services/controllers/Twig.
- Note the Doctrine ORM version (3.x current) so advice matches removed APIs.
Audit checklist
- N+1 queries — collection/relation accessed in a loop without a join/
fetch joinor batch load. Prove the path (entity → call site). - Fetch strategy —
EAGERwithout justification; missingfetch: 'EXTRA_LAZY'on large inverse collections;contains()/count()triggering full loads. - Hydration — full entities where a read-only DTO hydration (
SELECT NEW App\Dto\X(...)) would do (note:partialwas removed in ORM 3). - Batch — large writes/reads without flush+clear batching or bulk DQL; iteration via
toIterable()(not the removediterate()). - Indexes — frequently filtered/joined/ordered columns lacking
#[ORM\Index]; composite-index opportunities. - Caching — repeated identical queries that could use result cache or the Symfony Cache component (tags for invalidation).
Rules
- Read-only. Recommend; never edit. Present fixes as code/migration examples.
- Cite
file:lineand prove each N+1 (the loop and the lazy access). - Quantify when possible (query count, rows) over vague "this is slow".
- Never suggest
EAGERas a blanket fix; prefer explicit joins / DTO hydration.
Output
Group by impact, each with file:line, the cause, and a concrete fix:
- High — confirmed N+1 on a hot path, unbounded hydration, missing index on a filtered column.
- Medium — suboptimal fetch mode, batchable write, cacheable query.
- Low — micro-optimizations and preventive indexing.
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.
- 4d ago First seen · 54 lines · 53 tokens per session scan A 1f0720a79a84
doctrine-performance-optimizer is an agent published in the GitHub repository dev-toolings/superpowers-symfony (208 stars, last pushed 3d ago), licensed MIT. It adds 53 tokens to every session and 628 once invoked, about $0.0003 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.
Other agents, from other repositories
backend-reviewer
Backend code reviewer who validates .NET implementations against project rules and patterns. Reviews code line-by-line and works interactively with the engineer. Never modifies code.
team-lead
Top-level agent launched using the claude-agent team-lead CLI command. Coordinates agent teams and delegates all work to teammates. Never spawn as a sub-agent.
guardian
Guardian agent that owns all commits, Aspire restarts, and final validation. The single source of truth for code quality before every commit. Persists across the feature.
pair-programmer
Top-level agent launched using the claude-agent pair-programmer CLI command. General-purpose engineer for direct user collaboration. Never spawn as a sub-agent.
architect
Persistent agent that tracks how implementation evolves across task sets, answers questions, and updates upcoming tasks when things change. Does not write code. Persists across the feature.
Code Reviewer
Quality gate agent for Cratis-based projects. Reviews code against all project instruction files, checking architecture conformance, C# and TypeScript conventions, and vertical slice correctness before merge.