th08: Instructions file for Codex

AGENTS.md

th08 AGENTS.md is an instructions file for Codex, OpenCode from N0zoM1z0/th08. It costs 1,296 tokens per session, scanned A, original, MIT.

Repository rules for rebuilding one exact Japanese Touhou 8 version 1.00d executable from source. They define which binary to use, how to gather evidence, and how to compare rebuilt code with the original.

In plain words
What is it for?
Use them when studying the target executable, matching addresses and symbols, changing reconstruction code, checking function boundaries, or comparing compiled output.
Why use it?
They reduce the risk of analyzing the wrong program or accepting guesses as facts. They also require small, checked changes so the reconstruction stays faithful.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents.

This is N0zoM1z0/th08's own configuration. It tells Codex and OpenCode how to work on th08 itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything th08 configures →

Reuse

Borrowing it

Nothing to install: this file belongs to N0zoM1z0/th08. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/N0zoM1z0/th08/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/N0zoM1z0/th08

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 th08 AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/n0zom1z0/th08/agents-md/github.svg)](https://agentmods.dev/instructions/n0zom1z0/th08/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/n0zom1z0/th08/agents-md"><img src="https://agentmods.dev/badge/instructions/n0zom1z0/th08/agents-md/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 th08 AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/n0zom1z0/th08/agents-md"><img src="https://agentmods.dev/badge/instructions/n0zom1z0/th08/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,296 This file is loaded in full into every session.
When invoked 1,296 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.01296 $0.01296
Opus 5.5 $0.00518 $0.00518
Sonnet 5.5 $0.00259 $0.00259
Haiku 4.5 $0.00130 $0.00130

Measured yesterday against content hash 640e191e8cab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

th08 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 yesterday.

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 · 101 lines

How it starts

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

TH08 reconstruction agent rules

This repository reconstructs one exact binary: the original Japanese TH08 version 1.00d executable identified below and in reccmp-project.yml. Do not analyze or substitute a localized, patched, trial, or earlier executable.

Before changing reconstruction state

  1. Read docs/ARCHITECTURE.md, docs/RE_WORKFLOW.md, and the relevant source.
  2. Verify resources/th08.exe: SHA-256 330fbdbf58a710829d65277b4f312cfbb38d5448b3df523e79350b879213d924 and size 840704 bytes.
  3. Confirm the address and symbol in config/mapping.csv and the appropriate config/reccmp-*.csv files before editing.
  4. Inspect target instructions with a target-safe backend. Reconcile function boundaries against disassembly; Ghidra/IDA function extents are evidence, not accepted compiler boundaries.
  5. Build and compare the smallest affected source/object before broad edits.

Evidence and status rules

  • Keep target observations, upstream reconstruction claims, adjacent-version inferences, and unknowns distinct.
  • GensokyoClub/th08 is the imported reconstruction baseline. Its complete Git history and original contributor attribution must remain intact.
  • The N0zoM1z0/th07 reconstruction supplies this repository's workflow and structure. TH07 source and TH06 are supporting evidence only: confirm names, ABI, field offsets, side effects, and boundaries against TH08 1.00d.
  • Never mechanically paste decompiler output as source.
  • config/implemented.csv selects upstream implementations; it is not proof of an exact match. Likewise, an entry in config/mapping.csv or config/reccmp-functions.csv is a mapping, not a matching claim.
  • Only a reproducible reccmp/objdiff result against the exact target may support an exact-match claim. Do not invent or manually transcribe progress numbers.
  • Read the code, data and linkage scopes in comparator output before extending an exact claim. Follow docs/EXACT_EVIDENCE.md: declared data failures are failures, uncovered initializers are not passes, and final linkage requires the paired rebuilt PE/map. Never mask a gap or infer a table extent to clear it.

Read the full file on GitHub · 101 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. yesterday Changed · +4 lines · +71 tokens per session 640e191e8cab
  2. 2mo ago First seen · 97 lines · 1,225 tokens per session scan A b4d7c23673bd

Subscribe to this mod's changes

th08 AGENTS.md is an instructions file published in the GitHub repository N0zoM1z0/th08 (55 stars, last pushed yesterday), licensed MIT. It adds 1,296 tokens to every session, about $0.0052 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.

Related

th08 AGENTS.md compared with instructions from other repositories

th08 AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
th08 AGENTS.mdN0zoM1z0/th08Instructions file55yesterdayMITA1,296Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode