agents-reverse-engineer AGENTS.md

agents-reverse-engineer AGENTS.md is an instructions file for Codex, OpenCode from GeoloeG-IsT/agents-reverse-engineer. It costs 4,955 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 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/geoloeg-ist/agents-reverse-engineer/agents-md
Clone the repo
git clone --depth 1 https://github.com/GeoloeG-IsT/agents-reverse-engineer

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 agents-reverse-engineer AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/geoloeg-ist/agents-reverse-engineer/agents-md.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,955 This file is loaded in full into every session.
When invoked 4,955 The same file — it is already loaded in full.
Security scan A 1 finding. 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.04955 $0.04955
Opus 5 $0.02478 $0.02478
Sonnet 5 $0.00991 $0.00991
Haiku 4.5 $0.00496 $0.00496

Measured 4d ago against content hash a091a4c53980, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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.aredist/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.aredist/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. 4d 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 (20 stars, last pushed 27d ago), licensed MIT. It adds 4,955 tokens to every session, about $0.0248 per session on Opus 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.