agentleFS
morlutomorluto/rea/AGENTS.md

rea

AGENTS.md2.9k starsChanged 3 months agoMITView on GitHub

REA exposes reverse-engineering tools through a CLI and MCP server. Hopper and the bring-your-own Ghidra adapter are operation-capable deep binary-analysis providers. Ghidra is supported on Linux x64 and macOS x64/arm64 with matching native decompiler tools, and has an experimental Windows x64 P0 boundary for approved native x86-64 PE applications; it supplies admitted read-only inventory and function-analysis operations but no GUI or mutation authority. Keep provider-specific code out of the domain and application layers. Installers must not install or upgrade Homebrew,…

Trending

Steady talk.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 4 mentionsSep 2026: 2 mentionsOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the morluto/rea repository that our weekly crawl found: only 10 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about morluto/rea

The biggest 5 of 10 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 10

Talked about on GitHub, Hacker News and Bluesky (10 times).

On GitHub · 8

3 more on GitHub

On Hacker News · 1

On Bluesky · 1

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep each verification lane's prerequisites limited to the claim it checks.

    line 37
  2. Distinctive:

    Start from the analyst question and desired result, not a provider API.

    line 51
  3. Distinctive:

    Prefer reusable, composable primitives: inspect one explicit object or relationship and return evidence that can support different analyst …

    line 53
  4. Distinctive:

    Use inspect/search tools for facts about a target or candidate set.

    line 58
  5. Distinctive:

    Add a workflow when observed agent use shows a repeated sequence that REA can compose without losing analyst control.

    line 59
  6. Distinctive:

    Use observe/capture/replay only when runtime activity is required, and declare authority and lifecycle effects in the contract.

    line 60
  7. Distinctive:

    Keep caller-facing names and results provider-neutral.

    line 62
  8. Distinctive:

    Keep results complete by default.

    line 63
  9. Distinctive:

    Keep tool catalogs complete and self-describing.

    line 73

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Repository Guidelines

Product Direction

REA exposes reverse-engineering tools through a CLI and MCP server. Hopper and the bring-your-own Ghidra adapter are operation-capable deep binary-analysis providers. Ghidra is supported on Linux x64 and macOS x64/arm64 with matching native decompiler tools, and has an experimental Windows x64 P0 boundary for approved native x86-64 PE applications; it supplies admitted read-only inventory and function-analysis operations but no GUI or mutation authority. Keep provider-specific code out of the domain and application layers.

Prioritize:

  • tool results that distinguish observations, inferences, and unknowns;
  • equivalent behavior through the CLI and MCP;
  • additive, idempotent configuration with backups;
  • end-to-end tests for packaged artifacts and real Hopper/Ghidra claims.

Installers must not install or upgrade Homebrew, Node.js, npm, Java, Ghidra, or other unrelated software. Ghidra is bring-your-own. rea setup must print its planned changes and require approval before writing files or installing Hopper.

REA is a local-only tool; do not sanitize actionable local diagnostics such as artifact paths, digests, mismatch locations, or analysis metadata, while continuing to redact genuine secrets such as credentials and authorization headers.

Project Structure & Module Organization

REA is a layered ESM TypeScript application. Dependencies flow inward from pure domain logic through contracts, providers, application workflows, and CLI/MCP adapters. See docs/architecture.mermaid for the component map.

  • src/domain/ owns pure provider-neutral semantics; src/contracts/ owns caller-visible schemas and the canonical tool inventory.
  • src/hopper/, src/ghidra/, src/browser/, src/replay/, src/native/, src/artifacts/, and src/dotnet/ own provider-specific boundaries. Keep provider protocols out of domain and application code.
  • src/application/ composes shared CLI/MCP workflows; src/server/ translates MCP requests; src/cli.ts and src/main.ts are the CLI and MCP entry points.
  • src/process/ owns shared process lifecycle primitives, not provider wire protocols. bridge/ contains provider-side adapters.
  • tests/ contains unit, composition, boundary, acceptance, and conformance tests. scripts/verify-* contains real-toolchain checks.
  • docs/product-catalog.json is generated. Update its source contracts and regenerate it; do not edit it directly.

