warden 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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/marciommc/warden/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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00762 $0.00762
Opus 5 $0.00381 $0.00381
Sonnet 5 $0.00152 $0.00152
Haiku 4.5 $0.00076 $0.00076

Measured 3d ago against content hash c976b57e7780, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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 · 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. 3d 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 1mo ago), licensed Apache-2.0. It adds 762 tokens to every session, about $0.0038 per session on Opus 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.