agents-reverse-engineer: Instructions file for Claude Code

AGENTS.md

agents-reverse-engineer AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from GeoloeG-IsT/agents-reverse-engineer. It costs 4,962 tokens per session, scanned A, original, MIT.

Project guidance for a command-line toolkit that creates concise code summaries, hierarchical AGENTS.md documentation, and integrations for several AI coding assistants. It also includes tests for whether the documentation improves planning and implementation quality.

In plain words
What is it for?
Configuring, building, testing, and developing the Node.js and TypeScript toolkit, including its command-line tools, summaries, documentation, hooks, telemetry, and reports.
Why use it?
AI coding assistants can struggle to understand a large or unfamiliar codebase. The toolkit organizes project context and records results so its effect can be evaluated.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SessionStart hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is GeoloeG-IsT/agents-reverse-engineer's own configuration. It tells Claude Code, Codex and OpenCode how to work on agents-reverse-engineer 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 agents-reverse-engineer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to GeoloeG-IsT/agents-reverse-engineer. 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/GeoloeG-IsT/agents-reverse-engineer/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/GeoloeG-IsT/agents-reverse-engineer

Made for: Claude Code, 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 agents-reverse-engineer AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/geoloeg-ist/agents-reverse-engineer/agents-md"><img src="https://agentmods.dev/badge/instructions/geoloeg-ist/agents-reverse-engineer/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,962 This file is loaded in full into every session.
When invoked 4,962 The same file — it is already loaded in full.
Security scan A 1 finding. 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.04962 $0.04962
Opus 5.5 $0.01985 $0.01985
Sonnet 5.5 $0.00992 $0.00992
Haiku 4.5 $0.00496 $0.00496

Measured 1mo ago against content hash dcd19903f3e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agents-reverse-engineer AGENTS.md scanned grade A with 1 finding 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 1mo 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

execSync('npm view agents-reverse-engineer version', {timeout: 10000})
AGENTS.md · 195 lines

How it starts

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

agents-reverse-engineer

npx-installable CLI toolkit for AI coding assistants that generates AI-optimized .sum file summaries, AGENTS.md hierarchical documentation, and runtime integration hooks for Claude Code, OpenCode, Gemini CLI, and Codex, with A/B testing framework for measuring AI planning and implementation quality impact.

Stack

Runtime: Node.js 18+ with TypeScript (ES2022 modules via tsconfig.json)
AI Backends: Claude CLI, OpenAI Codex, Google Gemini, OpenCode (subprocess adapters)
File Discovery: fast-glob with ignore/isbinaryfile filters
Git Operations: simple-git (change detection, worktree isolation)
Schema Validation: zod (config.yaml schema)
Output Formats: YAML frontmatter (.sum files), NDJSON (telemetry traces), HTML (dashboard reports via Chart.js CDN)
Entry Points: bin.agents-reverse-engineer and bin.are → dist/cli/index.js
Core API: exports["./core"] → dist/core/index.js with types at dist/core/index.d.ts (@beta stability)

Contents

Configuration & Licensing

  • CONTRIBUTING.md — Developer workflow: npm install (dependencies), npm run build (tsc → dist/), npm run dev (tsx watch live reload). Project structure: src/cli/ (CLI entry + commands), src/config/ (schema + loading), src/discovery/ (file discovery + plan gen), src/generation/ (AI-driven doc gen), src/orchestration/ (concurrency pool + tracing + process mgmt), src/ai/ (AI service abstraction + subprocess mgmt), src/plan/ (A/B plan comparison), src/implement/ (A/B implementation comparison). Fork-branch-PR contribution workflow. Bug reports require repro steps + environment. Feature requests use enhancement label. MIT licensed.
  • LANGUAGES-MANIFEST.md — Mapping of 24 languages to package manifest files: JavaScript/TypeScript (package.json), Python (requirements.txt, pyproject.toml, setup.py, Pipfile), Go (go.mod), Rust (Cargo.toml) marked supported (✓); Ruby (Gemfile), Java (pom.xml, build.gradle), and 17 others currently unsupported. Used by src/generation/prompts/builder.ts for import map construction.
  • LICENSE — MIT license granting unrestricted use/modification/distribution with copyright notice requirement. AS IS warranty disclaimer. Copyright holder: GeoloeG-IsT (2026).
  • package.json — npm package metadata v1.2.17. Entry points: bin.agents-reverse-engineer/bin.are → dist/cli/index.js, exports["."] → dist/cli/index.js, exports["./core"] → dist/core/index.js with type definitions at dist/core/index.d.ts. Build scripts: build (tsc), build:hooks (scripts/build-hooks.js), prepublishOnly (sequential builds), prepack (removes LICENSE.sum/README.md.sum), dev (tsx watch). Dependencies: fast-glob, ignore, isbinaryfile, jsonc-parser, simple-git, yaml, zod, picocolors. Node >=18.0.0 required.
  • tsconfig.json — TypeScript compiler config: target ES2022, module/moduleResolution NodeNext, outDir dist/, rootDir src/, declaration/declarationMap/sourceMap true, strict true, forceConsistentCasingInFileNames true, isolatedModules true, resolveJsonModule true. Include src/**/*, exclude node_modules/dist.

Read the full file on GitHub · 195 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. 1mo ago Changed · +7 tokens per session dcd19903f3e1
  2. 1mo ago First seen · 195 lines · 4,955 tokens per session scan A a091a4c53980

Subscribe to this mod's changes

agents-reverse-engineer AGENTS.md is an instructions file published in the GitHub repository GeoloeG-IsT/agents-reverse-engineer (22 stars, last pushed 1mo ago), licensed MIT. It adds 4,962 tokens to every session, about $0.0198 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). 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

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens