sidekick.nvim
AGENTS.md2.8k starsChanged 14 months agoApache-2.0View on GitHub
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. Swap in the topic/API you need to research. Keep this sheet handy when automating changes or onboarding new agents.
Trending
Quiet since September.about the whole repository
Who's talking about folke/sidekick.nvim
- A Hacker News story“Folke/sidekick.nvim – Your Neovim AI sidekick”Hacker News · Oct 1, 2025 · 9 points
- @cellfusion.bsky.social“sidekick.nvim良さそうなので使ってみる github.com/folke/sideki...”Bluesky · Jan 15, 2026 · 4 likes
- nix-community/nixvim“[PLUGIN REQUEST] sidekick”GitHub · Sep 30, 2025 · 2 reactions
- A Hacker News story“Sidekick.nvim: AI CLI and Copilot edits inside Neovim”Hacker News · Sep 29, 2025 · 2 points
- @fredrikaverpil.github.io“I really love sidekick.nvim, it's such a good tool to run LLM CLIs inside #Neovim github.com/folke/sideki...”Bluesky · Dec 30, 2025 · 1 likes
The biggest 5 of 27 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 27
Talked about on GitHub, Bluesky and Hacker News (27 times).
On GitHub · 20
- Sep 30, 2025[PLUGIN REQUEST] sidekick — nix-community/nixvim2 reactions · 1 comment
- Oct 1, 2025Implement folke/sidekick.nvim in dotfiles — bethanyj28/dotfiles1 reaction
- Sep 11, 2026build(deps): bump sidekick-nvim from `208e1c5` to `3d80a47` in /plugins — josh/lazy-nvim-nix0 reactions
- May 26, 2026sidekick.nvim plugin integration — NotAShelf/nvf0 reactions
- Mar 17, 2026post: sidekick.nvim 側の修正に合わせて記事更新 — Suree33/blog0 reactions · 2 comments
15 more on GitHub
- Mar 3, 2026fix(tmux): run set-option as separate commands on Windows for psmux compatibility — john-mutuma/sidekick.nvim0 reactions
- Jan 28, 2026Add a watch mode — MSmaili/wiremux.nvim0 reactions · 2 comments
- Jan 1, 2026experiment with sidekick.nvim — dangkhoasdc/unown0 reactions
- Dec 8, 2025plugins/sidekick/assertion: no copilot dependency when nes disabled — nix-community/nixvim0 reactions · 1 comment
- Nov 25, 2025Initialize nvim plugin project structure — Daydreamer-riri/catalog-lens.nvim0 reactions · 2 comments
- Nov 9, 2025Neovim plugins — alecandido/nix-config0 reactions
- Nov 7, 2025bug: pr view visual glitches — folke/snacks.nvim0 reactions · 5 comments
- Oct 19, 2025Try new AI UI by folke and a bunch of more folke things — andresgutgon/dotfiles0 reactions
- Oct 4, 2025Sidekick.nvimを試す — happy663/dotfiles0 reactions · 26 comments
- Oct 1, 2025sidekick.nvim: rendering issue with sidekick's NES — rachartier/tiny-inline-diagnostic.nvim0 reactions · 1 comment
- Oct 1, 2025Implement folke/sidekick.nvim plugin with Copilot LSP integration — bethanyj28/dotfiles0 reactions
- Oct 1, 2025(feat) Add sidekick.nvim — Alexis12119/nvim-config0 reactions · 1 comment
- Oct 1, 2025feat(plugin): added folke/sidekick.nvim — ColinKennedy/neovim-ai-plugins0 reactions
- Sep 30, 2025plugins/sidekick: init module — nix-community/nixvim0 reactions · 1 comment
- Sep 28, 2025Add — yutkat/my-neovim-pluginlist0 reactions
On Bluesky · 5
- Jan 15, 2026sidekick.nvim良さそうなので使ってみる github.com/folke/sideki... — @cellfusion.bsky.social4 likes and reposts
- Dec 30, 2025I really love sidekick.nvim, it's such a good tool to run LLM CLIs inside #Neovim github.com/folke/sideki... — @fredrikaverpil.github.io1 likes and repost
- Oct 17, 2025GitHub - folke/sidekick.nvim: Your Neovim AI sidekick #neovim #sidekick #copilot #generativeai #dev #plugin #claudecode #codex #gemini — @latitude77.bsky.social1 likes and repost
- Oct 7, 2025It will bootstrap a socket, and with its accompanying claude hook I call the plugin with the latest adjusted file and lines change in nvim.… — @zachncst.bsky.social1 likes and repost
- Sep 30, 2025sidekick.nvim: Your Neovim AI sidekick that integrates Copilot LSP's "Next Edit Suggestions" with a built-in terminal for any AI CLI.… — @darkwebinformer.com1 likes and repost
On Hacker News · 2
- Oct 1, 2025Folke/sidekick.nvim – Your Neovim AI sidekick9 points · 1 comment
- Sep 29, 2025Sidekick.nvim: AI CLI and Copilot edits inside Neovim2 points
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 1 is distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Keep new configuration options documented in lua/sidekick/config.lua.
- Very specific: line 36
When touching the diffing logic (lua/sidekick/nes/diff.lua), update or add table-driven tests in tests/diff_spec.lua.
- Very specific: line 37
If a change affects status reporting, extend tests/status_spec.lua so notifications stay covered.
- Very specific: line 41
Use mini.test assertions (assert.are.same, assert.is_true, etc.).
- Very specific: line 42
Prefer table-driven specs for combinatorial cases (tests/diff_spec.lua, tests/nes_spec.lua demonstrate the style).
- Very specific: line 48
Avoid touching generated docs directly—run ./scripts/docs instead.
- Very specific: line 50
Do not rely on vim.lsp._set_clients.
- Distinctive: line 60
Keep this sheet handy when automating changes or onboarding new agents.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.testand live intests/. Specs are table-driven whenever possible. - Docs are generated automatically via
./scripts/docs, which extracts Lua annotations to updateREADME.mdsections. - Code style is Lua with
stylua/seleneconfigs already included.
Everyday Commands
./scripts/test– runs themini.testsuite using the Lazy.nvim harness; automatically installs test dependencies. SetLAZY_OFFLINE=1when you need to skip the bootstrap download (for fully offline CI)../scripts/docs– regenerates docs inREADME.mdusing the snippets intests/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"))' +qaSwap in the topic/API you need to research.
Adding Features
- Respect the
Config.nes.enabledcallback 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 intests/diff_spec.lua. - If a change affects status reporting, extend
tests/status_spec.luaso notifications stay covered.
Writing Tests
- Use
mini.testassertions (assert.are.same,assert.is_true, etc.). - Prefer table-driven specs for combinatorial cases (
tests/diff_spec.lua,tests/nes_spec.luademonstrate the style). - Stub Neovim APIs carefully: reassign functions and restore them in
after_eachhooks. For upvalue-based helpers (e.g., health reporters), usedebug.setupvalue.
Things to Watch
- The repo may run in headless CI where network calls are blocked; stubs or fixtures should avoid third-party fetches.
- Avoid touching generated docs directly—run
./scripts/docsinstead. - Maintain ASCII unless the surrounding context already uses Unicode (sign glyphs in configs are fine).
- Do not rely on
vim.lsp._set_clients; tests should stubConfig.get_clientorvim.lspmethods directly.
Useful Paths
- Core diff logic:
lua/sidekick/nes/diff.lua - NES orchestration:
lua/sidekick/nes/init.lua - Treesitter helpers:
lua/sidekick/treesitter.lua - Status integration:
lua/sidekick/status.lua - Tests entry point:
tests/minit.lua
Keep this sheet handy when automating changes or onboarding new agents.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

