warden AGENTS.md

warden AGENTS.md is an instructions file for Codex, OpenCode from stephnangue/warden. It costs 1,063 tokens per session, scanned A, original, MPL-2.0.

A guide for using Warden, a service that lets an agent discover and call approved service providers. It explains how the agent presents its identity, lists available roles, and retrieves the instructions for each role.

In plain words
What is it for?
Use it to connect an agent to Warden, inspect available roles, retrieve provider instructions, and work within a namespace and identity.
Why use it?
It gives the agent a defined way to find the services it may use and the steps required to use them. This avoids guessing provider endpoints or access procedures.

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/stephnangue/warden/agents-md
Clone the repo
git clone --depth 1 https://github.com/stephnangue/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/stephnangue/warden/agents-md.svg)](https://agentmods.dev/instructions/stephnangue/warden/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/stephnangue/warden/agents-md"><img src="https://agentmods.dev/badge/instructions/stephnangue/warden/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,063 This file is loaded in full into every session.
When invoked 1,063 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.01063 $0.01063
Opus 5 $0.00531 $0.00531
Sonnet 5 $0.00213 $0.00213
Haiku 4.5 $0.00106 $0.00106

Measured 5d ago against content hash c562a0dc0488, 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 5d 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 · 100 lines

How it starts

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

Warden — agent guide

This file orients an autonomous agent (LLM, AI assistant, automation script) that needs to call services through Warden. Operators looking to set up Warden, mount providers, or onboard credentials should read the docs — start with Providers and the per-backend guides under docs/provider-backends/; this tree is for the consumer side.

Where to start

Warden runs its own MCP discovery server at /v1/sys/mcp. Point your MCP client at it (for Claude Code, claude mcp add), presenting your identity — a bearer JWT (Authorization: Bearer <jwt>) or an mTLS client certificate — and, for a sub-namespace, the X-Warden-Namespace header. It needs no role: it authorizes on the identity you present. It exposes two tools:

  • list_roles — the roles your identity can assume, each with an operator-written description. This is your menu.
  • get_skill — given a skill name, returns that skill: the markdown recipe for driving the role's provider.

The description on each role carries what you need: the skill name, and — for a non-MCP provider — the role's gateway URL (relative; prepend $WARDEN_ADDR). For example: "read app secrets (skill: vault, url: /v1/vault/role/read-secret/gateway/)".

The agent loop

[ connect MCP client to /v1/sys/mcp ]   ← identity in the connection
       │
       ▼
[ list_roles ]                          ← which roles can I assume?
       │
       ▼
[ match task → pick a role ]            ← read descriptions; choose the fit
       │
       ▼
[ get_skill <name-from-description> ]   ← the per-provider recipe
       │
       ▼
[ act under the chosen role ]

How you act depends on the provider kind. Your role is the role/<role>/ segment of the gateway URL, so you pick a role by targeting that role's URL — the selector that works for every client. (X-Warden-Role is a header override, usable only where the client sets per-call headers — not an MCP tool call, whose headers are fixed and which carries no role.)

Read the full file on GitHub · 100 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. 5d ago First seen · 100 lines · 1,063 tokens per session scan A c562a0dc0488

Subscribe to this mod's changes

warden AGENTS.md is an instructions file published in the GitHub repository stephnangue/warden (152 stars, last pushed today), licensed MPL-2.0. It adds 1,063 tokens to every session, about $0.0053 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-30.