nanostack AGENTS.md

nanostack AGENTS.md is an instructions file for Codex, OpenCode from garagon/nanostack. It costs 935 tokens per session, scanned A, original, Apache-2.0.

A set of instructions for Nanostack, a system that helps coding agents discover skills and follow development workflows.

In plain words
What is it for?
Use it to guide agents through Nanostack's default sprint and its available development skills.
Why use it?
It explains which skills are available and how planning, review, testing, orchestration, safety, and onboarding should work.

Instructions file for CodexOpenCode

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/garagon/nanostack/agents-md
Clone the repo
git clone --depth 1 https://github.com/garagon/nanostack

Made for: Codex, OpenCode.

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 nanostack AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/garagon/nanostack/agents-md.svg)](https://agentmods.dev/instructions/garagon/nanostack/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/garagon/nanostack/agents-md"><img src="https://agentmods.dev/badge/instructions/garagon/nanostack/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 935 This file is loaded in full into every session.
When invoked 935 The same file — it is already loaded in full.
Security scan A 0 findings. 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.00935 $0.00935
Opus 5 $0.00467 $0.00467
Sonnet 5 $0.00187 $0.00187
Haiku 4.5 $0.00093 $0.00093

Measured 4d ago against content hash 989b0a3843fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

AGENTS.md · 50 lines

How it starts

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

Nanostack: Agent Discovery

This file lists every built-in skill shipped by Nanostack for the verified adapters: Claude Code, Cursor, OpenAI Codex, OpenCode, and Gemini CLI. Each skill folder contains a SKILL.md for adapter discovery and an agents/openai.yaml for OpenAI-compatible agents. Adapter capability evidence lives in adapters/<host>.json; treat the JSON as the single source of truth for what a given host actually enforces (hook execution, write guard, phase gate).

Available skills

Default sprint

Skill Directory Description
think think/ Refines a rough idea before code: questions one at a time, alternatives with trade-offs, design walked in sections. Calibrated per archetype. Saves a structured artifact (value proposition, scope mode, target user, narrowest wedge, key risk, premise validation).
nano plan/ Implementation planning. Planned files, plan approval, scope assessment, product standards.
review review/ Two-pass code review (structural + adversarial). Scope drift detection against /nano. Conflict precedence with /security.
qa qa/ Browser, API, CLI, or debug testing. WTF heuristic.
security security/ OWASP Top 10 + STRIDE audit. Cross-references /review for conflicts.
ship ship/ Pre-flight, PR creation, CI monitoring, post-deploy verification. Generates the sprint journal on success.
compound compound/ Knowledge capture after /ship. Promotes proven solutions across sprints (bug, pattern, decision) with confidence and applied_count.

Orchestration and safety

Skill Directory Description
guard guard/ Block and warn rules on Bash + Write/Edit. Phase concurrency, sprint phase gate, and budget gate run inside the same pipeline. Rule counts live in guard/rules.json.
conductor conductor/ Multi-agent sprint orchestrator. Parallel sessions via claim/complete protocol with atomic file locking.

Read the full file on GitHub · 50 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 · 50 lines · 935 tokens per session scan A 989b0a3843fc

Subscribe to this mod's changes

nanostack AGENTS.md is an instructions file published in the GitHub repository garagon/nanostack (204 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 935 tokens to every session, about $0.0047 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.