agentzt: Instructions file for Claude Code

CLAUDE.md

agentzt CLAUDE.md is an instructions file for Claude Code from openafw/agentzt. It costs 1,360 tokens per session, scanned C, original, Apache-2.0.

Repository instructions for agentzt, a security proxy that controls how AI agents connect to company models and tools.

In plain words
What is it for?
Understanding the client and gateway structure, preserving the no-dependency setup, and developing or testing this Node and TypeScript project safely.
Why use it?
They explain how the proxy authenticates agents, limits access, checks requests, and records activity, while setting strict rules for changing the code.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is openafw/agentzt's own configuration. It tells Claude Code how to work on agentzt 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 agentzt configures →

Reuse

Borrowing it

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

Made for: Claude Code.

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 agentzt CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/openafw/agentzt/claude-md"><img src="https://agentmods.dev/badge/instructions/openafw/agentzt/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,360 This file is loaded in full into every session.
When invoked 1,360 The same file — it is already loaded in full.
Security scan C 1 finding. 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.01360 $0.01360
Opus 5.5 $0.00544 $0.00544
Sonnet 5.5 $0.00272 $0.00272
Haiku 4.5 $0.00136 $0.00136

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

Security

Grade C, and why

agentzt CLAUDE.md scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Before committing: reset `config/agents.json` to an empty `agents` array and `rm -rf
CLAUDE.md · 97 lines

How it starts

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

CLAUDE.md

Guidance for Claude Code (and other agents) working in this repository.

What this is

agentzt — Zero Trust for AI Agents. An AI agent reaches enterprise model APIs and tools only through a zero-trust proxy, the same way a human reaches enterprise apps through a ZTNA client + gateway. It does not replace ZTNA for humans; it secures the agent→model and agent→tool path.

  • agentzt-client (src/client) — local proxy + per-agent identity. The agent points its model SDK at it (ANTHROPIC_BASE_URL=http://localhost:8787); the client attaches a short-lived token to every request and forwards to the gateway.
  • agentzt-gateway (src/gateway) — PDP+PEP. Authenticates the agent, issues scoped short-lived tokens, enforces deny-by-default RBAC + ABAC + JIT, runs input/output guardrails, audits everything, then forwards to the real model API / tools.

Open source, Apache 2.0, repo: https://github.com/openguardrails/agentzt

Hard constraints — read before editing

  • Zero runtime dependencies. No build step. Everything runs on Node ≥ 22.6 via native TypeScript type-stripping (node src/...ts). Do not add npm dependencies or a bundler. package.json deps stay empty (only @types/node + typescript as devDeps for editor/typecheck).
  • Because of type-stripping, write erasable TypeScript only: no enum, no namespace, no constructor parameter properties, no decorators. Use import type for type-only imports and .ts extensions on every relative import (ESM).
  • The only allowed external process is openssl, and only in src/cli/tls.ts for opt-in mTLS PKI setup. The runtime never shells out.
  • Use Node built-ins only: node:http, node:https, node:crypto, node:tls, global fetch. Note global fetch can't carry client certs — use src/client/transport.ts (which falls back to node:https) for outbound client calls.

Commands

npm run demo        # end-to-end: enroll, start gateway+client, drive 8 control checks, audit
npm run demo:mtls   # same, over mutual TLS (needs openssl)
npm test            # 28 checks (auth, RBAC, guardrails, ABAC, JIT, audit chain, mTLS)
npm run typecheck   # tsc --noEmit (needs `npm i` once for typescript)

npm run gateway                                  # start gateway (PDP+PEP)
AGENTZT_AGENT_ID=<id> npm run client             # start client proxy for an agent
node src/cli/index.ts enroll --agent <id> --role <role> [--mtls]
node src/cli/index.ts roles | agents | audit [--verify] | tls init | tls issue --agent <id>

Read the full file on GitHub · 97 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 · 97 lines · 1,360 tokens per session scan C 811a29baac5f

Subscribe to this mod's changes

agentzt CLAUDE.md is an instructions file published in the GitHub repository openafw/agentzt (11 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 1,360 tokens to every session, about $0.0054 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories