agentleFS
GeoloeG-IsTGeoloeG-IsT/agents-reverse-engineer/scripts/AGENTS.md

agents-reverse-engineer / scripts

AGENTS.md20 starsChanged 10 months agoMITView on GitHub

Shell scripts, VHS demo recorders, and build tooling for project maintenance, CI workflows, and terminal demonstration assets. Demo Recording - README.md — Documents VHS-based terminal demo recording workflow: prerequisites (VHS, ffmpeg, ttyd), setup steps (fake-npx.sh symlink, PATH export), output formats (GIF, YT Shorts vertical video), adding new demos - demo-install.tape — VHS cassette script for assets/demo-install.gif: 1200×400px, 30fps Catppuccin Mocha theme, 22s workflow (PATH override, npx prompt simulation, preset selection, installation animation) - fake-npx.sh — Simulates npx "Ok to proceed?"…

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run analyze-sum-ratios.sh to validate .sum compression (target: <25%)

    line 34
  2. Very specific:

    Run analyze-agents-compression.sh to measure AGENTS.md aggregation efficiency

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
<!-- Generated by agents-reverse-engineer v1.2.8 -->

scripts

Shell scripts, VHS demo recorders, and build tooling for project maintenance, CI workflows, and terminal demonstration assets.

Contents

Demo Recording

  • README.md — Documents VHS-based terminal demo recording workflow: prerequisites (VHS, ffmpeg, ttyd), setup steps (fake-npx.sh symlink, PATH export), output formats (GIF, YT Shorts vertical video), adding new demos
  • demo-install.tape — VHS cassette script for assets/demo-install.gif: 1200×400px, 30fps Catppuccin Mocha theme, 22s workflow (PATH override, npx prompt simulation, preset selection, installation animation)
  • fake-npx.sh — Simulates npx "Ok to proceed?" prompt for VHS recordings, execs /home/pascal/wks/agents-reverse-engineer/dist/cli/index.js after user confirmation

Build & Maintenance

  • build-hooks.js — Copies .js/.mjs hook files from hooks/ to hooks/dist/ (pruning stale outputs) for npm packaging, invoked via prepublishOnly lifecycle
  • generate-circle-frames.js — Generates 36 ASCII art frames (frame_1.txt–frame_36.txt) of rotating hollow circle with orbiting highlight using Gaussian falloff (spread=0.8), exports GOLDEN_CIRCLE_FRAMES, FRAME_WIDTH (16), FRAME_HEIGHT (6) to src/installer/frames/index.ts

Analysis

  • analyze-agents-compression.sh — Compares AGENTS.md size to combined .sum and child AGENTS.md sizes, reports per-directory ratios, mean/median/min/max statistics, compression verdict (EXCELLENT <50%, GOOD <70%, ACCEPTABLE <90%, MINIMAL ≥90%)
  • analyze-sum-ratios.sh — Calculates .sum to source file size ratios, reports first 10 files plus outliers (>50% or <10%), summary statistics, pass/fail against 25% target threshold

Workflow Integration

Demo Recording Pipeline

  1. npm run build compiles project
  2. mkdir -p /tmp/are-demo-bin && ln -sf $(pwd)/scripts/fake-npx.sh /tmp/are-demo-bin/npx routes npx calls
  3. export PATH="$HOME/.local/bin:$PATH" enables VHS/ffmpeg/ttyd
  4. vhs scripts/demo-install.tape generates assets/demo-install.gif

Build Hooks npm run prepublishOnly → build-hooks.js → hooks/dist/ populated for package distribution

Quality Checks

  • Run analyze-sum-ratios.sh to validate .sum compression (target: <25%)
  • Run analyze-agents-compression.sh to measure AGENTS.md aggregation efficiency

Behavioral Contracts

VHS Demo Configuration

  • Output path pattern: assets/demo-<name>.gif
  • Install demo dimensions: Set Width 1200, Set Height 400, Set Framerate 30
  • YT Shorts vertical: Set Width 1080, Set Height 1920, Set FontSize 22, Set Framerate 30
  • Theme: Catppuccin Mocha, 16pt font, 20px padding
  • Timing: Sleep 4s (banner animation), Sleep 7s (installation complete), Sleep 500ms (user input simulation)

Compression Thresholds

  • .sum target: 25% of source size (pass), 30% acceptable, status symbols: ✓, ~, ✗
  • AGENTS.md compression: EXCELLENT < 50%, GOOD < 70%, ACCEPTABLE < 90%, MINIMAL ≥ 90%
  • Outlier detection: ratios > 50% or < 10%

Circle Frame Generation

  • Frame count: 36 (10° rotation per frame)
  • Dimensions: WIDTH=16, HEIGHT=6
  • Density chars: ' .·:;oO@' (8 levels, space=darkest, @=brightest)
  • Ring geometry: ringInner=0.70, ringOuter=1.05 (normalized ellipse space)
  • Highlight: Gaussian falloff exp(-(dAngle²)/(2*0.8²)), base brightness 0.15, peak 1.0

File Patterns

  • Exclude from analysis: */node_modules/*, */.git/*, dot-directories (grep -v "^\./\.")
  • Hook source: hooks/*.js and hooks/*.mjs (excluding dist)
  • Frame output: src/installer/frames/frame_{1..36}.txt + index.ts

Stat Command Fallbacks

  • BSD: stat -f%z <file>
  • GNU: stat -c%s <file>
  • Size formatting: numfmt --to=iec --suffix=B (falls back to raw bytes)

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.