lsw1-decomp AGENTS.md

lsw1-decomp AGENTS.md is an instructions file for Codex, OpenCode from ellierocks/lsw1-decomp. It costs 1,920 tokens per session, scanned A, original, CC0-1.0.

A set of project instructions for matching the decompiled code of the 2005 GameCube game LEGO Star Wars: The Video Game to its original compiled form. Decompilation means recreating source code from a compiled game.

In plain words
What is it for?
Use it to build the project, look up symbols, suggest or apply function names, prepare coding tasks, mine evidence from donor binaries, and measure matching progress.
Why use it?
It gives coding agents the project’s required compiler, source priorities, tools, and verification process so changes can be checked against the original game code.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/ellierocks/lsw1-decomp/agents-md
Clone the repo
git clone --depth 1 https://github.com/ellierocks/lsw1-decomp

Made for: Codex, OpenCode.

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 lsw1-decomp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ellierocks/lsw1-decomp/agents-md.svg)](https://agentmods.dev/instructions/ellierocks/lsw1-decomp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ellierocks/lsw1-decomp/agents-md"><img src="https://agentmods.dev/badge/instructions/ellierocks/lsw1-decomp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,920 This file is loaded in full into every session.
When invoked 1,920 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01920 $0.01920
Opus 5 $0.00960 $0.00960
Sonnet 5 $0.00384 $0.00384
Haiku 4.5 $0.00192 $0.00192

Measured 4d ago against content hash 07950c1d9b00, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lsw1-decomp AGENTS.md 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 4d 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.

AGENTS.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LSW1 Decomp Agent Guide

Matching decompilation of LEGO Star Wars: The Video Game (2005) for GameCube. Retail target: GL5E4F. Compiler: SN Systems ProDG (GCC), driven by tools/prodg_cc.pynot Metrowerks CodeWarrior. See docs/code_matching_workflow.md. (Donor decomps like CrashWOC are MWCC, so their source patterns transfer but their codegen does not.)

Quick start

bash build.sh                                    # full build
ninja build/GL5E4F/report.json                   # refresh progress

python tools/ls1_match_plan.py nuanim            # see unnamed candidates
python tools/ls1_lookup_symbol.py 0x8001E76C     # cross-reference
python tools/ls1_rename.py --suggest fn_8001E76C # check Mac for name ideas
python tools/ls1_rename.py fn_8001E76C NuAnimKeyLerp  # apply + verify
python tools/ls1_task_pack.py NuAnimKeyLerp      # generate task pack for C work
python tools/matching_progress.py                # show current code matching progress
python tools/binary_mining_pipeline.py           # refresh donor-binary evidence
bash build.sh                                    # final check

Symbol sources (priority order)

  1. CrashWOC decomp (same Nu2 engine) — docs/nu2_engine_reference.md, docs/symbol_donors/crashwoc_nu2_comparison.md
  2. LSW1 Mac Demo (closest lineage) — docs/symbol_donors/mac_lsw1_demo_symbols.tsv
  3. LSW2 Mac (shared Nu2 engine) — docs/symbol_donors/mac_lsw2_symbols.tsv
  4. Struct offset analysis — match struct field access patterns against known Nu2 structs in src/ headers

Tooling

Command What it does
ls1_match_plan.py <module> Shows remaining unnamed functions with struct evidence, Mac hints. Use --show-all or --top N
ls1_lookup_symbol.py <name-or-addr> Cross-references a symbol across GC symbols.txt, Mac TSVs (with demangled signatures), call graph, and neighbor functions
ls1_rename.py <old> <new> Applies a rename and verifies with build. Use --check to preview, --suggest <fn> to search Mac for matching names
ls1_task_pack.py <name-or-addr> Generates tasks/<Function>/ with prompt.md, context.md, asm.s, related_symbols.md, verify.sh for LLM-based decomp. Use --out-dir to set output root. Batch: ls1_task_pack.py nuanim --top 3
matching_progress.py [--report] [--json] Shows objdiff code matching progress only, without symbol naming stats
binary_mining_pipeline.py [stage...] Refreshes donor-binary extraction artifacts; see docs/binary_mining_workflow.md
sdk_symbol_source_import.py <source...> Normalizes CrashWOC/Dolphin map files or symbol dumps into ordered SDK TSVs
mac_anchor_rename_queue.py Uses Mac debug symbol order plus GC named anchors to emit rename candidates
sdk_island_analysis.py Maps likely Dolphin SDK/MSL/runtime islands for known-library matching
sdk_anchor_rename_queue.py Uses local SDK symbol-order sources plus GC named anchors to emit SDK rename candidates

Read the full file on GitHub · 117 lines

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. 4d ago First seen · 117 lines · 1,920 tokens per session scan A 07950c1d9b00

Subscribe to this mod's changes

lsw1-decomp AGENTS.md is an instructions file published in the GitHub repository ellierocks/lsw1-decomp (11 stars, last pushed 2mo ago), licensed CC0-1.0. It adds 1,920 tokens to every session, about $0.0096 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.

Related

Other instructions, from other repositories

GameDesignOS AGENTS.md

Instructions for DY-2026/GameDesignOS, covering gamedesignos agent 入口, 默认接法, agent 执行规则, 什么时候用整个项目 and 每个 skill 单独怎么用.

DY-2026/GameDesignOS · 972 tokens

claudemon CLAUDE.md

Instructions for zamarrowski/claudemon, covering ai agent guidelines, project shape, general guidelines, general rules and guards & defensive code.

zamarrowski/claudemon · 7,681 tokens

unity-code-style-guide AGENTS.md

Instructions for krogh-jacobsen/unity-code-style-guide, covering agents.md — unity 6 c, project setup — edit this block, never do these — they corrupt the project, deprecated in unity 6 and if you read nothing else.

krogh-jacobsen/unity-code-style-guide · 4,528 tokens

codex-game-studio AGENTS.md

AGENTS.md instructions for merlinhu1/codex-game-studio, covering codex game studio template, project goal, engine, commands and context bootstrap.

merlinhu1/codex-game-studio · 945 tokens

game-and-watch-retro-go-sd CLAUDE.md

Claude Code instructions for sylverb/game-and-watch-retro-go-sd, covering claude.md, what this project is, build / flash workflow, architecture and three storage tiers, one elf.

sylverb/game-and-watch-retro-go-sd · 2,946 tokens

nes-php-glfw copilot-instructions.md

Instructions for oliverearl/nes-php-glfw, covering github copilot development guidelines for nes emulator, agent document source of truth, project overview, code style & standards and documentation.

oliverearl/nes-php-glfw · 2,719 tokens