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 ebd72ed0c9 Update src/ai-repo-commander.user.js
1. Fixed YAML Parsing Edge Cases
Multi-line content with colons now works correctly

Uses TOP_LEVEL_KEYS to only stop collection on known keys

Much more robust for real-world content

2. Better Command Block Extraction
More tolerant --- matching (allows trailing spaces)

Won't break on content that happens to contain ---

3. Cleaner Owner/Repo Handling
Moved normalization to parser (side-effect free validation)

More predictable behavior

4. Improved Error Messaging
Clear retry attempt counts: "failed after 2 attempts; max 3"

Better user feedback

5. Robust JSON Parsing
Handles malformed API responses gracefully

Won't crash on non-JSON responses

6. Better Message ID Generation
Added timestamp and random salt to prevent collisions

Uses data attributes to persist IDs

7. User Experience
Bridge key warning on initialization

Cleaner separation of concerns
2025-10-06 20:04:23 +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-06 20:04:23 +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