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.
npx agentmods add instructions/safe-agentic-world/nomos/claude-mdgit clone --depth 1 https://github.com/safe-agentic-world/nomosWrote 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.
[](https://agentmods.dev/instructions/safe-agentic-world/nomos/claude-md)<a href="https://agentmods.dev/instructions/safe-agentic-world/nomos/claude-md"><img src="https://agentmods.dev/badge/instructions/safe-agentic-world/nomos/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01705 | $0.01705 |
| Opus 5 | $0.00852 | $0.00852 |
| Sonnet 5 | $0.00341 | $0.00341 |
| Haiku 4.5 | $0.00170 | $0.00170 |
Grade A, and why
nomos CLAUDE.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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Commands
Go 1.25+. Use Makefile targets or go directly.
- Build CLI:
go build ./cmd/nomos(ormake build) - Release build with version metadata:
make release-build(sets ldflags intointernal/version) - Full test suite:
go test ./... - Race suite (release gate):
go test -race ./... - Static checks:
go vet ./...(aliased asmake lint) - Format:
gofmt -w .(aliased asmake fmt) - Single package:
go test ./internal/policy - Single test:
go test ./internal/policy -run TestName - Focused MCP compat:
go test ./internal/mcp - Fast iteration set:
go test ./cmd/nomos ./internal/policy ./internal/service ./internal/gateway ./internal/mcp
Smoke checks using the built binary (run after make build / go build):
nomos doctor -c ./examples/quickstart/config.quickstart.json --format jsonnomos policy test --action ./examples/quickstart/actions/allow-readme.json --bundle ./examples/policies/safe.yamlnomos policy test --action ./examples/quickstart/actions/deny-env.json --bundle ./examples/policies/safe.yamlnomos policy explain ...for deny/approval diagnostics
CLI flag precedence is flag > env > fail. Relevant env vars: NOMOS_CONFIG, NOMOS_POLICY_BUNDLE, NOMOS_LOG_LEVEL. --config/-c and --policy-bundle/-p are resolved to absolute paths at parse time.
Architecture
Nomos is an execution firewall for AI agents: an agent-agnostic control plane that sits at the execution boundary and returns ALLOW / DENY / REQUIRE_APPROVAL on normalized actions. The same pipeline backs both the MCP server and HTTP gateway surfaces — understanding that pipeline is the big picture.
Request pipeline (same shape whether the caller is MCP or HTTP):
- Boundary (
internal/mcporinternal/gateway) accepts the request. Identity is never read from the request body — it is injected from config and verified via bearer/HMAC/OIDC. The MCP path derivesaction_id/trace_idfrom the MCP request id (mcp_<id>) to stay deterministic. - Normalize (
internal/normalize,internal/action) canonicalizes resources (e.g.,file://workspace/...,url://host/path), rejects traversal (..), and yields a stable action fingerprint. Agent-supplied principal/environment claims are rejected. - Policy evaluation (
internal/policy) is deny-wins and rule order is irrelevant. Bundles load from JSON or YAML; YAML is validated strictly (duplicate-key and unknown-field rejection) andpolicy_bundle_hashis always computed from canonical JSON of the typed bundle so equivalent inputs stay deterministic. Matching supports glob patterns and optional identity/risk filters. - Obligations: redaction patterns, output caps (
output_max_bytes/output_max_lines), sandbox profile (sandbox_mode), approval scope. Sandbox selection is obligation-driven and fails closed when the configured profile is weaker than required. - Approvals (
internal/approval) bind to exact action fingerprints by default; class-scoped approvals require explicitapproval_scope_classobligation and are limited toaction_type_resource. - Execute (
internal/executor,internal/sandbox) runs only ALLOW decisions.repo.apply_patchis implemented as deterministicpath+contentreplacement, not diff application.net.http_requestmaps normalizedurl://tohttps://, enforces host allowlists, and denies redirects unless the matched policy setshttp_redirects. - Credentials (
internal/credentials) are brokered as short-lived lease IDs bound to(principal, agent, environment, trace_id). Raw secrets never return to the agent; only lease IDs surface in visibility. - Redact + cap (
internal/redact) applies before any output leaves Nomos — to the agent, logs, and audit sinks. Per-rule caps are enforced post-redaction so policy caps cannot be bypassed by larger executor defaults. - Audit + telemetry (
internal/audit,internal/telemetry):action.completedis the canonical replay-levelAuditEvent v1record. Hash chaining runs over canonicalized payloads withprev_event_hashattached for cross-platform-deterministic verification. Telemetry is additive (OTLP/HTTP) — audit remains the authoritative evidence surface.
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.
- 4d ago First seen · 81 lines · 1,705 tokens per session scan A 9e7c0a233a4b
nomos CLAUDE.md is an instructions file published in the GitHub repository safe-agentic-world/nomos (18 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 1,705 tokens to every session, about $0.0085 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.
Other instructions, from other repositories
ollama CLAUDE.md
Claude Code instructions for ollama/ollama: See AGENTS.md for the shared agent instructions for this repository.
azure-sdk-for-go go-code.instructions.md
Instructions for Azure/azure-sdk-for-go: All code should follow the guidelines from the Azure Go SDK Guidelines. This document is a summary of the most important guidelines to follow when contributing to the Azure Go SDK.
gorest AGENTS.md
AGENTS.md instructions for pilinux/gorest, covering agents.md, project overview, build and run commands, build and tidy dependencies.
chatgpt-cli CLAUDE.md
Claude Code instructions for kardolus/chatgpt-cli, covering chatgpt-cli — release runbook, prerequisites, 1. cut the release, 2. publish the github release + binaries and 3. update the homebrew tap.
kessoku AGENTS.md
AGENTS.md instructions for mazrean/kessoku, covering repository guidelines — kessoku, project structure, common commands, build and test.
caracal console-example-naming.instructions.md
Use when writing, editing, or reviewing web console help, info pages, field examples, guided setup copy, or example-facing web console UI text. Enforces the approved Caracal demo naming universe.