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/wesammustafa/opencode-primer/agents-mdgit clone --depth 1 https://github.com/wesammustafa/opencode-primerWhat 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.01646 | $0.01646 |
| Opus 5 | $0.00823 | $0.00823 |
| Sonnet 5 | $0.00329 | $0.00329 |
| Haiku 4.5 | $0.00165 | $0.00165 |
Grade A, and why
opencode-primer 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 2d 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 — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Project instructions for OpenCode. Read every session.
What this repo is
A practical, opinionated guide to using OpenCode — README, supporting docs, drop-in agent prompts, MCP walkthroughs, and a worked example of a fully-configured .opencode/ directory. It's a documentation repository, not application code.
Repo layout
.
├── README.md # Main guide (the centerpiece)
├── AGENTS.md # This file
├── CONTRIBUTING.md # How to contribute
├── SECURITY.md · CODE_OF_CONDUCT.md
├── LICENSE # MIT
├── opencode.json · tui.json # Example configs with safe defaults
├── docs/
│ ├── quickstart.md # 5-minute getting-started
│ ├── zen.md # Zen model gateway details
│ ├── tui.md # TUI mastery
│ ├── agents.md # Custom agent deep dive
│ ├── commands.md # Custom slash commands
│ ├── skills.md # Agent skills
│ ├── plugins.md # Plugin/hook system
│ ├── mcp.md # MCP integration
│ ├── workflows.md # Real-world recipes
│ ├── migration.md # Migration from Claude Code / Cursor
│ └── reference/
│ ├── cli.md # All CLI commands
│ ├── slash-commands.md # All TUI slash commands
│ ├── permissions.md # Permission model
│ ├── changelog.md # OpenCode releases
│ ├── faq.md # FAQ + troubleshooting
│ └── further-reading.md # External resources
├── .opencode/
│ ├── agents/ # Example custom agents
│ ├── commands/ # Example custom commands
│ ├── plugins/ # Example plugins (audit log, secret blocker)
│ └── skills/ # Example agent skills
├── .github/ # CI (lint-docs.yml), issue/PR templates
├── mcp-servers/ # MCP server walkthroughs
├── specialized-agents/ # Drop-in specialist prompts
│ ├── system-prompts/ # System prompts (7 roles)
│ └── descriptions/ # Role descriptions
└── Images/ # Banner, diagrams, screenshots
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.
- 2d ago First seen · 131 lines · 1,646 tokens per session scan A 45b9d91cdc27
opencode-primer AGENTS.md is an instructions file published in the GitHub repository wesammustafa/opencode-primer (384 stars, last pushed 1mo ago), licensed MIT. It adds 1,646 tokens to every session, about $0.0082 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
nv-context CLAUDE.md
Instructions for johnnichev/nv-context, covering claude-specific: nv-context, session management, compounding engineering and claude-specific.
CodingScaffold AGENTS.md
Instructions for JRS1986/CodingScaffold, covering agents — codingscaffold, what this project is, verification commands, project constraints and commit messages.
AmbyKit CLAUDE.md
Instructions for ambystechcom/AmbyKit, covering claude code — notes for the ambykit repo and claude-specific.
shadow-tutor AGENTS.md
Instructions for lzfxxx/shadow-tutor, covering agents.md — repository instructions for coding agents, layout in one line, build / test / eval, mandatory rules (if/then) and conventions.
better-codebase CLAUDE.md
Claude Code instructions for NicolasYusim/better-codebase: Read and follow AGENTS.md when developing this repository.
AIWiki CLAUDE.md
Claude Code instructions for XuebinMa/AIWiki, covering claude.md — aiwiki 项目记忆, 这是什么, 每次动手前必读(按顺序), 写作 / 翻译用 skill(不要手搓流程) and 保持连贯的硬规则(防止跨会话的风格 / 内容漂移).