warden: Instructions file for Codex

AGENTS.md

warden AGENTS.md is an instructions file for Codex, OpenCode from Marciommc/warden. It costs 762 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Warden, an MCP server that controls authority and records agent work. It uses human approval for promotion and keeps an append-only, hash-linked history that cannot be silently rewritten.

In plain words
What is it for?
Use them when modifying Warden's MCP tools, identity rules, work envelopes, approval boundaries, rejection handling, or ledger. They guide changes to its Node.js code, JSON state, and JSONL history.
Why use it?
They prevent changes that would let agents grant themselves authority, hide rejected actions, or alter the record of what happened. They also define the project's architecture and coding rules.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/marciommc/warden/agents-md"><img src="https://agentmods.dev/badge/instructions/marciommc/warden/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 762 This file is loaded in full into every session.
When invoked 762 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.00762 $0.00762
Opus 5.5 $0.00305 $0.00305
Sonnet 5.5 $0.00152 $0.00152
Haiku 4.5 $0.00076 $0.00076

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

Security

Grade A, and why

warden 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 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.

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 · 73 lines

How it starts

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

AGENTS.md — Warden

What this project is

Warden is a constitutional runtime for AI agents, exposed as an MCP server. Thesis: agents cannot mint their own authority. Identity is granted (atomic reservation), work moves in typed envelopes with loud rejection, promotion is human-only (the approval capability does not exist agent-side), and history is an append-only hash-chained ledger that cannot be rewritten silently.

Read README.md first — it is the constitution. Every change must strengthen or demonstrate one of the four Articles. If a change weakens an Article, stop and ask.

Hard rules

  • Never add an MCP tool that approves, promotes, or closes work. The absence of that tool is the core argument of the project.
  • Never make the ledger mutable, truncatable, or optional. Violations stay on the record forever.
  • Rejections must be explicit and descriptive — echo what was attempted, what is allowed, and that the attempt was recorded. No silent failures, no coerced defaults.
  • Zero heavy dependencies. Current stack: Node 22+, ESM, @modelcontextprotocol/sdk, zod. State = JSON file; ledger = JSONL. Do not introduce databases, frameworks, or build steps without an explicit request.
  • Do not reference private companies, clients, internal ecosystems, or internal task systems in code, comments, docs, or commit messages. Public tools and interoperability targets may be named only when materially relevant to Warden. This is a standalone personal open-source project (Apache-2.0).

Layout

  • src/ledger.mjs — hash-chained append-only ledger (Article IV)
  • src/warden.mjs — core primitives and violation classes (Articles I–III)
  • src/server.mjs — MCP stdio server; agent-facing tools only
  • bin/warden-cli.mjs — human-side gate + replay (never reachable via MCP)
  • demo/cheat.mjs — executable demo: every violation class, then the honest path, then ledger tampering caught by chain verification

Conventions

  • Small, single-purpose commits with descriptive messages; commit after every working increment (commit history is part of the hackathon evidence).
  • Any new violation class gets: a rule name in SCREAMING_SNAKE, a ledger event, a loud rejection message, and coverage in demo/cheat.mjs.
  • Tests: plain node scripts under test/ (no framework). npm test must pass before any commit.
  • Keep tool descriptions in server.mjs normative — they tell the agent what is forbidden and that violations are recorded. They are part of the constitution, not decoration.

Read the full file on GitHub · 73 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 · 73 lines · 762 tokens per session scan A c976b57e7780

Subscribe to this mod's changes

warden AGENTS.md is an instructions file published in the GitHub repository Marciommc/warden (0 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 762 tokens to every session, about $0.0030 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-31.

Related

warden AGENTS.md compared with instructions from other repositories

warden AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
warden AGENTS.mdMarciommc/wardenInstructions file03mo agoApache-2.0A762Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot