agents-reverse-engineer / scripts
AGENTS.md21 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?"…
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,736 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 repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- hooks/AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/workflows/CLAUDE.mdCLAUDE.md
- hooks/CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- src/CLAUDE.mdCLAUDE.md
- bumpSkill
- are-cleanSkill
- are-dashboardSkill
- are-discoverSkill
- are-generateSkill
- are-helpSkill
- are-implementSkill
- are-planSkill
- are-rebuildSkill
- are-specifySkill
- are-updateSkill
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
- Very specific: line 34
Run analyze-sum-ratios.sh to validate .sum compression (target: <25%)
- Very specific: line 35
Run analyze-agents-compression.sh to measure AGENTS.md aggregation efficiency
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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.
Files
<!-- 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.jsafter user confirmation
Build & Maintenance
- build-hooks.js — Copies
.js/.mjshook files fromhooks/tohooks/dist/(pruning stale outputs) for npm packaging, invoked viaprepublishOnlylifecycle - 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), exportsGOLDEN_CIRCLE_FRAMES,FRAME_WIDTH(16),FRAME_HEIGHT(6) tosrc/installer/frames/index.ts
Analysis
- analyze-agents-compression.sh — Compares AGENTS.md size to combined
.sumand 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
.sumto 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
npm run buildcompiles projectmkdir -p /tmp/are-demo-bin && ln -sf $(pwd)/scripts/fake-npx.sh /tmp/are-demo-bin/npxroutes npx callsexport PATH="$HOME/.local/bin:$PATH"enables VHS/ffmpeg/ttydvhs scripts/demo-install.tapegeneratesassets/demo-install.gif
Build Hooks
npm run prepublishOnly → build-hooks.js → hooks/dist/ populated for package distribution
Quality Checks
- Run
analyze-sum-ratios.shto validate.sumcompression (target: <25%) - Run
analyze-agents-compression.shto 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
.sumtarget: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 brightness0.15, peak1.0
File Patterns
- Exclude from analysis:
*/node_modules/*,*/.git/*, dot-directories (grep -v "^\./\.") - Hook source:
hooks/*.jsandhooks/*.mjs(excludingdist) - 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)
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
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.

