rocannon: Instructions file for Codex

AGENTS.md

rocannon AGENTS.md is an instructions file for Codex, OpenCode from msradam/rocannon. It costs 1,936 tokens per session, scanned C, original, MIT.

Repository instructions for Rocannon, an MCP server that exposes installed Ansible modules as typed tools. Ansible is software for automating system and application setup.

In plain words
What is it for?
Use them when developing Rocannon, setting up its uv environment, understanding where module discovery happens, or running the required checks before committing.
Why use it?
They explain the project's architecture, required setup, and quality checks before an agent changes code. This helps keep changes compatible with the repository's strict formatting, type-checking, and test requirements.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/msradam/rocannon/agents-md"><img src="https://agentmods.dev/badge/instructions/msradam/rocannon/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,936 This file is loaded in full into every session.
When invoked 1,936 The same file — it is already loaded in full.
Security scan C 2 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.01936 $0.01936
Opus 5.5 $0.00774 $0.00774
Sonnet 5.5 $0.00387 $0.00387
Haiku 4.5 $0.00194 $0.00194

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

Security

Grade C, and why

rocannon AGENTS.md scanned grade C with 2 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 2mo 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

`conda`. If `uv` is missing, install it (`brew install uv` or `curl -LsSf https://astral.sh/uv/install.sh | sh`) before doing anything

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`conda`. If `uv` is missing, install it (`brew install uv` or `curl
AGENTS.md · 190 lines

How it starts

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

AGENTS.md

Instructions for AI coding agents working on this repo (Claude Code, Cursor, Bob, Codex, etc.). Humans, start with README.md.

What Rocannon is

An MCP server that registers every installed Ansible module as a typed MCP tool. One server, every module auto-discovered from ansible-doc at startup. There is no plugin abstraction: Ansible is the engine. Module discovery and tool registration live in src/rocannon/ansible.py; cross-cutting concerns (middleware, profile switching, save/replay) live in src/rocannon/server.py.

Setup

uv sync                     # all dev deps including the `ansible` extra
./tests/check.sh            # ruff format + ruff check + mypy + pytest

uv is required. Do not use pip, python -m venv, pipx, or conda. If uv is missing, install it (brew install uv or curl -LsSf https://astral.sh/uv/install.sh | sh) before doing anything else.

Quality gates

Every change must pass ./tests/check.sh before commit. The script runs four steps and exits on the first failure:

  1. ruff format --check
  2. ruff check
  3. mypy --strict (against src/ and tests/)
  4. pytest -x -q (unit tests only; integration suite is opt-in)

Auto-fix mode: ./tests/check.sh --fix (format and lint auto-fix; type and test errors still surface).

Mypy runs in strict mode. The codebase has targeted # type: ignore[<code>] comments where the static and dynamic type systems meet (FastMCP dynamic signatures, the rare untyped third-party import). Do not broaden these to bare # type: ignore and do not add new ignores without a specific error code.

Architecture

src/rocannon/
├── cli.py              Typer entrypoint. Subcommands: mcp serve|doctor,
│                       repl, run, doctor, doc, search, ls, playbook.
├── config.py           Pydantic Config model + YAML profile loader.
│                       Resolves profile-relative paths against the profile
│                       file's parent, not the process CWD.
├── profiles.py         .rocannon/profiles/ discovery, ProfileRegistry,
│                       RuntimeContext for runtime profile switching.
├── ansible.py          register_ansible_modules(): reads ansible-doc,
│                       registers one typed MCP tool per module, plus the
│                       rocannon://inventory and rocannon://module/<fqcn>
│                       resources.
├── server.py           create_server(). Wires middleware, calls
│                       register_ansible_modules, registers save_playbook +
│                       commit_session + rocannon_{list,current,use}_profile.
├── schema.py           ansible-doc parsing, module expansion, type mapping.
├── executor.py         ansible-runner Python-API wrapper + result parsing.
├── playbook.py         Playbook model {tool, args}. Persisted as YAML,
│                       loaded as MCP prompts.
├── repl.py             Operator REPL: same in-process MCP server, prompt
│                       toolkit shell, history, .save, optional .ai mode.
├── inventory.py        ansible-inventory subprocess wrapper.
├── history.py          In-memory ring buffer feeding save_playbook.
├── correlation.py      Request correlation IDs for the audit log.
└── redaction.py        Secrets redaction in audit records.

Read the full file on GitHub · 190 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. 2mo ago First seen · 190 lines · 1,936 tokens per session scan C 673f5fd6e1b9

Subscribe to this mod's changes

rocannon AGENTS.md is an instructions file published in the GitHub repository msradam/rocannon (5 stars, last pushed 1mo ago), licensed MIT. It adds 1,936 tokens to every session, about $0.0077 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

rocannon AGENTS.md compared with instructions from other repositories

rocannon AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rocannon AGENTS.mdmsradam/rocannonInstructions file51mo agoMITC1,936Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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