rune: Instructions file for Codex

AGENTS.md

rune AGENTS.md is an instructions file for Codex, OpenCode from Rune-kit/rune. It costs 1,196 tokens per session, scanned A, original, MIT.

Repository instructions for AI coding agents working on the Rune project, including setup steps, commands, file layout, rules, and platform compilation checks.

In plain words
What is it for?
Use them when installing dependencies, running tests or linting, compiling Rune for a platform, validating generated output, or updating the repository.
Why use it?
They give an agent the project-specific rules needed to make compatible changes and run the required checks before committing.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions subagents.

This is Rune-kit/rune's own configuration. It tells Codex and OpenCode how to work on rune itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rune configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Rune-kit/rune. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Rune-kit/rune/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Rune-kit/rune

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 rune AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rune-kit/rune/agents-md/github.svg)](https://agentmods.dev/instructions/rune-kit/rune/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/rune-kit/rune/agents-md"><img src="https://agentmods.dev/badge/instructions/rune-kit/rune/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rune AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rune-kit/rune/agents-md"><img src="https://agentmods.dev/badge/instructions/rune-kit/rune/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,196 This file is loaded in full into every session.
When invoked 1,196 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01196 $0.01196
Opus 5.5 $0.00478 $0.00478
Sonnet 5.5 $0.00239 $0.00239
Haiku 4.5 $0.00120 $0.00120

Measured 3d ago against content hash 845a9bf4566b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rune AGENTS.md scanned grade A with 0 findings 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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>"

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 manifests

Read the full file on GitHub · 66 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. 3d ago Changed · +2 lines · +61 tokens per session 845a9bf4566b
  2. 4d ago First seen · 64 lines · 1,135 tokens per session scan A dafc162f08bb

Subscribe to this mod's changes

rune AGENTS.md is an instructions file published in the GitHub repository Rune-kit/rune (95 stars, last pushed 4d ago), licensed MIT. It adds 1,196 tokens to every session, about $0.0048 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.

Related

rune AGENTS.md compared with instructions from other repositories

rune AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rune AGENTS.mdRune-kit/runeInstructions file954d agoMITA1,196Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,329GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA2,022GitHub Copilot