Show HN: Vim Navigator – MCP server that lets AI agents drive your Neovim
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.)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 .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" } } } }{ "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
Sign in to highlight and annotate this article

Conversation starters
Daily AI Digest
Get the top 5 AI stories delivered to your inbox every morning.
More about
reviewagentgithub
AI is Driving Cognitive Surrender Whilst Influencing Confidence Levels
AI has rapidly transformed how people access information and make decisions. Tools like ChatGPT offer speed, convenience and support for everyday tasks, however growing evidence suggested overreliance on AI may influence how we think, reason and evaluate information. The research from the University of Pennsylvania’s Wharton School of Business has reviewed 1,300 subjects use of [ ] The post AI is Driving Cognitive Surrender Whilst Influencing Confidence Levels appeared first on DIGIT .
Knowledge Map
Connected Articles — Knowledge Graph
This article is connected to other articles through shared AI topics and tags.
More in Products

98% of Firms Struggling to Manage Wireless as AI Explodes
Wi-Fi has evolved into a strategic growth engine delivering exponential value for enterprises, according to new research from Cisco, to the extent that a single network investment drives returns across employee productivity, customer engagement, and revenue. Polling more than 6,000 global wireless professionals, Cisco’s latest State of Wireless report found that 80% of large businesses [ ] The post 98% of Firms Struggling to Manage Wireless as AI Explodes appeared first on DIGIT .

ContractShield: Bridging Semantic-Structural Gaps via Hierarchical Cross-Modal Fusion for Multi-Label Vulnerability Detection in Obfuscated Smart Contracts
arXiv:2604.02771v1 Announce Type: new Abstract: Smart contracts are increasingly targeted by adversaries employing obfuscation techniques such as bogus code injection and control flow manipulation to evade vulnerability detection. Existing multimodal methods often process semantic, temporal, and structural features in isolation and fuse them using simple strategies such as concatenation, which neglects cross-modal interactions and weakens robustness, as obfuscation of a single modality can sharply degrade detection accuracy. To address these challenges, we propose ContractShield, a robust multimodal framework with a novel fusion mechanism that effectively correlates multiple complementary features through a three-level fusion. Self-attention first identifies patterns that indicate vulnerab



Discussion
Sign in to join the discussion
No comments yet — be the first to share your thoughts!