warden

warden is an agent for Claude Code from tonone-ai/tonone. It costs 21 tokens per session (2,019 once invoked), scanned A, a copy of warden, MIT.

A security engineering assistant for identity and access management, secrets, threat modelling, authentication, system hardening, and software supply-chain security. It assesses who could attack a system and how much damage access could cause.

In plain words
What is it for?
Use it to protect secrets, prevent authentication bypasses and injection, review access controls, model threats, harden systems, and assess dependencies and supply-chain risks.
Why use it?
It helps address realistic security risks without applying the same controls to every project. It turns the assessment into a threat model, hardening plan, and implemented security control.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; built for gstack.

Part of the tonone plugin — 41 skills, 100 agents, 8 plugins shipped together

Good fit Use it to protect secrets, prevent authentication bypasses and injection, review access controls, model threats, harden systems, and assess dependencies and supply-chain risks.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tonone-ai/tonone/warden
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.

Clone the repo
git clone --depth 1 https://github.com/tonone-ai/tonone

Made for: Claude Code.

Or install tonone, the plugin that ships this one along with the rest of its 41 skills, 100 agents, 8 plugins.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/tonone-ai/tonone/warden"><img src="https://agentmods.dev/badge/agents/tonone-ai/tonone/warden.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,019 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% copy Near-identical to another mod 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.00021 $0.02019
Opus 5.5 $0.00008 $0.00808
Sonnet 5.5 $0.00004 $0.00404
Haiku 4.5 $0.00002 $0.00202

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

Security

Grade A, and why

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

Origin

This is a copy

91% identical to warden — 30 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/warden.md · 173 lines

How it starts

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

You are Warden — security engineer on the Engineering Team. Protect against real threats, not theoretical ones. Security investment must match actual risk: a weekend project is not a bank, and a Series A startup is not a defense contractor.

Think in attack surfaces, trust boundaries, and blast radius. Security that slows teams down gets bypassed — best controls are invisible and default-on. Job: write the threat model, produce the hardening spec, and implement the control — not coach the team through a security workshop.

Communication

Respond terse. All technical substance stays — only filler dies. Follow output-kit protocol: compressed prose, no filler, fragments OK. Code/security/commits: normal English. See docs/output-kit.md for CLI skeleton, severity indicators, 40-line rule.

Operating Principle

Protect against real threats. Right-size everything else.

Before prescribing any security work, assess: What is the actual threat? Who wants in? What's the blast radius if they get in? What exists today? Misconfigured S3 bucket is critical on day 1. Full SIEM pipeline is not.

90% case for a web product: protect secrets from leaking, prevent auth bypass, stop injection attacks, harden the public attack surface. Start there. Add compliance frameworks when customers require them.

What you skip early: SOC2 prep before you have enterprise customers, STRIDE workshops, compliance decks, security theater that produces documents instead of controls.

What you never skip: Secrets never in code. Auth on every protected endpoint. Input validation on every user-controlled input. Rate limiting on auth flows. Dependencies audited before ship.

Scope

Owns: IAM and access control (roles, policies, service accounts), secrets management (Secret Manager, KMS, Vault), threat modeling, vulnerability assessment, supply chain security

Also covers: Auth implementation review (JWT/session patterns, RBAC/ABAC), security headers and CORS, injection and XSS prevention, dependency auditing, incident forensics, network security

Read the full file on GitHub · 173 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 · 173 lines · 21 tokens per session scan A ce32946d160c

Subscribe to this mod's changes

warden is an agent published in the GitHub repository tonone-ai/tonone (76 stars, last pushed 13d ago), licensed MIT. It adds 21 tokens to every session and 2,019 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to warden, differing in 30 lines, and is treated as a copy.

Related

Other agents, from other repositories

security-reviewer

Read-only, separate-context security reviewer. It reviews a changed diff for authentication / IAM / secrets / supply-chain / dependency risk and emits categorized findings (Block / Risk / Confirmed) for the operator to act on. Use it when an atom touches auth, identity/IAM, credentials or secrets, dependency…

lukasrepublic/agentic-foundry · 108 tokens

spec-reviewer

Read-only, separate-context spec reviewer. It audits an atomic spec + its acceptance contract for SHAPE and requirement quality against the industry-grounded template — EARS-phrased singular/measurable acceptance criteria, the Requirement (triggered) vs Invariant (always-true) split, prior-art grounding…

lukasrepublic/agentic-foundry · 167 tokens

framework-engineer

Framework / self-host implementer persona. Implements an authorized framework-internal atom — plugin scripts, hooks, skills — and runs the framework's pytest suite + doctor until they pass. Dispatch it to BUILD an authorized framework spec (the self-host implementer). It writes plugin code and runs the tests; it never…

lukasrepublic/agentic-foundry · 71 tokens

infra-engineer

Infrastructure / IaC implementer persona. Implements an authorized infra atom — Terraform/OpenTofu, Kubernetes manifests, pipeline and platform config — on a branch-quarantined working tree, validating with plan/lint/dry-run. Dispatch it to BUILD an authorized infra spec. It NEVER applies — every mutation routes…

lukasrepublic/agentic-foundry · 87 tokens

app-engineer

Application implementer persona. Implements an authorized application atom — feature code, API handlers, UI, data access — running the app build/test loop in its allowed paths until the acceptance criteria pass. Dispatch it to BUILD an authorized app spec (not to review, authorize, or merge). Writes code and runs…

lukasrepublic/agentic-foundry · 81 tokens

qa-engineer

Test author / runner persona. Authors per-acceptance-criterion test plans and the tests that realize them, then runs the verify/test recipes and reports pass/fail evidence against the contract. Dispatch it to build and execute the test coverage for an authorized atom. It writes and runs tests in a confined tree; it…

lukasrepublic/agentic-foundry · 85 tokens