agentleFS
folkefolke/sidekick.nvim/AGENTS.md

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

Dec 2025: 2 mentionsJan 2026: 3 mentionsFeb 2026: 0 mentionsMar 2026: 2 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the folke/sidekick.nvim repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about folke/sidekick.nvim

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

15 more on GitHub

On Bluesky · 5

On Hacker News · 2

  • 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
  1. Very specific:

    Keep new configuration options documented in lua/sidekick/config.lua.

    line 35
  2. Very specific:

    When touching the diffing logic (lua/sidekick/nes/diff.lua), update or add table-driven tests in tests/diff_spec.lua.

    line 36
  3. Very specific:

    If a change affects status reporting, extend tests/status_spec.lua so notifications stay covered.

    line 37
  4. Very specific:

    Use mini.test assertions (assert.are.same, assert.is_true, etc.).

    line 41
  5. Very specific:

    Prefer table-driven specs for combinatorial cases (tests/diff_spec.lua, tests/nes_spec.lua demonstrate the style).

    line 42
  6. Very specific:

    Avoid touching generated docs directly—run ./scripts/docs instead.

    line 48
  7. Very specific:

    Do not rely on vim.lsp._set_clients.

    line 50
  8. Distinctive:

    Keep this sheet handy when automating changes or onboarding new agents.

    line 60

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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.

Writing Tests

  • Use mini.test assertions (assert.are.same, assert.is_true, etc.).
  • Prefer table-driven specs for combinatorial cases (tests/diff_spec.lua, tests/nes_spec.lua demonstrate the style).
  • Stub Neovim APIs carefully: reassign functions and restore them in after_each hooks. For upvalue-based helpers (e.g., health reporters), use debug.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/docs instead.
  • 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 stub Config.get_client or vim.lsp methods 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.