th08 AGENTS.md

th08 AGENTS.md is an instructions file for Codex, OpenCode from N0zoM1z0/th08. It costs 1,225 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.

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/n0zom1z0/th08/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,225 This file is loaded in full into every session.
When invoked 1,225 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.1 $0.01225 $0.01225
Opus 5 $0.00613 $0.00613
Sonnet 5 $0.00245 $0.00245
Haiku 4.5 $0.00122 $0.00122

Measured 6d ago against content hash b4d7c23673bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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 · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 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.

Analysis database safety

IDA MCP is attached to whichever file is open in the GUI and has no reliable program selector. Treat all TH08 IDA queries as blocked until the GUI is switched to TH08 and the database is attested under docs/IDA_MCP.md. The canonical SHA-256 applies to resources/th08.exe; an IDB or its loader metadata can report a different input/container hash. That difference is not itself evidence of a different mapped image. In that case, verify the canonical file first, then compare IDA bytes at .text start, entry point, the function being edited, and at least two separated .text locations against resources/th08.exe. Only byte-for-byte agreement plus matching image base/entry/.text extent permits IDA semantic evidence. Exact-match claims remain reproducible comparisons against the canonical file only.

Read the full file on GitHub · 97 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. 6d 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 (158 stars, last pushed 3d ago), licensed MIT. It adds 1,225 tokens to every session, about $0.0061 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