Build, Test, and Development Commands

  • npm ci: install the locked dependencies.
  • npm run build:cached: build the CLI and MCP server.
  • npm run test:local: run focused tests for changed code.
  • npm run check:fast: run cached typecheck and lint checks.
  • npm run check:pr: run the deterministic PR gate and generated-document checks.
  • For provider-dependent changes, see docs/testing.md and run the matching real-provider verification.
  • Keep each verification lane's prerequisites limited to the claim it checks. Use host-native fixtures for host/provider acceptance; put optional cross-target formats and their external toolchains in a separate lane. Preflight required commands and report the missing dependency and lane clearly.

See docs/testing.md for test scopes and verification lanes and CONTRIBUTING.md for contribution checks. Pre-commit formats and lints staged source; pre-push runs npm run check:fast.

Configuration & Environment Variables

Configuration is parsed and validated by src/config.ts and src/config/. Keep user-facing setup and provider configuration in README.md and the relevant guide under docs/; do not maintain a second environment-variable catalogue here.

Coding Style & Naming Conventions

Use ESM TypeScript, two-space indentation, and Prettier defaults. Keep compiler strictness intact (strict, exactOptionalPropertyTypes, noUncheckedIndexedAccess, verbatimModuleSyntax). Use camelCase for values/functions, PascalCase for classes/types, and UPPER_SNAKE_CASE for constants. Parse unknown values at every MCP, environment, and subprocess boundary. Avoid any, unchecked casts, non-null assertions, import-time I/O, and floating promises. Exported APIs require concise JSDoc. Model expected failures with the tagged error algebra and Result, not broad exception wrappers.

Designing MCP Tools

Start from the analyst question and desired result, not a provider API. Before adding a tool, inspect the existing contract and its nearest alternative.

  • Prefer reusable, composable primitives: inspect one explicit object or relationship and return evidence that can support different analyst questions. Compose primitives into a workflow only for a recurring outcome that benefits from joining evidence sources; keep one-application or business-domain interpretations out of general tool contracts.
  • Use inspect/search tools for facts about a target or candidate set; use trace tools for relationships; use compare tools for explicitly paired inputs.
  • Add a workflow when observed agent use shows a repeated sequence that REA can compose without losing analyst control. Return useful results inline so callers can choose their next action.
  • Use observe/capture/replay only when runtime activity is required, and declare authority and lifecycle effects in the contract.
  • Extend an existing tool when intent and result contract are unchanged. Add a tool for a distinct analyst outcome or materially different authority.
  • Keep caller-facing names and results provider-neutral. Put engine-specific behavior in provider adapters and report each provider's exact coverage.
  • Keep results complete by default. Add a limit only when it follows from a real format, protocol, authority, or resource-safety constraint; explain truncation and unsupported facets. Keep observed, derived, inferred, and unknown results distinct.
  • Include artifact identity, source locations, Evidence references, actionable errors, and relevant limitations when they affect conclusions. Return the evidence needed for the next analysis inline rather than requiring a resource or identifier lookup.
  • Implement shared application workflows behind CLI and MCP adapters. Update canonical contracts and generated catalog together.

See docs/tool-design.md for the design checklist. When usability or tool selection changes, evaluate representative CLI/MCP tasks as well as schema and transport behavior.

Testing Guidelines

Name tests *.test.ts. Use Vitest and production seams (tests/fixtures/) rather than module mocks. Domain tests assert pure behavior; adapter tests use fake launcher/socket seams; MCP tests connect with the client SDK version pinned in package.json. Preserve the canonical tool inventory defined by TOOL_CONTRACTS and verified through CATALOG_IDENTITY and generated product metadata. Cover malformed input, cancellation, lifecycle cleanup, and actual format, protocol, and permission boundaries. Do not add tests that merely freeze arbitrary caps or prescribed call sequences. Real Hopper, Ghidra, browser, JavaScript replay, managed conformance, and any real managed-tool claims cannot be replaced by mocks; use the corresponding verify:* command.

Keep tool catalogs complete and self-describing; prefer capability- and session-scoped availability over schema truncation. Serialized bytes alone do not measure agent usability or model context cost.

Commit & Pull Request Guidelines

Use Conventional Commit subjects because Release Please derives versions and changelogs from them. Examples: feat: add historical source import, fix(process): stop timers after exit, and docs: update architecture. Use ! or a BREAKING CHANGE: footer for breaking changes. Pull request titles must follow the same format because squash merges use the title as the release commit. Pull requests should describe contract or behavior changes, list verification commands, link issues, and include sanitized MCP examples when schemas change. State whether real Hopper/Ghidra verification was performed. Never commit binaries, Hopper or Ghidra project documents, credentials, dist/, node_modules/, or local planning artifacts (e.g. .codex/).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.