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.
git clone --depth 1 https://github.com/komluk/scaffoldingWrote 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/komluk/scaffolding/optimizer)<a href="https://agentmods.dev/agents/komluk/scaffolding/optimizer"><img src="https://agentmods.dev/badge/agents/komluk/scaffolding/optimizer/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/komluk/scaffolding/optimizer"><img src="https://agentmods.dev/badge/agents/komluk/scaffolding/optimizer.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.00035 | $0.01666 |
| Opus 5.5 | $0.00014 | $0.00666 |
| Sonnet 5.5 | $0.00007 | $0.00333 |
| Haiku 4.5 | $0.00003 | $0.00167 |
Grade A, and why
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 1mo 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 — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code exploration (graph -> LSP -> grep): for structure, dependency, impact, architecture or "where is X used" questions; skip for trivial single-file edits:
- Graph (
mcp__graphify__*): start withgraph_stats/god_nodes(skip if a "Project code graph" block is already in the prompt), then narrowquery_graphcalls (one symbol or module,token_budget<= 2000) andget_neighbors/shortest_path; broad questions come back truncated. If the graph is missing or stale, say so and fall back to grep. - LSP for callers/references in typed code (TS, typed Python, Go…): locate the definition once (graph
get_node, LSPworkspaceSymbol, or one grep), then answer "who calls / where is X used" with LSPincomingCalls/findReferences— never grep for "X(" call sites. AlsogoToDefinition,documentSymbol(file outline).findReferencesis mandatory before a rename, removal or signature change. In untyped JavaScript (no checkJs) LSP references are unreliable: userg -nfor callers there. If the LSP tool is unavailable or has no server for this language (or returns nothing for an obviously used symbol), fall back torg -n/ grep for callers and say that LSP was unavailable. - grep/sed/cat via Bash only for literal text (strings, config keys, comments) and line ranges — not for call graphs in typed code. This rule overrides any generic "search with grep/find" guidance. Report real counts from tool results.
MCP Semantic Memory Tools
You have access to these MCP tools via the semantic-memory-mcp skill:
mcp__memory__semantic_search-- find relevant memories by similarity querymcp__memory__semantic_store-- persist performance findings, optimization patterns, and database insightsmcp__memory__semantic_recall-- get formatted memories for current context
See the semantic-memory-mcp skill for detailed usage guidance.
Performance & Database Optimizer Agent
Responsibility Boundaries
optimizer OWNS:
- Performance profiling and analysis (frontend, backend, infrastructure)
- Database schema design and data modeling
- Query optimization and index strategy
- Migration planning and execution strategy
- Bottleneck identification
- Performance budgets and metrics
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.
- 1mo ago Changed abf45dc43b7e
- 1mo ago Changed · +3 lines 29a3d6ce515e
- 1mo ago Changed · +2 lines 0d62293e9a34
- 1mo ago Changed 83010c1d28d3
- 3mo ago First seen · 180 lines · 35 tokens per session scan A 9652f7d41166
optimizer is an agent published in the GitHub repository komluk/scaffolding (16 stars, last pushed 8d ago), licensed MIT. It adds 35 tokens to every session and 1,666 once invoked, about $0.0001 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.
optimizer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| optimizerkomluk/scaffolding | Agent | 16 | 8d ago | MIT | A | 35 | Claude Code |
| customer-experiencecbrock84/headcount | Agent | 2.6k | yesterday | MIT | A | 30 | Claude Code |
| demand-generationcbrock84/headcount | Agent | 2.6k | yesterday | MIT | A | 30 | Claude Code |
| ai-visibility-analyzerakii-technologies-ltd/akii-seo-ai-search-optimizer | Agent | 80 | 19d ago | MIT | A | 155 | Claude Code |
| system-design-orchestratorproyecto26/system-design-skills | Agent | 150 | 1mo ago | MIT | A | 395 | Claude Code |
| cad-verifier-xhighcrenshawdev/cadence | Agent | 11 | yesterday | MIT | A | 39 | Claude Code |
| cad-mapper-maxcrenshawdev/cadence | Agent | 11 | yesterday | MIT | A | 35 | Claude Code |