Snapedit — AI skill for Claude Code
Snapshot-based editing for AI agents: send only the NEW content via stdio MCP.
How to install Snapedit
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open rianprei/snapedit and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Snapedit does
Snapshot-based editing for AI agents: send only the NEW content via stdio MCP. Immutable sha256 snapshots, 3-way merge, conflict detection, ambiguity-safe zero-write applies, cross-process locks.
Alternatives in AI
- MuseAI Skills — muse.ai (Muse AI) skills and runtime snapshot: 68 skills, workflow guides, connector manifests 261 ★
- Imprint Memory — Persistent memory system for Claude Code — hybrid search (FTS5 + vector), message bus, task queue 78 ★
- RelayBrain — Coordination and context layer for AI coding agents 31 ★
README
snapedit
Snapshot-based file editing for AI agents — **send only the NEW content, never the old block.**
[](https://nodejs.org/) [](LICENSE) [](docs/PROTOCOL.md) [](test/snapedit.test.js)
`snapedit` lets an editing agent (Claude Code, OpenCode, or any MCP client) edit files by sending **only the new content** — never the old text. Files are captured as immutable, content-addressed snapshots; edits reference the snapshot's 1-based line numbers, so lines shifted by prior edits elsewhere never silently misapply.
Agent snapedit Filesystem
│ read_snapshot(path) │
├────────────────────────────────►│ sha256(bytes) → blob_id
│◄── blob_id + numbered page ────┤
│ │ …(agent thinks)…
│ apply_snapshot_patch(blob, │
│ from, to, NEW_CONTENT) ──────►│ base=snapshot · ours=live
│ │ 3-way merge OR splice
│◄── ok:true / conflict / err ────┤
│ │ atomic write + lock
Why
Direct rewrite tools force the agent to transmit the old text to locate a change; when a file changes between reads, misalignment silently corrupts files. `snapedit` replaces that with:
- Immutable snapshots —
blob_id = sha256(bytes). The agent carries only the id; content is never re-sent. - 3-way merge on apply — base = snapshot, ours = live file. Earlier edits (even insertions above the hunk) are preserved; the patch lands exactly where the snapshot said it should.
- Explicit conflicts — if the live file changed inside the hunk with different content, no write happens; a structured conflict is returned with previews of both sides.
Related Skills
Who Broke It
Open-source coordination layer for AI-native engineering teams: one repo, many humans and coding agents. Task
Browser Snapshot Agent
Headless browser agent for capturing page snapshots with MCP support for AI assistants
Livewire Snapshot Extractor
Extract Livewire component snapshots (v2, v3, v4) as structured context for Claude Code and other AI coding as
Gitmarkdown
Collaborative markdown editor with two-way GitHub sync, real-time collaboration, and AI-powered editing. Built
Agnostic Agent Router
Maintain a single unified folder of AI agent skills and instructions, making it seamless to switch between Ant
Planckatron Claude Code
Build ANY project faster with parallel AI workers that never conflict. Drop the .planckatron folder into your
Related Agents
Git Snapshots
Git and Snapshot system - full git abstraction plus automatic versioned snapshots. Use proactively when the us
AWS Snapshot Exposure
Determine which AWS snapshots, AMIs and SSM documents are shared outside the account, whether the share is usa
Atomic Planner
Create deterministic implementation specs with zero ambiguity. Builders should never need to make decisions.