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 skills add dyCuong03/unity-agent-team --skill wave4-world-update-allocator-per-frame-nativegit clone --depth 1 https://github.com/dyCuong03/unity-agent-teamWrote 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/skills/dycuong03/unity-agent-team/wave4-world-update-allocator-per-frame-native)<a href="https://agentmods.dev/skills/dycuong03/unity-agent-team/wave4-world-update-allocator-per-frame-native"><img src="https://agentmods.dev/badge/skills/dycuong03/unity-agent-team/wave4-world-update-allocator-per-frame-native/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/skills/dycuong03/unity-agent-team/wave4-world-update-allocator-per-frame-native"><img src="https://agentmods.dev/badge/skills/dycuong03/unity-agent-team/wave4-world-update-allocator-per-frame-native.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.00047 | $0.00613 |
| Opus 5.5 | $0.00019 | $0.00245 |
| Sonnet 5.5 | $0.00009 | $0.00123 |
| Haiku 4.5 | $0.00005 | $0.00061 |
Grade A, and why
wave4-world-update-allocator-per-frame-native 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 — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.
WorldUpdateAllocator — Per-Frame Native Allocations
Intent
Allocate per-frame temporary NativeArrays and NativeContainers without manual Dispose() using WorldUpdateAllocator (RewindableAllocator), which auto-rewinds at end of each world update.
Use When
- Temporary NativeArrays or NativeContainers needed for the duration of one frame's job pipeline.
- Avoiding manual
Dispose()orAllocator.TempJob4-frame lifetime limits.
Avoid When
- Allocation must persist across frames — use
Allocator.Persistentwith explicitDisposeinOnDestroy. - Allocation size is unknown until a job completes — cannot resize a rewindable allocation.
Senior Pattern
// Preferred form for NativeArray with typed allocator:
var arr = CollectionHelper.CreateNativeArray<float3, RewindableAllocator>(
count, ref state.WorldUpdateAllocator);
// For NativeContainers:
var map = new NativeParallelMultiHashMap<int, int>(count, state.WorldUpdateAllocator);
// No Dispose() needed — auto-rewinds after world update completes
state.Dependency = new ProcessJob { Data = arr }.ScheduleParallel(state.Dependency);
Anti-Patterns
- Caching
state.WorldUpdateAllocatoras a system field — allocator state shifts between frames; always access viastate.WorldUpdateAllocatorinOnUpdate. - Using
world.UpdateAllocator.ToAllocatorforCollectionHelper.CreateNativeArray<T, RewindableAllocator>— type mismatch; useref world.UpdateAllocator. - Using
Allocator.TempJobfor large per-frame arrays — must Dispose within 4 frames; easy to forget, causes safety errors. - Holding a reference to a
WorldUpdateAllocatorallocation acrossOnUpdateboundary — rewind happened, array is invalid memory.
Runtime Risks
- Cross-frame access to a
WorldUpdateAllocatorallocation is undefined behavior — appears valid in dev builds (memory not zeroed) but is logically garbage.
Performance Notes
- Bump allocation: O(1) regardless of size — fastest available Unity allocator.
- No GC pressure; no Dispose overhead.
- Use as the default for all per-OnUpdate temporary data.
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 First seen · 57 lines · 47 tokens per session scan A 5dea6b6f915f
wave4-world-update-allocator-per-frame-native is a skill published in the GitHub repository dyCuong03/unity-agent-team (8 stars, last pushed 4mo ago), licensed MIT. It adds 47 tokens to every session and 613 once invoked, about $0.0002 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-10-02.
wave4-world-update-allocator-per-frame-native compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| wave4-world-update-allocator-per-frame-nativedyCuong03/unity-agent-team | Skill | 8 | 4mo ago | MIT | A | 47 | Claude Code |
| profilingkevinpbuckley/VibeUE | Skill | 847 | yesterday | MIT | A | 81 | Claude Code, Codex |
| game-performance-budgetmakifbaysal/tasktrooper | Skill | 123 | today | Apache-2.0 | A | 53 | Claude Code, Codex |
| unity-performance-and-gcmakifbaysal/tasktrooper | Skill | 123 | today | Apache-2.0 | A | 76 | Claude Code, Codex |
| web-game-performance-and-testingmakifbaysal/tasktrooper | Skill | 123 | today | Apache-2.0 | A | 87 | Claude Code, Codex |
| tune-performanceSummerEngine/summer-engine-agent | Skill | 59 | 2mo ago | MIT | A | 94 | Claude Code |
| technical-artistbuiphucminhtam/forgewright | Skill | 49 | 3d ago | none | A | 54 | Claude Code |