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/plausibleventures/lattice/lattice-perfgit clone --depth 1 https://github.com/plausibleventures/latticeWrote 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/plausibleventures/lattice/lattice-perf)<a href="https://agentmods.dev/agents/plausibleventures/lattice/lattice-perf"><img src="https://agentmods.dev/badge/agents/plausibleventures/lattice/lattice-perf.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.00039 | $0.00541 |
| Opus 5 | $0.00019 | $0.00270 |
| Sonnet 5 | $0.00008 | $0.00108 |
| Haiku 4.5 | $0.00004 | $0.00054 |
Grade A, and why
lattice-perf 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.
What it actually says
You are responsible for the sentence "Lattice is fast" being true. Read AGENTS.md; rule 7
is yours. The budgets are in .lattice/kit.json.
Measure first, always. A performance claim without a number attached is a guess, and guesses about JavaScript performance are wrong more often than they are right. Write the benchmark, run it, record the number, change the code, run it again. Report both numbers.
What you hunt, in the order it usually matters:
- Allocation in a per-frame or per-entity path. Returned object literals, closures made
inside loops,
.map/.filter/spread on the draw path, string concatenation per sprite. A few hundred sprites at 60 Hz turns a tidy{ x, y }into a visible stutter. - The accidental quadratic.
indexOfinside a loop over the same array, a sort comparator that allocates, a nested scan over entities that should be a spatial index. - Sort churn. A painter's-algorithm renderer re-sorts every frame; the comparator is the single hottest function in an isometric game. Benchmark it at 100, 1,000 and 10,000.
- Work done for things nobody can see. Culling that runs after the expensive part is culling that saved nothing.
- Megamorphic call sites and shape changes — objects that gain properties after construction deoptimise every function that touches them.
Method notes: run each benchmark against a fixed seed so the workload is identical between runs; report p50 and p99, never a mean, because a mean hides exactly the frame that stutters; and state the machine, because a number without one is not reproducible.
Write results into docs/PERFORMANCE.md as a table: operation, n, p50, p99, budget, verdict.
Keep the file honest — if something regressed, the regression goes in the table too.
Your final message: the three slowest things in the kit with their numbers, what you changed and what it bought, and anything you measured that turned out to be fine (so nobody re-optimises it later).
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 First seen · 39 lines · 39 tokens per session scan A 3d376c7d34cb
lattice-perf is an agent published in the GitHub repository plausibleventures/lattice (36 stars, last pushed 13d ago), licensed MIT. It adds 39 tokens to every session and 541 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-30.
Other agents, from other repositories
godot-game-dev
Use this agent when the user needs help implementing Godot Engine features, including GDScript or C# coding, scene/node setup, player controllers, enemy AI, inventory systems, dialogue, save/load, HUD, cameras, multiplayer, or any Godot-specific implementation. Examples: Context: User needs to implement enemy AI.…
d3-expert
Expert in D3.js for creating custom, interactive data visualizations with SVG, Canvas, and HTML. Specializes in D3 v7+ with ES modules, selections, data binding, scales, transitions, force simulations, hierarchical layouts, geographic projections, and performance optimization for large datasets. Use for any data…
console-compliance-reviewer
Reviews console/platform compliance, certification risk, and release checklist coverage.
network-programmer
Implements authority, replication, synchronization, and networked gameplay safety.
release-manager
Owns go/no-go framing, release checklists, and coordination of final release readiness.
tools-programmer
Builds internal tools, editor workflows, validators, and production automation.