{"repo":"mattzcarey/zagi","free":true,"listed":false,"github":"https://github.com/mattzcarey/zagi","clone":"git clone https://github.com/mattzcarey/zagi.git","description":"better git cli for agents","language":"Zig","stars":291,"topics":["agents","ai","ai-agents","bugbot","claude","claude-code","cursor","git","github","gitworktrees"],"license":null,"category":"ai-agents","readme_excerpt":"zagi a better git interface for agents Why use zagi? - 121 git compatible commands - 50% smaller output that doesn't overflow context windows - 1.5-2x faster than git in all implemented commands - Agent friendly features like fork and prompt - Three output modes: succinct (default), --compat (git-identical), --json - Git passthrough for non implemented commands Installation This downloads the binary and sets up git as an alias to zagi . Restart your shell after installation. From source Usage Use git as normal: Any commands or flags not yet implemented in zagi pass through to git. zagi also comes with its own set of features for managing code written by agents. Output modes zagi has three output modes: Succinct (default) — token-efficient output for agents: Compat — identical to git CLI output: JSON — structured output for machine parsing: Easy worktrees zagi ships with a wrapper around worktrees called fork : Agent mode Agent mode is automatically enabled when running inside AI tools (Claude Code, OpenCode, Cursor, Windsurf, VS Code). You can also enable it manually: This enables: - Prompt tracking : git commit --prompt records the user request that created the commit - AI attribution : Automatically detects and stores which AI agent made the commit Metadata is stored in git notes ( refs/notes/agent , refs/notes/prompt , refs/notes/session ) which are local by default and don't affect commit history. Guardrails Opt-in protection against destructive commands ( reset --hard , ","default_branch":null,"files":null,"tree":[],"storefront":"/r/mattzcarey","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mattzcarey/zagi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}