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/nickjvandyke/opencode.nvim/agents-mdgit clone --depth 1 https://github.com/nickjvandyke/opencode.nvimWhat 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.01133 | $0.01133 |
| Opus 5 | $0.00566 | $0.00566 |
| Sonnet 5 | $0.00227 | $0.00227 |
| Haiku 4.5 | $0.00113 | $0.00113 |
Grade A, and why
opencode.nvim AGENTS.md scanned grade A 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 yesterday.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- **Required**: `opencode` CLI, `curl` How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
opencode.nvim — agent guide
What it is
A Neovim Lua plugin that bridges Neovim and the opencode CLI (external binary). It discovers or starts an opencode server, communicates via REST + SSE, and provides UI for prompting, context injection, session management, and edit review.
Entrypoints
- Public API:
lua/opencode.lua— exportsask(),select(),prompt(),command(),operator(),format(),statusline - Config:
vim.g.opencode_optsglobal (not asetup()call); merged with defaults fromlua/opencode/config.lua - Plugin files:
plugin/highlights.luasets highlight groups;plugin/events/registers four autocmd groups (OpencodeReload,OpencodeStatus,OpencodePermissions,OpencodeEdits) that listen forOpencodeEvent:*User events to reload edited buffers, update statusline, display permission requests, and diff edit proposals
Config quirks
- Config is passed via
vim.g.opencode_optsfor simpler UX and faster startup (seelua/opencode/config.lua:6) snacks.nvimnested opts go underask.snacks/select.snacks, then get merged into the passed options at usage time (lua/opencode/ui/ask/init.lua,lua/opencode/ui/select.lua)vim.o.autoreadis automatically set totruewhenevents.reload.enabled = true(the default) unless the user has explicitly configured it- Neovim doesn't support mixed integer/string keys in
vim.g, which affects somesnacks.inputoptions; workaround: modifyrequire("opencode.config").optsdirectly
Dependencies
- Required:
opencodeCLI,curl - Auto-discovery:
pgrep+lsof(Unix, unlessserver.urlis set) - Optional:
snacks.nvim(enhancesask()withsnacks.input,select()withsnacks.picker),blink.cmp(completion plugin with LSP source) - No hard Lua dependencies beyond Neovim itself
Verification commands
# Type-check (requires neovim + lua-language-server + cloned snacks/blink)
lua-language-server --configpath .luarc.ci.json --check=.
# Format check
stylua --check .
# Format in place
stylua .
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.
- yesterday First seen · 77 lines · 1,133 tokens per session scan A 3c9cd1c8acb4
opencode.nvim AGENTS.md is an instructions file published in the GitHub repository nickjvandyke/opencode.nvim (3,797 stars, last pushed 10d ago), licensed MIT. It adds 1,133 tokens to every session, about $0.0057 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
claude-code.nvim CLAUDE.md
Instructions for greggh/claude-code.nvim, covering project: claude code plugin, essential commands, project structure, current focus and multi-instance support.
codecompanion.nvim AGENTS.md
Instructions for olimorris/codecompanion.nvim, covering codecompanion.nvim, commands, code conventions, architecture and general rules.
opencode-ensemble AGENTS.md
AGENTS.md instructions for hueyexe/opencode-ensemble, covering opencode-ensemble — agent guidelines, what this is, design context, users and brand personality.
opencode-claude-memory AGENTS.md
Instructions for kuitos/opencode-claude-memory, covering agents.md, structure, where to look, critical coupling and conventions.
sidekick.nvim AGENTS.md
Instructions for folke/sidekick.nvim, covering agent cheat sheet, project overview, everyday commands, adding features and writing tests.
systematic AGENTS.md
Instructions for marcusrbrown/systematic, covering agents.md - coding agent guidelines for systematic, for architecture questions, commands, conventions and anti-patterns.