Borrowing it
Nothing to install: this file belongs to gerardogrisolini/ZenCODE. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/gerardogrisolini/ZenCODE/main/AGENTS.mdgit clone --depth 1 https://github.com/gerardogrisolini/ZenCODEWrote 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/gerardogrisolini/zencode/agents-md)<a href="https://agentmods.dev/instructions/gerardogrisolini/zencode/agents-md"><img src="https://agentmods.dev/badge/instructions/gerardogrisolini/zencode/agents-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.
<a href="https://agentmods.dev/instructions/gerardogrisolini/zencode/agents-md"><img src="https://agentmods.dev/badge/instructions/gerardogrisolini/zencode/agents-md.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.01765 | $0.01765 |
| Opus 5.5 | $0.00706 | $0.00706 |
| Sonnet 5.5 | $0.00353 | $0.00353 |
| Haiku 4.5 | $0.00177 | $0.00177 |
Grade A, and why
ZenCODE 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 8d 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 — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Project
- ZenCODE is a Swift 6.4 package whose main executable is
zen; it runs on macOS, Linux, and WSL with remote model providers. Package.swiftis authoritative for the root products, target dependencies, platforms, and build settings. The packages underSources/FeaturesandSources/ZenCRONhave their own manifests and are outside the root graph.Docs/architecture.mdis the compatibility and dependency-direction contract. Preserve public modules, executable names, wire formats, persisted formats, feature identities, and task-graph ownership unless an explicit migration changes them.- Update
CHANGELOG.mdwhenever a change is user-visible or otherwise warrants a release note. - Composition starts at
Sources/zen/CLI/ZenCODEMain.swift; shared session coordination is centered onAgentCoreSessionRunner, backend state is behindAgentCoreBackend, and direct-tool dispatch is behindDirectToolExecutor.
Architecture Map
zenis the only executable composition root and the only layer that selects and injects a remote model backend.ZenCODECoreowns the shared runtime; terminal UI, Telegram, and ACP adapt that runtime without moving transport-specific types into neutral Agent or Remote domains.- The reusable target flow is
ToolCore→FeatureKit→LocalToolsSupport, withFeatureMCPBridgeKitdepending only onFeatureKitandToolCore.ZenCODECoreconsumes these support targets andZenPackageMetadata; keep dependency-light contracts in the lowest viable layer and never introduce a dependency onzen. Sources/Features/<Feature>contains standalone Swift packages, not root targets. Each optional feature owns its product, implementation, policy, tests, and thin executable; generic feature-process and MCP machinery belongs inFeatureKitorFeatureMCPBridgeKit, never feature-specific behavior.Sources/ZenCRONis the standalone, dependency-free package ofZenCRON, the host that cron runs for scheduled prompts and that spawnszen;/setupbuilds it into<support>/bin/ZenCRON. It is neither a feature nor a composition root. Its binary must stay stable (macOS ties the permissions of cron jobs to it): raise its host version only when its behaviour changes, and keep itsPATHsearch identical toZenCronJobCommand.locateZen(onPath:).AgentCoreSessionRunneris the session-level coordinator and injects oneSessionTaskOrchestratorinto every backend. The orchestrator is the sole mutable owner of task DAGs and checkpoints; backend recreation must not replace or discard that state.DirectToolExecutoris the authorization and dispatch boundary for direct tools. Delegated-agent tool grants normally come from configured profiles, not model-authored arguments or task metadata; a child resolved to the coordinator's same profile inherits the coordinator's effective session allowlist.- Provider generation is remote-only and provider-agnostic runtime state stays local. Shared HTTP/SSE/WebSocket behavior belongs under
Remote/Generation; authentication remains separate from generation transport. - Persisted state lives under the support directory (default
~/.zencode, overridable withZENCODE_SUPPORT_DIRECTORY) and includes settings, sessions, task checkpoints, permissions, feature manifests, and per-workspace memory graphs. Presentation trees, live shared chat, and unfinished Planner clarification state are intentionally transient and must not enter snapshots or checkpoints. - Treat
Docs/architecture.mdas authoritative for compatibility surfaces, ownership details, persistence formats, and migration rules. Structural changes must preserve observable behavior, use direct imports/dependencies, update registries/scripts/parity checks together, and receive focused characterization tests before moving persistence- or wire-sensitive paths.
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.
- 8d ago Changed · +2 lines · +162 tokens per session 1b9b45229a63
- 23d ago Changed · +43 tokens per session 128393edc60b
- 27d ago Changed · +19 tokens per session ddb097b03a3c
- 1mo ago Changed · +4 tokens per session d63e8d97912d
- 2mo ago Changed · +11 lines · +453 tokens per session 8f70a7577771
- 2mo ago First seen · 42 lines · 1,084 tokens per session scan A fd01e6e7cde7
ZenCODE AGENTS.md is an instructions file published in the GitHub repository gerardogrisolini/ZenCODE (11 stars, last pushed yesterday), licensed MIT. It adds 1,765 tokens to every session, about $0.0071 per session on Opus 5.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-31.
ZenCODE AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ZenCODE AGENTS.mdgerardogrisolini/ZenCODE | Instructions file | 11 | yesterday | MIT | A | 1,765 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |