The ultimate bridge between AI code generation and your local codebase. Paste AI-generated code from Claude, ChatGPT, DeepSeek, Cursor, Aider, or any LLM—AI Code Stitcher intelligently applies it to the correct locations in your existing codebase.
Simply run the installer and start stitching.
stitcher.example.done_2.mp4
When working with AI code generation tools, the workflow is tedious:
- Copy output from Claude/ChatGPT
- Hunt for where it belongs in your codebase
- Manually fix indentation
- Deal with LLM hallucinations (
// ... existing code ...) - Track changes across your project
AI Code Stitcher automates all of this. Keep coding while the tool handles integration.
AI Code Stitcher has two components:
- Code Stitcher - A terminal application that monitors your clipboard and intelligently applies AI code to your project
- Stitch Viewer - A visual diff viewer for reviewing, accepting, or reverting changes
- Ask Claude, ChatGPT, or another LLM for code
- Copy the AI output
- Press F9 in Code Stitcher to arm it
- Paste the code with Ctrl+V
- The tool automatically finds where it belongs, fixes indentation, and applies it
- Press F11 to review changes in Stitch Viewer
- Accept or reject individual edits with a click
- Unified Diffs
- Aider Patches
- Drop-in replacements
- Headless snippets
- Works with Claude, ChatGPT, DeepSeek, Cursor, GitHub Copilot, Aider, Code Llama, and any LLM
- Fixes mangled brackets caused by LLM formatting errors
- Auto-resolves missing imports and dependencies
- Corrects broken indentation automatically
- Removes common LLM hallucinations
- Press Ctrl+Z to undo the last patch
- Press Ctrl+Y to redo
- Full .bak backup system maintained internally
- Side-by-side diff viewer to inspect every change
- Granular revert controls - Accept or reject individual changes
- Live text editor - Fix typos and adjust code on the fly
- Change history tree - See every AI injection applied during your session
- Context view - Collapse to see only modified functions
Runs as an interactive terminal application. You configure which folders to monitor, and it builds a lightweight index of your codebase.
- Clipboard Monitoring - When "Armed" (F9), actively watches for code blocks
- Intelligent Parsing - Strips conversational text and isolates actual code
- Context Resolution - Identifies whether it's a diff, patch, class, or new function
- Auto-Stitching - Finds insertion points, aligns indentation, writes safely
- Smart Cleanup - Removes LLM hallucinations and formatting artifacts
| Hotkey | Action | Description |
|---|---|---|
| F9 | Arm / Disarm | Toggle clipboard monitoring on/off |
| Shift + F9 | Tactical Arm | Intercept clipboard, manually choose injection point |
| F8 | Filelock | Lock output to specific file (disable guessing) |
| F7 | Compose | Draft prompts with attached file context |
| F11 | Launch Viewer | Open Stitch Viewer for review & editing |
| Ctrl+Z | Undo | Revert last patch |
| Ctrl+Y | Redo | Reapply last patch |
A blazing-fast, Git-like UI for reviewing exactly what the Stitcher applied to your files.
Launched via F11 from the Stitcher, it reads the hidden ep_backups folder and displays your codebase's history in a clean side-by-side diff layout.
- Side-by-Side Diff - Compare historical (Old) and live (New) versions. Deletions in red, additions in green.
- Granular Revert Controls - Click arrows or crosses to accept/reject individual changes
- Live Text Editor - Transition the right-hand panel into a full editor. Fix typos, adjust variables, press ESC to save.
- History Tree - Chronological file organization. Expand any file to see every AI injection ("Run") applied during your session.
- Context View - Collapse entire file to see only changed functions in summary cards
- Download the installer from the release link above
- Run code_stitcher_setup_v2.71.exe
- Windows Defender SmartScreen may appear (normal for new apps) - click "More info" then "Run anyway"
- Follow the installation wizard
- Launch from Start menu
Support is planned. Check back for updates or join our discussions.
You may see a warning that the app is "potentially dangerous." This is normal for new software with a limited install base. AI Code Stitcher contains:
- No spyware
- No malware
- Open source for inspection
- No telemetry collection
- Launch AI Code Stitcher
- Configure folders to monitor (your project directories)
- The tool builds a lightweight index of your codebase
- Press F9 to arm clipboard monitoring
- Start copying AI-generated code
- Keep code blocks reasonably sized - large monolithic changes work better than tiny snippets
- Use Filelock (F8) if the tool guesses wrong insertion points
- Review in Stitch Viewer (F11) before committing changes to version control
- Use Tactical Arm (Shift+F9) for complex injections where you want more control
- Ensure F9 is enabled (terminal shows "ARMED")
- Check your clipboard actually contains code, not just text
- Use F8 Filelock to manually specify target file
- AI Code Stitcher auto-fixes most indentation - review in F11 Stitch Viewer
- Use the live editor to manually adjust if needed
- Press Ctrl+Z to undo and retry
- Press Ctrl+Z to undo
- Use Shift+F9 Tactical Arm next time to manually choose insertion point
- Or use F8 Filelock to lock to a specific file
We welcome contributions! See CONTRIBUTING.md for guidelines.
Found a bug? Have a feature idea? Open an Issue with:
- What you were trying to do
- What happened instead
- Your OS and Python version
- The code snippet that caused the issue (if applicable)
Have an idea? Start a Discussion to see if others want it too.
- Discussions - Ask questions and share ideas: GitHub Discussions
- Issues - Report bugs: GitHub Issues
- Website - Learn more: aicodestitcher.com
AI Code Stitcher is released under the MIT License.
By downloading and installing this tool, you agree to the standard software terms and conditions.
- IDE integrations (VS Code, JetBrains extensions)
- macOS and Linux support
- Web-based collaboration features
- Advanced pattern matching for complex code structures
- Analytics dashboard for AI-assisted development metrics
We're working on expanding platform support and IDE integrations. Check out our discussions to vote on features or share your ideas.