Live
Black Hat USAAI BusinessBlack Hat AsiaAI BusinessConnecting MCP servers to Amazon Bedrock AgentCore Gateway using Authorization Code flowAWS Machine Learning BlogParsing the AI and gaming future with Nvidia’s Jensen Huang | GTC Q&A - GamesBeatGNews AI NVIDIAStartup Battlefield 200 applications open: A chance for VC access, TechCrunch coverage, and $100KTechCrunch Venture🔥 Jeffallan/claude-skillsGitHub Trending🔥 teng-lin/notebooklm-pyGitHub Trending🔥 HKUDS/DeepTutorGitHub TrendingNebius Stock Rises on $12B Meta AI Deal & Nvidia Investment | 2026 - News and Statistics - indexbox.ioGNews AI NVIDIAHow to use the new ChatGPT app integrations, including DoorDash, Spotify, Uber, and othersTechCrunch AIAI Isn’t Coming For Your Job: Automation Is - KDnuggetsGNews AI jobs98% of Firms Struggling to Manage Wireless as AI ExplodesDigit.fyiNvidia’s AI Boom Faces Taiwan Supply Risk - NVIDIA (NASDAQ:NVDA), Taiwan Semiconductor (NYSE:TSM) - BenzingaGNews AI NVIDIAFrom Prompt Engineering to Harness Engineering: The Next Evolution of LLM SystemsTowards AIBlack Hat USAAI BusinessBlack Hat AsiaAI BusinessConnecting MCP servers to Amazon Bedrock AgentCore Gateway using Authorization Code flowAWS Machine Learning BlogParsing the AI and gaming future with Nvidia’s Jensen Huang | GTC Q&A - GamesBeatGNews AI NVIDIAStartup Battlefield 200 applications open: A chance for VC access, TechCrunch coverage, and $100KTechCrunch Venture🔥 Jeffallan/claude-skillsGitHub Trending🔥 teng-lin/notebooklm-pyGitHub Trending🔥 HKUDS/DeepTutorGitHub TrendingNebius Stock Rises on $12B Meta AI Deal & Nvidia Investment | 2026 - News and Statistics - indexbox.ioGNews AI NVIDIAHow to use the new ChatGPT app integrations, including DoorDash, Spotify, Uber, and othersTechCrunch AIAI Isn’t Coming For Your Job: Automation Is - KDnuggetsGNews AI jobs98% of Firms Struggling to Manage Wireless as AI ExplodesDigit.fyiNvidia’s AI Boom Faces Taiwan Supply Risk - NVIDIA (NASDAQ:NVDA), Taiwan Semiconductor (NYSE:TSM) - BenzingaGNews AI NVIDIAFrom Prompt Engineering to Harness Engineering: The Next Evolution of LLM SystemsTowards AI
AI NEWS HUBbyEIGENVECTOREigenvector

Show HN: Vim Navigator – MCP server that lets AI agents drive your Neovim

Hacker News AI Topby kcaldasApril 5, 20263 min read1 views
Source Quiz

I use Coding tools daily and got tired of it describing code by line numbers. So I built an MCP server that lets the agent control my Neovim instance instead: opening files, highlighting lines, adding annotations, splitting views. The tool I actually wanted was "walkthrough mode": I ask the agent to walk me through a PR, it opens each file, highlights what matters, explains briefly, and waits for my questions. Turns code review into pair programming where the agent points at the screen. It also works passively — while the agent investigates a bug or reads code, my Neovim follows along so I can see what it's looking at. Built with pynvim, talks to Neovim via --listen socket. Works with any MCP client. https://github.com/kcaldas/vim-navigator Comments URL: https://news.ycombinator.com/item?i

An MCP server that lets AI agents drive a Neovim instance. The agent opens files, highlights code, adds annotations, folds sections, and splits views — turning Vim into a shared visual workspace for code walkthroughs, reviews, and pair programming.

How it works

You (in Vim) ←──────→ Neovim (--listen socket) ←──────→ MCP Server ←──────→ AI Agent  watching (pynvim) (Claude, etc.)

The user keeps a Neovim window visible. The AI agent connects to it through the MCP server and manipulates the editor in real time — opening files, pointing at code, annotating lines, and building up layered explanations visually.

Requirements

  • Neovim >= 0.9

  • Python >= 3.10

  • An MCP-compatible AI client (e.g. Claude Code)

Setup

1. Install

git clone https://github.com/krishnacaldas/vim-navigator.git cd vim-navigator python3 -m venv .venv source .venv/bin/activate pip install -e .

2. Start Neovim

In a terminal you can see:

./start-nvim.sh

Or manually:

nvim --listen /tmp/nvim-navigator.sock

3. Register with your AI client

Claude Code (CLI)

claude mcp add vim-navigator -- /path/to/vim-navigator/.venv/bin/python -m vim_navigator.server

Claude Code (settings.json)

{  "mcpServers": {  "vim-navigator": {  "command": "/path/to/vim-navigator/.venv/bin/python",  "args": ["-m", "vim_navigator.server"],  "env": {  "NVIM_SOCKET": "/tmp/nvim-navigator.sock"  }  }  } }

4. Use it

Ask your AI agent to walk you through code, explain a module, or review changes. It will drive your Vim window in real time.

Tools

Tool Description

open_file Open a file and jump to a line

goto_line Jump to a line in the current buffer

highlight_lines Highlight a range of lines with an optional label

annotate Add virtual text annotation at end of a line

fold_range Collapse a range of lines

unfold_all Expand all folds

clear Remove all highlights and annotations

close_splits Close all splits, keep current window

split_open Open a file in a vertical/horizontal split

get_context Get current file, cursor position, visible range

vim_command Run any Vim ex command (escape hatch)

Configuration

Environment Variable Default Description

NVIM_SOCKET /tmp/nvim-navigator.sock Path to the Neovim socket

Example session

You: "Walk me through the auth flow"

Agent: opens auth/handler.go at line 45 highlights lines 45-62, labels "entry point" annotates line 51: "JWT validated here" splits open auth/middleware.go at line 20 "Left side is the handler, right side is the middleware that runs before it. The JWT check on line 51 uses the same validator as the middleware on line 23..."`

Walkthrough mode

For the best experience, ask the agent to "walk you through" something — a PR, a feature, a bug. The agent will:

  • Break the topic into logical layers

  • Open each file, highlight and annotate the key parts

  • Give a brief explanation of what you're seeing

  • Pause and ask you a question before moving on

This turns code review from reading diffs into an interactive, guided session. You see the code in your editor while the agent explains it step by step.

See AGENTS.md for the full walkthrough protocol and best practices.

License

MIT

Was this article helpful?

Sign in to highlight and annotate this article

AI
Ask AI about this article
Powered by Eigenvector · full article context loaded
Ready

Conversation starters

Ask anything about this article…

Daily AI Digest

Get the top 5 AI stories delivered to your inbox every morning.

Knowledge Map

Knowledge Map
TopicsEntitiesSource
Show HN: Vi…reviewagentgithubHacker News…

Connected Articles — Knowledge Graph

This article is connected to other articles through shared AI topics and tags.

Knowledge Graph100 articles · 258 connections
Scroll to zoom · drag to pan · click to open

Discussion

Sign in to join the discussion

No comments yet — be the first to share your thoughts!

More in Products