Ten ranked changes, each with a stage-level saving range (overlapping percentages of different bases — never add them), adoption effort and a named risk, backed by seven primary evidence rows from five independent hosts (no URL backs more than one row). The attainable target is a 50–70% reduction in weighted spend at equal or faster throughput; 3–4× is possible in visually heavy months. All estimates are hypotheses to validate with two weeks of telemetry, not vendor benchmarks.
Bubble size = top of the stage-level saving range; vertical line = the low–high range. Percentages apply to different, overlapping bases (total spend, coding spend, model cost…) — they must not be added. Colour marks the base each saving applies to.
Visual work dominates current waste: the top-ranked change alone is worth 25–40% of total spend in the visual-heavy phase, built on Unity's known-good image comparison.
docs.unity3d.comThree of the ten changes need only low adoption effort — model cascade, artifact handoffs, budgets+telemetry — yet together address 30–65% of weighted model cost and handoff spend (overlapping, not additive).
anthropic.comContext discipline is sourced practice, not hypothesis: SWE-agent caps search output at 50 results and asks for a narrower query; the repo context plane applies the same rule to Chimera.
arxiv.orgPrompt caching pays only with an identical stable prefix; the saving on opaque CLI or subscription products may be negligible, so measure cache-read tokens first.
platform.claude.comRemoved: the background executor as a reasoning/code-fixing role (kept only as a shell job runner). “Chimera Unity” folds into versioned repo docs plus the verifier. 3D Gen Lab stays dormant. Art direction and final critique stay independent but shrink to milestone gates, with the deterministic visual layer between them.
Route by expected cost, not price per call: go strong first when a cheap failure costs two or more long verification cycles, or when historical first-pass yield for the task class is below 60–70%. Escalate after the first substantive failed attempt, not the third.
Intake writes a one-paragraph acceptance contract; classifies risk, module, visual impact.
Router reads AGENTS.md plus exactly one module map and queries the generated index; no chat transcript is inherited.
High-risk only: a strong planner writes one ADR/plan; the human approves only true product/taste decisions.
Break work into 3–5 coherent slices; separate behavior from visual tuning; test-first for Core rules and regressions, deterministic capture for exploratory art.
One coder executes the batch: edit, compile or targeted test, update status.json per slice. No full suite, no semantic image review here.
Host verifier runs impacted tests and fixed-seed captures; failures return compact signatures; small vision only on changed regions with the fixed rubric.
Batch green: full EditMode suite once on the exact candidate SHA, one contact sheet, result cached under the full verification identity.
Reviewer sees only diff, contract/serialized changes, test summaries, risks. Human gets a decision card and playtest link; merge only with human OK.
Close by updating module docs/indexes in the same change when boundaries, commands, tests or invariants changed.
Per run, record identity (task, slice, module, SHAs, model, effort, schema version), cost (input / cached-input / output tokens, quota units, vision calls, images), work (wall/queue/model/tool time, tool calls by type, files read, time-to-first-useful-edit), verification (compile and test durations, reruns, cache hit/miss, diff status, flaky failures), outcome (first-pass accepted, rework, rollback, human intervention) and a failure taxonomy. The primary denominator is accepted slices without human code repair, not lines of code. Initial budgets: small task ≤15K input / 15 tool calls; medium ≤40K / 30; large = a separate ≤20K strong design pass plus ≤60K execution. Alerts fire on >20K input before first edit, a second identical error signature, >30 calls without a tested diff, any executor code edit, more than two visual-model cycles, or a repeated full suite on the same SHA. Validate with a two-week A/B on matched task classes: baseline one week, then adopt changes 2, 4, 7 and telemetry, then add context maps and visual gates.
These sources establish the mechanisms (focused subagents with condensed summaries, stable cache prefixes, short instruction files, bounded search output, known-good image comparison). The saving percentages are project-specific hypotheses to measure, not claims from these pages.
Use the Graphics Test Framework package to create automated tests for rendering outputs - tests that render an image and compare it to a 'known good' reference image.
The framework provides an ImageAssert.AreEqual() assertion method that checks two images for equality (with an overload that automatically captures camera output), and it can automatically generate test cases based on the scenes in the project and manage reference images for them.
Caveat Actual/Diff images cannot be retrieved from test results when running in-player tests from the Unity Test Runner interactively; the commandline must be used instead. Additionally, on Android and WebGL platforms a different test setup pattern using asynchronous reference image loading is required.
docs.unity3d.comCap search tool output: have search commands return at most 50 results per query, and when a search produces more than 50 results, withhold the results and instead prompt the agent to write a more specific query.
Language models are sensitive to long or unexpected tool outputs, which are distracting and consume a large share of the model's limited context window; suppressing verbose search results keeps the agent's context concise and encourages efficient searches.
arxiv.orgStart by using LLM APIs directly instead of frameworks, and only increase complexity when needed — many agentic patterns can be implemented in a few lines of code.
Frameworks create extra layers of abstraction that can obscure the underlying prompts and responses, making them harder to debug, and can make it tempting to add complexity when a simpler setup would suffice.
Caveat If you do use a framework, ensure you understand the underlying code, because incorrect assumptions about what's under the hood are a common source of customer error.
www.anthropic.comUse sub-agent architectures for long-horizon tasks: specialized sub-agents handle focused tasks with clean context windows and explore extensively, but return only a condensed, distilled summary of their work (often 1,000-2,000 tokens) to the coordinating lead agent.
It achieves a clear separation of concerns: the detailed search context remains isolated within sub-agents, while the lead agent focuses on synthesizing and analyzing the results, and this pattern showed a substantial improvement over single-agent systems on complex research tasks.
Caveat The choice between compaction, note-taking, and multi-agent architectures depends on task characteristics; multi-agent architectures are suited to complex research and analysis where parallel exploration pays dividends, while compaction maintains conversational flow and note-taking excels for iterative development with clear milestones.
www.anthropic.comPut your tests in test assemblies (Assembly Definitions that Unity expects to contain tests) to modularize test code separately from application code.
They keep your test code separate from the application code you’ll ship to users, so the test code can be compiled only when needed.
Caveat Test assemblies are not compiled as part of the regular build pipeline, so any code placed in a test assembly is excluded from a standard project build; if production code unexpectedly doesn’t compile into the project build, double-check that it’s not in a test assembly.
docs.unity3d.comKeep custom instruction files for Copilot code review short and focused, limiting any single instruction file to a maximum of about 1,000 lines.
Shorter instruction files are more likely to be fully processed by Copilot, since very long instruction files may result in some instructions being overlooked due to context limits.
Caveat Beyond about 1,000 lines, the quality of responses may deteriorate, and Copilot may not follow every instruction perfectly every time due to non-deterministic behavior.
docs.github.comPlace `cache_control` on the last block whose prefix is identical across the requests you want to share a cache; for a prompt with a static prefix and a varying suffix (timestamps, per-request context, the incoming message), put the breakpoint at the end of the static prefix, not on the varying block.
Cache writes occur only at the marked breakpoint, as a cumulative hash of the prefix ending there; if the breakpoint sits on content that changes every request, the prefix hash never matches and you pay for a fresh cache write on every request with no reads, whereas moving the breakpoint to the last stable block lets every subsequent request read the cached prefix, reducing processing time and costs.
Caveat The lookback can only find entries that earlier requests already wrote, and the lookback window is 20 blocks: if a growing conversation pushes your breakpoint 20 or more blocks past the last cache write, the lookback window misses it, so you must add a second breakpoint closer to that position from the start.
platform.claude.com| # | Change | Expected saving | Of what (base) | Adoption | Main risk | Source |
|---|---|---|---|---|---|---|
| 1 | Style contract + deterministic visual regression | 25–40% | total spend in visual-heavy phase (50–75% of visual-review spend) | medium | Pixel diffs miss style issues, noisy across GPU/driver; keep per-platform baselines and human style gates | docs.unity3d.com |
| 2 | Remove duplicate cognition (one coding owner) | 20–35% | orchestration/coding overhead | medium | Fewer redundant checks; compensate with machine-enforced invariants, not another generalist | www.anthropic.com |
| 3 | Repo context plane (maps + generated indexes + bounded query) | 15–30% | coding-agent input tokens | medium | Stale maps are worse than none; generate from current commit, fail preflight on stale hashes | arxiv.org |
| 4 | Trusted preflighted Unity verifier service | 5–15% | overall + nearly all permission/cache/lock reruns | low–medium | Wrapper maintenance, hidden env differences; version and print the verifier environment | docs.unity3d.com |
| 5 | Plan once, coherent batch, risk-based test matrix | 10–25% | coding-session spend | medium | Batches get too broad; cap touched modules, each slice leaves a tested checkpoint | docs.unity3d.com |
| 6 | Explicit model cascade with early escalation | 15–35% | dollar/quota-weighted model cost | low | Under-routing creates rework; track first-pass yield by task class, update monthly | www.anthropic.com |
| 7 | Artifact-based handoffs (task.yml / status.json / run report) | 10–20% | orchestrator context and handoff spend | low | Overcompression hides evidence; every summary keeps pointers to exact artifacts | www.anthropic.com |
| 8 | Diff-scoped review + exact verification-identity caching | 5–15% | review and verification spend | medium | Wrong impact mapping; default to wider verification on uncertain dependencies | docs.github.com |
| 9 | Stable prefixes + provider prompt caching | 5–15% | eligible API orchestration/research traffic | low–medium | Provider minima, TTLs, pricing; measure cache-read tokens, do not assume | platform.claude.com |
| 10 | Run budgets + telemetry with stop rules | 5–10% | direct, plus indirect: exposes the other nine | low | Optimizing tokens over accepted progress; primary metric is accepted slice without human repair | www.anthropic.com |
Method: advisory analysis of one multi-agent Unity 6 URP project (Chimera). 10 proposed changes with stage-level saving ranges (percent of differing, overlapping bases — not additive), adoption effort and risks, plus 7 primary evidence rows across 5 independent hosts (max one row per URL), compiled for this report. Savings are hypotheses to validate with two weeks of run telemetry; raw per-run telemetry and full source pages are cut for space.