regenerator2000 AGENTS.md

regenerator2000 AGENTS.md is an instructions file for Codex, OpenCode from ricardoquesada/regenerator2000. It costs 3,904 tokens per session, scanned A, original, Apache-2.0.

Project instructions for Regenerator 2000, a Rust terminal application that disassembles programs made for 6502-based Commodore computers. They describe its code structure, core data types, user interface, and connection to an MCP server, a standard way for programs to expose tools to an AI agent.

In plain words
What is it for?
Use them when developing the disassembler, its terminal interface, its code export features, or its MCP server.
Why use it?
They give the agent the project context needed to change the right part of the code without guessing how the application is organised.

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/ricardoquesada/regenerator2000/agents-md
Clone the repo
git clone --depth 1 https://github.com/ricardoquesada/regenerator2000

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ricardoquesada/regenerator2000/agents-md.svg)](https://agentmods.dev/instructions/ricardoquesada/regenerator2000/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ricardoquesada/regenerator2000/agents-md"><img src="https://agentmods.dev/badge/instructions/ricardoquesada/regenerator2000/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,904 This file is loaded in full into every session.
When invoked 3,904 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.03904 $0.03904
Opus 5 $0.01952 $0.01952
Sonnet 5 $0.00781 $0.00781
Haiku 4.5 $0.00390 $0.00390

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

Security

Grade A, and why

regenerator2000 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 5d 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 · 225 lines

How it starts

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

Regenerator 2000 - Agent Instructions

Regenerator 2000 is an interactive 6502 disassembler TUI written in Rust, targeting Commodore 8-bit machines. It uses ratatui + crossterm for the terminal UI and exposes an MCP (Model Context Protocol) server for programmatic access.

Architecture & Crate Structure

The project is split into two main crates to separate logic from presentation:

  • regenerator2000-core: Contains all UI-agnostic logic.

    • analyzer.rs: Auto-analysis (walking code, generating labels).
    • assets.rs: System asset loading (labels, comments, exclude lists).
    • commands.rs: The Command enum and UndoStack. Every undoable action is a command.
    • config.rs: System-wide configuration management.
    • core.rs: Central orchestration logic (file loading, command dispatch, integration).
    • cpu.rs: 6502 opcode table and addressing mode logic.
    • disassembler/: 6502 decoding and assembler formatters (64tass, ACME, KickAssembler, ca65).
    • event.rs: Application event types.
    • exporter/: Code for exporting disassembly to ASM or HTML, with roundtrip verification.
    • mcp/: MCP server implementation (stdio and HTTP transports). Contains handler.rs dispatcher and tools/ submodules (analysis_tools, navigation_tools, modification_tools, session_tools, common).
    • navigation.rs: Address navigation logic.
    • packers/: 6502 binary packer strategies (Packer trait, signature detection, pre/post emulation hooks).
    • parser/: File format parsers (.prg, .d64/.d71/.d81, .t64, .crt, .vsf snapshots, .dis65, VICE labels).
    • state/: Persistent application state and project serialization.
    • utils.rs: Shared utility functions.
    • vice/: VICE binary monitor protocol client for live debugging.
    • view_state.rs: View state management.
  • regenerator2000-tui: Contains all terminal UI-related code.

    • ui/: TUI widgets, views (view_disassembly/ submodule breakdown [layout.rs, navigation.rs, mouse.rs, render.rs, mod.rs], HexDump, Sprites, Charset, Bitmap, Blocks, Debugger), and dialogs.
    • ui_state.rs: Transient UI state (cursor, scroll, active dialog).
    • events/: Input handling and event loop.
    • theme.rs: Color scheme and styling logic.
    • theme_file.rs: Theme file parsing and custom theme support.
    • utils.rs: TUI utility functions.

Read the full file on GitHub · 225 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. 5d ago First seen · 225 lines · 3,904 tokens per session scan A 23279eab6f88

Subscribe to this mod's changes

regenerator2000 AGENTS.md is an instructions file published in the GitHub repository ricardoquesada/regenerator2000 (164 stars, last pushed 10d ago), licensed Apache-2.0. It adds 3,904 tokens to every session, about $0.0195 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.