unity-refresh-iterate

unity-refresh-iterate is a cursor rule for Cursor from haolange/InfinityRenderPipeline. It costs 411 tokens per session, scanned A, original, MPL-2.0.

A Unity editor workflow for applying code or shader changes, checking the editor log, and inspecting a captured game frame. Unity is a game development tool.

In plain words
What is it for?
Use it to refresh an open Unity project, review new Editor.log entries, capture the game view, and investigate issues with rendering order, depth, attachments, shaders, or frame presentation.
Why use it?
It catches rendering and editor problems that may not appear as console errors. It also helps identify the first underlying defect instead of hiding symptoms.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to refresh an open Unity project, review new Editor.log entries, capture the game view, and investigate issues with rendering order, depth, attachments, shaders, or frame presentation.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/haolange/infinityrenderpipeline/unity-refresh-iterate
Install

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.

Clone the repo
git clone --depth 1 https://github.com/haolange/InfinityRenderPipeline

Made for: Cursor.

Wrote 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.

agentmods badge for unity-refresh-iterate

README.md
[![agentmods](https://agentmods.dev/badge/rules/haolange/infinityrenderpipeline/unity-refresh-iterate/github.svg)](https://agentmods.dev/rules/haolange/infinityrenderpipeline/unity-refresh-iterate)
Your own site
<a href="https://agentmods.dev/rules/haolange/infinityrenderpipeline/unity-refresh-iterate"><img src="https://agentmods.dev/badge/rules/haolange/infinityrenderpipeline/unity-refresh-iterate/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.

agentmods 80×15 button for unity-refresh-iterate

Your own site · 80×15
<a href="https://agentmods.dev/rules/haolange/infinityrenderpipeline/unity-refresh-iterate"><img src="https://agentmods.dev/badge/rules/haolange/infinityrenderpipeline/unity-refresh-iterate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 411 This file is loaded in full into every session.
When invoked 411 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00411 $0.00411
Opus 5.5 $0.00164 $0.00164
Sonnet 5.5 $0.00082 $0.00082
Haiku 4.5 $0.00041 $0.00041

Measured 2d ago against content hash 0918800ce4a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unity-refresh-iterate 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 2d 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.

.cursor/rules/unity-refresh-iterate.mdc · 18 lines

What it actually says

Unity Refresh + Log + Frame Iterate

After any InfinityRP code/shader change, do not wait for the user to compile.

  1. Confirm the explicitly owned Editor and project path. Never connect to or operate another session. When the source is occupied, use the authorized independent task mirror and Library.
  2. Refresh that explicit project with Unity CLI or Tools/RefreshUnityEditor.sh / .ps1, which invoke public AssetDatabase.Refresh. UI inspection uses Computer Use on the verified owned window.
  3. Wait for compilation/domain reload to finish and verify the candidate DLL loaded. Read new diagnostics from that Editor's actual log (Application.consoleLogPath); stable logs alone are not acceptance.
  4. Diagnose only new log after the mark. Fix the first real owner/order/lifetime/shader-contract defect.
  5. Capture the frame with Tools/CaptureUnityWindow.sh (macOS) or Tools/CaptureUnityWindow.ps1 (Windows) and inspect the image. Console-clean is not render-correct: a depth-clear regression once held the Console at 0 errors while the Game view rendered nothing. Always capture after touching clears, depth, attachments, pass order, or present.
  6. Forbidden as a "fix": if (shader == null) return in execute, dummy textures, disabling a designed path to silence Console, fake history, or count = 0 dispatches.
  7. Unimplemented features must not be recorded. Required producers (Lighting, TAA when that path is active, Display) must fail at record/setup if their contract is broken.
  8. Repeat refresh → log → frame → first-principles fix until the new log window has no InfinityRP flood and the captured frame is correct. Keep TODO(UNVERIFIED) on any result that was checked by log only.
Changes

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.

  1. 2d ago Changed · +17 tokens per session 0918800ce4a8
  2. 1mo ago Changed · +14 tokens per session ba6e790533e5
  3. 1mo ago First seen · 18 lines · 380 tokens per session scan A 029f49363faf

Subscribe to this mod's changes

unity-refresh-iterate is a cursor rule published in the GitHub repository haolange/InfinityRenderPipeline (273 stars, last pushed yesterday), licensed MPL-2.0. It adds 411 tokens to every session, about $0.0016 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.