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 |
||
|---|---|---|
| Docs | ||
| src | ||
| README.md | ||
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
- Install Violentmonkey or Tampermonkey
- Load
src/ai-repo-commander.user.js - Review and enable API in configuration
- Use YAML commands in AI chats
Command Examples
^%$bridge
action: update_file
repo: my-project
path: README.md
content: |
Updated content
with multiple lines