aiwaku.nvim context.instructions.md

aiwaku.nvim context.instructions.md is an instructions file for GitHub Copilot from juhaku/aiwaku.nvim. It costs 2,247 tokens per session, scanned A, original, MIT.

Instructions for juhaku/aiwaku.nvim, covering context instructions (applies to all files), recorded lessons, luajit disallows a label as the last statement in a block and ghost buffer not deleted after sidebar window reconnect.

Instructions file for GitHub Copilot

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/juhaku/aiwaku.nvim/context
Clone the repo
git clone --depth 1 https://github.com/juhaku/aiwaku.nvim

Made for: GitHub Copilot.

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 aiwaku.nvim context.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/juhaku/aiwaku.nvim/context.svg)](https://agentmods.dev/instructions/juhaku/aiwaku.nvim/context)
Your own site
<a href="https://agentmods.dev/instructions/juhaku/aiwaku.nvim/context"><img src="https://agentmods.dev/badge/instructions/juhaku/aiwaku.nvim/context.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,247 This file is loaded in full into every session.
When invoked 2,247 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.02247 $0.02247
Opus 5 $0.01123 $0.01123
Sonnet 5 $0.00449 $0.00449
Haiku 4.5 $0.00225 $0.00225

Measured yesterday against content hash 0c6bf3f1388e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

aiwaku.nvim context.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 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.

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.

.github/instructions/context.instructions.md · 203 lines

How it starts

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

Context instructions (applies to all files)

Purpose

  • Quickly capture short, actionable lessons when code generation and review misalign.

Scope

  • Applies to all contributors and automated agents.

When to apply

  • Whenever review findings, validation failures, or reviewer feedback differ from generated code, or a recurring mistake appears.

Process (short)

  1. Detect

    • One-line symptom: where (file/PR) and why it's a problem.
  2. Review and verify

    • Always perform a focused review of the generated change and run the repository's existing validation commands before finalizing changes.
    • If the repository does not define dedicated automation, do a manual diff review plus at least one concrete targeted verification step for the change (for example, git diff --check for docs/config edits or a load-time smoke check for Neovim Lua changes).
  3. Record

    • Add a short entry under .github/instructions/ including:
      • What: one-line summary
      • Where: file paths and PR number
      • Diff/fix: paste the failing diff or the minimal fix
      • Why: brief explanation of the root cause
      • Verification: one-line check to confirm the fix
    • Keep entries concise and code-linked.
  4. Update PR/commit

    • Append the diff/fix and a short description to the PR body or commit message, following the Git workflow conventions in .github/copilot-instructions.md, and reference the instruction entry.
  5. Automated agents

    • If an automated agent generates code, it must review the result and verify it with the repository's available validation steps before finalizing changes.
    • If generated code produces errors (syntax/runtime/test failures) or requires iterative guidance (e.g., re-prompting, partial fixes) to reach a correct result, record:
      • Error: concise error messages or failing test names/log snippets
      • Attempts: prompts or steps used to guide/fix the code
      • Final diff/fix: the minimal changes that fixed the problem
      • Verification: how the fix was validated (tests run, lint, manual check)
    • Append the diff/fix and the above details to the instruction entry and re-run the relevant review and validation steps; do not merge until verification passes.
    • Store a concise memory/fact for future automation when relevant.

Verification

  • Re-run the relevant review and validation steps, confirm the generated code matches the reviewed code, and mark the instruction entry verified.

Tone

  • Short, example-driven, and anchored to file paths. Do not open issues by default — record and verify first.

These instructions exist to reduce repeated review failures by ensuring diffs, fixes, and explanations are preserved and discoverable.


Read the full file on GitHub · 203 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. yesterday First seen · 203 lines · 2,247 tokens per session scan A 0c6bf3f1388e

Subscribe to this mod's changes

aiwaku.nvim context.instructions.md is an instructions file published in the GitHub repository juhaku/aiwaku.nvim (11 stars, last pushed 2mo ago), licensed MIT. It adds 2,247 tokens to every session, about $0.0112 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.