aiwaku.nvim: Instructions file for GitHub Copilot

.github/copilot-instructions.md

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

Project instructions for aiwaku.nvim, a Neovim plugin that runs a chosen command-line AI tool inside a persistent tmux terminal sidebar. They document the repository's build, test, lint, architecture, and coding conventions.

In plain words
What is it for?
Use them when modifying, testing, or reviewing the aiwaku.nvim Neovim plugin.
Why use it?
They give coding agents the project context and constraints needed to make changes without guessing how the plugin is organized or verified.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is juhaku/aiwaku.nvim's own configuration. It tells GitHub Copilot how to work on aiwaku.nvim itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything aiwaku.nvim configures →

Reuse

Borrowing it

Nothing to install: this file belongs to juhaku/aiwaku.nvim. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/juhaku/aiwaku.nvim/master/.github/copilot-instructions.md
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 copilot-instructions.md

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

Measured 4d ago against content hash b672adf15abf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

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

.github/copilot-instructions.md · 108 lines

How it starts

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

Copilot instructions for aiwaku.nvim

Build, test, and lint

This repository does not define dedicated build, test, or lint commands today. There is no Makefile, test directory, CI workflow, or formatter/linter configuration in the repo.

  • There is currently no automated full test command.
  • There is currently no single-test command.
  • There is currently no dedicated lint command.

Runtime requirements still matter for code changes:

  • tmux >= 3.0 is required for session persistence and management.
  • Neovim >= 0.10 is required by the documented plugin API and runtime usage.

High-level architecture

aiwaku.nvim is a Neovim plugin that runs a user-chosen CLI AI tool inside a tmux session and shows that session in a persistent sidebar terminal.

  • lua/aiwaku/init.lua is the public module surface. It re-exports the user API, deep-merges user options with config.defaults, registers configured keymaps, and installs the BufEnter autocmd that re-enters insert mode only for buffers marked with vim.b[bufnr].aiwaku and buftype == "terminal".
  • lua/aiwaku/state.lua is the shared runtime singleton. It stores resolved config, the active tmux session name, the visible sidebar window id, cached terminal buffers keyed by session name, and the busy re-entrancy guard.
  • lua/aiwaku/session.lua is the lifecycle orchestrator. It owns toggle/create/open/select/rename/clear behavior, decides when to reuse a cached terminal buffer versus creating a new one, and coordinates tmux.lua, window.lua, and terminal.lua. select_session() and rename_session() are plenary.async UI flows; the rest of the session lifecycle is synchronous.
  • lua/aiwaku/tmux.lua is the tmux boundary. Keep tmux shelling-out, shell escaping, and session parsing here rather than spreading tmux command construction across other modules.
  • lua/aiwaku/window.lua owns sidebar split creation and sets winfixwidth so the sidebar does not get squashed by other splits.
  • lua/aiwaku/terminal.lua owns terminal buffer creation and setup. It starts jobs with vim.fn.jobstart(..., { term = true }), stores the job id in vim.b[bufnr].terminal_job_id, marks buffers with vim.b[bufnr].aiwaku = true, applies state.config.terminal_keymaps, disables line numbers, and names buffers as aiwaku://<cmd_basename>-<bufnr>.
  • lua/aiwaku/send.lua is the path from visual selections or whole buffers to the running terminal job. It extracts the exact visual range or current buffer, optionally prepends a prompt, ensures the target session exists, auto-opens the sidebar if needed, and sends text over the terminal channel.
  • lua/aiwaku/lsp-code-actions.lua is optional null-ls/none-ls integration layered on top of the public require("aiwaku").send_selection() and require("aiwaku").send_buffer() API. It does a guarded pcall(require, "null-ls") at module load time and returns {} when null-ls is unavailable.

Read the full file on GitHub · 108 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 · 108 lines · 2,007 tokens per session scan A b672adf15abf

Subscribe to this mod's changes

aiwaku.nvim copilot-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,007 tokens to every session, about $0.0100 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.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens