djinnvim: An Open-Source MCP Server for LLMs to Edit Code Using Vim Commands
snapzee0 · reddit · 2026-08-01
A developer open-sourced djinnvim, an MCP server that allows LLMs to edit code using Vim-style commands. It aims to give models precise editing capabilities for large files or multi-site replacements without relying on full CLI tools like sed.
Core Mechanics:
- Built as a Python MCP server, it exposes essential Vim normal and ex-mode commands to the model.
- Since an LLM can't use a visual interface, every command echoes back the changed lines and their context (with ellipses for large blocks), keeping the model informed of the exact changes.
Performance: Benchmarks on Haiku 4.5 and Sonnet 5 show it hits a sweet spot in sessions where MCPs are allowed but full CLI toolboxes are restricted. The project is experimental and open to contributions.
More from coding & agent
- Dev Slams DeepSeek V4 Flash: Benchmark Scores Don't Match Real Coding Performance — adellknudsen · 2026-08-01
- DeepSeek Flash V4 + opencode: A Ridiculously Good Value Combo — HarveenChadha · 2026-08-01
- Building a Marketing Intelligence Pipeline with Claude Code for Better AI Ad Conversions — EXM7777 · 2026-08-01
- AI Marketing Playbook: Build Competitor Scraping Databases to Empower Agents — eptwts · 2026-08-01
- LLMs Lack Time Perception in Bash: Netizens Propose Action Jingles — akbirthko · 2026-08-01
- Dev uses Codex to autonomously research 20 event venues — gabrielchua · 2026-08-01