axe: Instructions file for Codex

AGENTS.md

axe AGENTS.md is an instructions file for Codex, OpenCode from jrswab/axe. It costs 3,226 tokens per session, scanned A, original, Apache-2.0.

Repository guidance for Axe, a lightweight command-line tool that runs focused AI agents defined in TOML configuration files. It explains how agents receive limited context and how Axe can be connected to tools such as cron, Git hooks, pipes, and file watchers.

In plain words
What is it for?
Use it when adding or changing agent definitions, command-line behavior, context handling, or integrations with external triggers in Axe.
Why use it?
It clarifies Axe's boundaries and design rules, including that it runs agents but does not schedule or continuously watch for events. This helps keep changes small, composable, and compatible with normal command-line workflows.

Instructions file for CodexOpenCode

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

This is jrswab/axe's own configuration. It tells Codex and OpenCode how to work on axe 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 axe configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/user/.config/axe/skills/my-skill/scripts/fetch.sh.

Reuse

Borrowing it

Nothing to install: this file belongs to jrswab/axe. 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/jrswab/axe/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/jrswab/axe

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jrswab/axe/agents-md/github.svg)](https://agentmods.dev/instructions/jrswab/axe/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/jrswab/axe/agents-md"><img src="https://agentmods.dev/badge/instructions/jrswab/axe/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 axe AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/jrswab/axe/agents-md"><img src="https://agentmods.dev/badge/instructions/jrswab/axe/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,226 This file is loaded in full into every session.
When invoked 3,226 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.03226 $0.03226
Opus 5.5 $0.01290 $0.01290
Sonnet 5.5 $0.00645 $0.00645
Haiku 4.5 $0.00323 $0.00323

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

Security

Grade A, and why

axe 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 15d 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 · 228 lines

How it starts

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

Axe — AGENTS.md

What This Is

A lightweight CLI for running single-purpose LLM agents. Think make for AI — define agents in TOML, give them focused context via SKILL.md files, and trigger them from anywhere (cron, git hooks, pipes, file watchers).

Design Philosophy

  • Small context windows by design. Each agent gets only what it needs. Sub-agents return results, not conversations. This is the core value prop — fight context bloat at every level.
  • Unix citizen. Stdout is clean and pipeable. Debug goes to stderr. Exit codes are meaningful. Stdin is always accepted. Axe composes with existing tools, it doesn't replace them.
  • Executor, not scheduler. Axe runs agents. Triggering is the user's job (cron, entr, git hooks, webhooks). No built-in daemon, no watch mode, no event loop.
  • Single binary, zero runtime. Go. No interpreters, no node_modules, no Docker required. go build and ship.
  • Config over code. Agent definitions are TOML, not Go. Users should never touch source to define or modify agents.

Non-Obvious Constraints

  • SKILL.md is a community format — not invented here. Treat it as an external standard. Don't add axe-specific extensions to the format itself; put axe-specific config in TOML.
  • models.dev format for model strings — always provider/model-name. Don't invent a custom format.
  • XDG Base Directory spec — config, data, and cache go where XDG says. No dotfiles in $HOME.
  • Sub-agents are opaque to parents. A parent never sees a sub-agent's internal turns, tool calls, or files. Only the final text result crosses the boundary. This is intentional — don't leak internals upward.
  • Depth limits are safety rails, not features. Default 3, hard max 5. If someone needs more depth, the design is wrong, not the limit.

What Good Contributions Look Like

  • Tests for every new package (table-driven, no mocks when avoidable — use the real thing or testutil helpers)
  • Errors that help the user fix the problem, not just describe it
  • No global state — pass dependencies explicitly
  • Flags override TOML overrides defaults. Resolution order matters everywhere.
  • When in doubt, print nothing. Axe output MUST be safe to pipe.

Read the full file on GitHub · 228 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. 15d ago Changed · +1 lines · +47 tokens per session a1dccf118a70
  2. 16d ago Changed · +1 lines · +23 tokens per session c8f98e855a48
  3. 1mo ago Changed · +1 lines · +26 tokens per session c890751111ac
  4. 2mo ago First seen · 225 lines · 3,130 tokens per session scan A 69f19a570eca

Subscribe to this mod's changes

axe AGENTS.md is an instructions file published in the GitHub repository jrswab/axe (909 stars, last pushed 15d ago), licensed Apache-2.0. It adds 3,226 tokens to every session, about $0.0129 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-08-30.

Related

axe AGENTS.md compared with instructions from other repositories

axe AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
axe AGENTS.mdjrswab/axeInstructions file90915d agoApache-2.0A3,226Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode