sidekick.nvim AGENTS.md

Repository-specific instructions for sidekick.nvim, a Neovim plugin that connects GitHub Copilot's next-edit suggestions to the editor.

In plain words
What is it for?
They guide feature work, Lua tests, generated README updates, code formatting, linting, and Neovim help inspection.
Why use it?
They collect the project's commands and conventions for testing, documentation, formatting, and code quality.

Instructions file for CodexOpenCode

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/folke/sidekick.nvim/agents-md
Clone the repo
git clone --depth 1 https://github.com/folke/sidekick.nvim

Made for: Codex, OpenCode.

Per session 820 This file is loaded in full into every session.
When invoked 820 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.00820 $0.00820
Opus 5 $0.00410 $0.00410
Sonnet 5 $0.00164 $0.00164
Haiku 4.5 $0.00082 $0.00082

Measured 2d ago against content hash 9e36a88e4737, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sidekick.nvim 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.

AGENTS.md · 61 lines

How it starts

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

Agent Cheat Sheet

This repository contains sidekick.nvim, a Neovim plugin that integrates GitHub Copilot "Next Edit Suggestions" (NES) into Neovim. The plugin relies on Copilot's LSP and ships with an automated test + docs workflow.

Project Overview

  • Core modules live under lua/sidekick/ (config.lua, nes/, status.lua, etc.).
  • Tests are written with mini.test and live in tests/. Specs are table-driven whenever possible.
  • Docs are generated automatically via ./scripts/docs, which extracts Lua annotations to update README.md sections.
  • Code style is Lua with stylua / selene configs already included.

Everyday Commands

  • ./scripts/test – runs the mini.test suite using the Lazy.nvim harness; automatically installs test dependencies. Set LAZY_OFFLINE=1 when you need to skip the bootstrap download (for fully offline CI).

  • ./scripts/docs – regenerates docs in README.md using the snippets in tests/readme.lua.

  • stylua lua tests – format Lua source and tests when needed.

  • selene – lint Lua files (if selene is installed in the environment).

  • Inspect Neovim help topics from the CLI:

    # show all doc paths then grep for a topic
    nvim --headless '+lua print(table.concat(vim.api.nvim_get_runtime_file("doc/*.txt", true), " "))' +qall \
      | xargs rg "vim.text.diff" -C4
    
    # jump straight to a help entry and print the next 50 lines
    nvim --headless \
      '+lua vim.cmd.help("nvim_buf_set_extmark"); print(table.concat(vim.api.nvim_buf_get_lines(0, vim.fn.line(".") - 1, vim.fn.line(".") + 50, false), "\n"))' +qa
    

    Swap in the topic/API you need to research.

Adding Features

  • Respect the Config.nes.enabled callback so that users can disable NES globally (vim.g.sidekick_nes = false) or per-buffer (vim.b[buf].sidekick_nes = false).
  • Keep new configuration options documented in lua/sidekick/config.lua; docs are generated from this file.
  • When touching the diffing logic (lua/sidekick/nes/diff.lua), update or add table-driven tests in tests/diff_spec.lua.
  • If a change affects status reporting, extend tests/status_spec.lua so notifications stay covered.

Read the full file on GitHub · 61 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. 2d ago First seen · 61 lines · 820 tokens per session scan A 9e36a88e4737

Subscribe to this mod's changes

sidekick.nvim AGENTS.md is an instructions file published in the GitHub repository folke/sidekick.nvim (2,749 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 820 tokens to every session, about $0.0041 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.