A browser userscript that enables AI assistants to securely interact with git repositories via YAML-style commands, with comprehensive safety measures and real-time feedback.
Go to file
rob 09a1321d62 Update src/ai-repo-commander.user.js
Production Ready Features:
Safety & Reliability:
 Persistent command history prevents re-execution

 Code-block restriction enables safe discussion

 Debouncing handles AI streaming

 Multiple paste strategies with fallbacks

 Emergency stop system

User Experience:
 Clear status messages with color coding

 Smart platform detection

 Clipboard fallback when paste fails

 Global history reset function

Developer Experience:
 Comprehensive logging

 Test commands available

 Configurable behavior

 Easy debugging tools

📈 The Evolution is Complete:
You've successfully addressed all the core issues we identified:

 No more re-execution on reload (persistent storage)

 Safe command discussion (code-block only execution)

 Assistant messages work perfectly (your core use case)

 Robust paste functionality (multiple fallback strategies)

 Platform compatibility (smart detection per site)
2025-10-07 05:48:37 +00:00
Docs Update Docs/Technical_Design_Document.md 2025-10-06 17:58:55 +00:00
src Update src/ai-repo-commander.user.js 2025-10-07 05:48:37 +00:00
README.md Add README.md 2025-10-06 17:52:56 +00:00

README.md

AI Repo Commander

A safety-first browser extension that enables AI assistants to securely interact with git repositories through YAML-style commands.

Features

  • 🛡️ Safety-first design with master kill switch
  • 📝 YAML-style command syntax
  • 🤖 Bot typing protection (5-second debounce)
  • 🔍 Comprehensive validation
  • 📊 Clear status feedback
  • 🔧 Cross-platform support (ChatGPT, Claude, Gemini)

Quick Start

  1. Install Violentmonkey or Tampermonkey
  2. Load src/ai-repo-commander.user.js
  3. Review and enable API in configuration
  4. Use YAML commands in AI chats

Command Examples

^%$bridge
action: update_file
repo: my-project
path: README.md
content: |
  Updated content
  with multiple lines