tw4

AI Agents.Nvim — AI skill for Claude Code

AI community

One picker for every AI coding agent in Neovim - Claude Code, Codex, Copilot, opencode, Gemini and API models - with a single accept/reject flow for the changes they propose.

How to install AI Agents.Nvim

This entry records only its repository, not the path inside it, so there is no exact command to give. Open tw4/ai-agents.nvim and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What AI Agents.Nvim does

One picker for every AI coding agent in Neovim - Claude Code, Codex, Copilot, opencode, Gemini and API models - with a single accept/reject flow for the changes they propose.

Alternatives in AI

  • Repomix — 📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file 22.7k ★
  • Codecompanion.nvim — GitHub Repo stars AI-powered coding seamlessly in Neovim Neovim AI coding 6.3k ★
  • Claude Code.nvim — by greggh - A seamless integration between Claude Code AI assistant and Neovim 1.9k ★

README

ai-agents.nvim

One picker for every AI coding agent in Neovim, and one pair of mappings to approve or reject what they propose.

Neovim can already talk to Claude Code, OpenAI Codex, GitHub Copilot, Gemini CLI and a dozen API models — but through two different plugins, with different commands, and with no way to tell which of them are actually installed until one fails. This plugin puts them behind a single list.

![Picking an agent from the list, the edit it proposes, and ia approving it](assets/picker.gif)

What it does

  • One picker (ip) listing every agent and model available to you, usable ones first, with the missing binary named for the rest.
  • One pair of approve/reject mappings (ia / id) for every agent. Claude Code answers to :ClaudeCodeDiffAccept, and only while the cursor sits in the proposed buffer; every ACP agent and model CodeCompanion drives answers to a keymap bound inside its own diff. These mappings find whichever diff is on screen, jump to it, and resolve it.
  • Show or hide the session (it) without starting a second one.
  • Finds a $HOME-local Claude CLI. Started outside a login shell, Neovim often cannot see ~/.local/bin/claude and claudecode.nvim fails with 'claude' is not executable. The absolute path is resolved instead.
  • Readable diffs. Proposed changes open in their own tab rather than being squeezed between a file tree and a terminal.
  • :checkhealth ai_agents tells you which agents are ready, which are missing, and how to install them.

Two kinds of provider

What it is What you get
ACP agent An external CLI driven over the Agent Client Protocol The agent edits files and you approve each change in a diff
HTTP model An API provider (OpenAI, Anthropic, Gemini, Ollama, …) Chat and inline edits

ACP agents need their CLI installed; HTTP models need an API