rune
AGENTS.md96 starsChanged 7 months agoMITView on GitHub
Instructions for AI coding agents (Codex, Grok Build, Cursor, Copilot, Gemini CLI, Cline, Amp, Kiro …) working on this repo. Claude Code reads CLAUDE.md, which holds the same rules plus the skill-routing table. Rune is a 67-skill engineering mesh for AI coding agents: 5 layers, 248 connections, 46 signals, compiled to 16 platforms. Philosophy: less skills, deeper connections. Node.js ≥ 18, no build step for the source. Install dev deps with npm install. Platform ids: claude codex cursor windsurf antigravity…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 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 repository70 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- adversarySkill
- asset-creatorSkill
- auditSkill
- autopsySkill
- baSkill
- brainstormSkill
- browser-pilotSkill
- completion-gateSkill
- constraint-checkSkill
- context-engineSkill
- context-packSkill
- convergeSkill
- cookSkill
- councilSkill
- dbSkill
- debugSkill
- dependency-doctorSkill
- deploySkill
- designSkill
- diagramSkill
- doc-processorSkill
- docs-seekerSkill
- docsSkill
- fixSkill
- gitSkill
- graftSkill
- hallucination-guardSkill
- improve-architectureSkill
- incidentSkill
- integrity-checkSkill
- journalSkill
- launchSkill
- logic-guardianSkill
- marketingSkill
- mcp-builderSkill
- neural-memorySkill
- onboardSkill
- perfSkill
- planSkill
- preflightSkill
- problem-solverSkill
- quarantineSkill
- rescueSkill
- researchSkill
- retroSkill
- review-intakeSkill
- reviewSkill
- safeguardSkill
- sastSkill
- scaffoldSkill
- scope-guardSkill
- scoutSkill
- sentinel-envSkill
- sentinelSkill
- sequential-thinkingSkill
- session-bridgeSkill
- skill-forgeSkill
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 49
Signals: Every emitted signal needs a listener (or a documented reason).
- Very specific: line 51
Versions are checked: All manifests (package.json, plugin.json, .claude-plugin/*, .cursor-plugin/plugin.json, …
- Very specific: line 57
Write the test first for compiler, script and hook changes (compiler/__tests__/, scripts/__tests__/).
- Very specific: line 59
Keep the Free compiler tier-agnostic.
- Distinctive: line 65
Don't add isolated skills.
- Very specific: line 66
Don't commit compiled output (.cursor/, .grok/, .agents/ …) — it is generated by users' rune init.
- Distinctive: line 67
Don't add telemetry or network calls to hooks.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
AGENTS.md — working on the Rune repository
Instructions for AI coding agents (Codex, Grok Build, Cursor, Copilot, Gemini CLI, Cline, Amp, Kiro …) working on this repo.
Claude Code reads CLAUDE.md, which holds the same rules plus the skill-routing table.
Rune is a 67-skill engineering mesh for AI coding agents: 5 layers, 248 connections, 46 signals, compiled to 16 platforms. Philosophy: less skills, deeper connections.
Setup and commands
Node.js ≥ 18, no build step for the source. Install dev deps with npm install.
| Task | Command |
| Full CI gate (run before every commit) | npm run ci — Biome lint + all tests + rune doctor + version/number sync + skill-index check |
| Tests only | npm test (node --test, ~1,800 tests) |
| Lint / auto-fix | npm run lint / npm run lint:fix |
| Number + version drift check | node scripts/version-sync-check.js |
| Skill description budget | npm run description-check (≤ 500 chars each, ≤ 20,000 total, no ALWAYS/ANY shouting) |
| Validate the Grok plugin + hooks | grok plugin validate . · grok inspect --json (hookLoadErrors must be empty) |
Regenerate skill-index.json | node scripts/build-skill-index.js |
| Compile for a platform | node compiler/bin/rune.js build --platform <id> --output <dir> |
| Validate a compiled output | node compiler/bin/rune.js doctor --output <dir> |
| Validate the Claude plugin | claude plugin validate . |
| Validate the Gemini extension | gemini extensions validate . |
| Bump version everywhere | node scripts/bump-version.js <x.y.z> --title "<wave name>" |
Cut a release (bump + CHANGELOG [Unreleased] → version + ci + commit on release/v<x.y.z>) | npm run release -- <x.y.z> [--title "<wave>"] [--pr] |
Publish after the release PR merged (checks, warning-free dry run, --auth-type=web, tag + GH release) | npm run release:publish (-- --dry-run to stop before publishing) |
Platform ids: claude codex cursor windsurf antigravity opencode openclaw generic aider copilot gemini qoder qwen grok cline agents.
Layout
skills/<name>/SKILL.md core skills — the single source of truth (+ references/, scripts/)
extensions/<pack>/PACK.md L4 free packs
agents/ commands/ hooks/ Claude-format subagents, slash commands, runtime hooks
compiler/ SKILL.md → IR → platform output (adapters/, transforms/, bin/rune.js)
scripts/ CI checks, version tooling, hook helpers (+ __tests__/)
docs/ architecture, guides, GitHub Pages site (docs/index.html)
plugin.json Agent Plugins 1.0 manifest
.claude-plugin/ .cursor-plugin/ .grok-plugin/ .codex-plugin/ gemini-extension.json per-agent manifestsRules that CI enforces
- Skills follow the Agent Skills spec.
name= directory name, lowercase kebab-case, ≤ 64 chars;description≤ 1024 chars;metadatavalues are strings. Usedocs/SKILL-TEMPLATE.md. - Layer rules. L1 calls L2/L3. L2 calls L2/L3. L3 calls nothing except documented L3→L3 coordination.
team(L1) may call other L1s. Every cross-reference (rune:<name>) must resolve —rune doctorfails on dangling refs. - Signals. Every emitted signal needs a listener (or a documented reason);
scripts/validate-signals.jsruns in CI. - Numbers are checked. Skill, signal, connection and platform counts in README, ROADMAP, manifests, docs and this file are compared with the live mesh. If you add a skill or signal, update the counts or CI fails and tells you where.
- Versions are checked. All manifests (
package.json,plugin.json,.claude-plugin/*,.cursor-plugin/plugin.json,.grok-plugin/marketplace.json,gemini-extension.json,.codex-plugin/plugin.json) carry the same version. Usebump-version.js; don't edit versions by hand. - Agent frontmatter in
agents/*.mduses onlyname,description,model(Gemini CLI rejects unknown keys).
Conventions
- Conventional commits:
feat:,fix:,docs:,chore:,refactor:,test:. - Write the test first for compiler, script and hook changes (
compiler/__tests__/,scripts/__tests__/). - New platform adapter: add
compiler/adapters/<id>.js(directory-per-skill runtimes can useagent-skills-base.js), register it inadapters/index.js, add it toadapters.test.jsandscripts-bundling.test.js, and update the platform count. - Keep the Free compiler tier-agnostic. Pro/Business packs live in separate private repos and stack via
--tier. - Hooks are CommonJS (
hooks/**/index.cjs), must exit 0 on any error, and print a JSON envelope (Codex discards anything else). CHANGELOG.mdgets a user-facing entry for every release — write it under## [Unreleased];npm run releaserenames the heading.
Don't
- Don't add isolated skills; every new skill must be wired into an existing orchestrator or hub.
- Don't commit compiled output (
.cursor/,.grok/,.agents/…) — it is generated by users'rune init. - Don't add telemetry or network calls to hooks.
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.

