GitHub - trknhr/ai-docs: Keep your AI-generated context files clean and versioned with Git worktrees
AI Docs CLI
A Go-based CLI tool that provides a one-command workflow to isolate AI-generated "memory" files (GEMINI.md, CLAUDE.md etc) onto a dedicated Git branch with worktree and easy sync.
Features
Creates an orphan branch for AI memory files(GEMINI.md, CLAUDE.md, .cursor/rules/)
Sets up a Git worktree for isolated file management
Automatically updates .gitignore
Separate pull/push commands for flexible workflow
Support for multiple AI agents (Cline, Claude, Gemini, Cursor)
Configuration via ...
Read more at github.com