Arnold: Instructions file for Codex

AGENTS.md

Arnold AGENTS.md is an instructions file for Codex, OpenCode from peteromallet/Arnold. It costs 8,043 tokens per session, scanned A, original, Apache-2.0.

A set of AGENTS.md instructions for the Arnold project. It defines how the project handles planning, triage, operating modes, the working directory, and task startup.

In plain words
What is it for?
Use it to guide agent work in the Arnold repository, including planning, triage, mode selection, and working-tree handling.
Why use it?
It gives a coding agent project-specific rules to follow, reducing inconsistent work or incorrect assumptions when starting and managing tasks.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/peteromallet/arnold/agents-md"><img src="https://agentmods.dev/badge/instructions/peteromallet/arnold/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,043 This file is loaded in full into every session.
When invoked 8,043 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.08043 $0.08043
Opus 5.5 $0.03217 $0.03217
Sonnet 5.5 $0.01609 $0.01609
Haiku 4.5 $0.00804 $0.00804

Measured 1mo ago against content hash 46640561a9e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Arnold 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 1mo 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 · 348 lines

How it starts

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

Megaplan

Before you invoke megaplan, run the megaplan-prep skill. It's the front door for every run: it sizes the work (one plan vs. an epic), shapes the brief, and picks the profile (intelligence tier), robustness level, and thinking depth. Do not run <launcher> init without it.

Scope: This skill covers tooling — how to invoke and drive megaplan. For the decisions that come before invocation (scoping, brief, profile, robustness, depth), consult the megaplan-prep skill. If anything here contradicts megaplan-prep on decision-making content, megaplan-prep wins.

Route every step through the Arnold CLI's Megaplan subcommands. Never call agents directly. Before the first CLI call, resolve a working launcher and reuse it for the whole run. Do not assume the removed megaplan entrypoint is on PATH; command presence alone is not enough. Prove the launcher works by successfully running a harmless CLI call with it first. In the instructions below, treat <launcher> as that verified command. Launcher resolution order:

  1. Try python -m arnold_pipelines.megaplan config show.
  2. If that fails, try ./.venv/bin/python -m arnold_pipelines.megaplan config show.
  3. If that fails, try uv run python -m arnold_pipelines.megaplan config show.
  4. If those fail, stop and report that the Arnold Megaplan module launcher is unavailable.
  5. Do not use the removed megaplan module or console entrypoint; the repo-root megaplan.py file is a clean-break guard.

Triage

Decision-making (scoping, profile, robustness, depth, brief structure) lives in the megaplan-prep skill — consult it before running <launcher> init. Always run megaplan, even for tiny work — bare robustness is the floor, never skip the harness. The few seconds of overhead pay back in the captured brief, plan, and outcome record.

Modes

Megaplan has two output modes, picked with --mode at init:

  • --mode code (default): the run produces a code diff. Execute workers emit per-task file changes. Use for features, refactors, bug fixes, migrations — anything whose deliverable is source code.
  • --mode metaplan (alias: --mode doc): the run produces a single document artifact at --output <relative/path> (e.g. docs/design.md). The prep, execute, and review phases use authoring-specific prompts; the execute schema uses sections_written instead of file changes; auditing reasons about section delivery. Use for design docs, architecture specs, research notes, RFCs, proposals, post-mortems, migration plans — anything whose deliverable is prose, not code. This is the "design-first / preplan" workflow; prep is the visible repository-investigation phase inside every run (both modes have it), not a separate mode.

Read the full file on GitHub · 348 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. 1mo ago First seen · 348 lines · 8,043 tokens per session scan A 46640561a9e1

Subscribe to this mod's changes

Arnold AGENTS.md is an instructions file published in the GitHub repository peteromallet/Arnold (98 stars, last pushed yesterday), licensed Apache-2.0. It adds 8,043 tokens to every session, about $0.0322 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-09-04.

Related

Other instructions, from other repositories