agentzt CLAUDE.md

agentzt CLAUDE.md is an instructions file for coding agents 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

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/openafw/agentzt/claude-md
Clone the repo
git clone --depth 1 https://github.com/openafw/agentzt

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.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.svg" alt="Measured on agentmods" 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. 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.01360 $0.01360
Opus 5 $0.00680 $0.00680
Sonnet 5 $0.00272 $0.00272
Haiku 4.5 $0.00136 $0.00136

Measured 4d ago against content hash 811a29baac5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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

agentztZero 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. 4d 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 (10 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 1,360 tokens to every session, about $0.0068 per session on Opus 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.