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/juhaku/aiwaku.nvim/luagit clone --depth 1 https://github.com/juhaku/aiwaku.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.01837 | $0.01837 |
| Opus 5 | $0.00919 | $0.00919 |
| Sonnet 5 | $0.00367 | $0.00367 |
| Haiku 4.5 | $0.00184 | $0.00184 |
Grade A, and why
aiwaku.nvim lua.instructions.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 today.
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 — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Lua Code Generate and Review Instructions
Simplicity and minimal changes
- Prefer the simplest correct solution. Flag over-engineering, unnecessary abstraction, or boilerplate.
- Change only what the task requires. Do not refactor, rename, or reorganise unrelated code in the same commit.
- Exception: refactor only when it removes genuine duplication or directly supports the requested change. Follow the KISS principle.
- Remove unnecessary intermediate variables when the expression is already readable.
- Flatten nested conditionals: prefer multiple early returns over deeply nested
ifblocks. - An extra line of code is not automatically better than a dense one; judge by comprehension, not line count.
- DO not do any breaking changes if anyway possible, if NOT always confirm first.
No redundant guards
- If a value is validated earlier in the same function, do not re-check it again further down.
- Trust established invariants: once
state.config, a buffer handle, or a window handle is confirmed valid at entry, deeper callees in the same execution path need not repeat that nil-check. - Each guard must appear exactly once per execution path. Duplicate guards are noise and obscure the real logic.
- When a guard makes a subsequent check structurally impossible (e.g., early
returnon nil), remove the redundant check rather than leaving it as defensive dead code.
Execution path coverage
- Every branch must be reachable and intentional. Dead code after a
returnstatement is a bug. - Trace all guard/early-return combinations and verify the happy path is clear and direct.
- For async flows wrapped with
plenary.async.void, ensure every error path either returns cleanly or notifies the user — coroutines must not be silently abandoned. - When adding a new code path, verify existing guards still cover it or add the appropriate guard once at the right point.
LuaDoc annotations
Annotations drive type-checking and IDE support. Keep them accurate.
- All public module functions (every key returned in
M) must carry---@paramand---@returnannotations. - When constructing a table that satisfies a
---@classdefinition, add---@type ClassNameon the line before the return statement. - Functions wrapped in
plenary.async.voidmust be annotated---@async. - Optional fields use the
?suffix:---@field foo? string. lua/aiwaku/types.luais the single source of type truth. Do not duplicate class shapes inline in implementation files; reference the types instead.- Module-level
---@classor---@moduledoc blocks describe the module's public surface. - Do not add annotations for private/local functions unless their signatures are non-obvious.
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.
- today First seen · 118 lines · 1,837 tokens per session scan A d38be0ca38be
aiwaku.nvim lua.instructions.md is an instructions file published in the GitHub repository juhaku/aiwaku.nvim (11 stars, last pushed 2mo ago), licensed MIT. It adds 1,837 tokens to every session, about $0.0092 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-09-02.
Other instructions, from other repositories
fff AGENTS.md
AGENTS.md instructions for dmtrKovalenko/fff, covering to clankers, development commands, building, testing and development tools and code quality.
agentic.nvim AGENTS.md
Instructions for carlos-algms/agentic.nvim, covering agents guide, nested instructions, skill driven, domain glossary — lazy read and architectural decisions (adrs) — optional read.
agentic.nvim CLAUDE.md
Instructions for carlos-algms/agentic.nvim: CRITICAL See @AGENTS.md for Instructions, it's the source of truth for all my instructions, no exceptions, it should be read and be part of your context before any other action.
review.nvim CLAUDE.md
Instructions for vuki656/review.nvim, covering claude.md, commands, lint, run all tests and run a single test file.
sidekick.nvim AGENTS.md
Instructions for folke/sidekick.nvim, covering agent cheat sheet, project overview, everyday commands, adding features and writing tests.
minuet-ai.nvim AGENTS.md
AGENTS.md instructions for milanglacier/minuet-ai.nvim, covering agents.md, coding style, writing, comments & docstrings and commit messages & communication.