lazygit
$ lazygit Official Med Risklazygit is an acclaimed interactive Terminal User Interface (TUI) for staging hunks, interactive rebasing, cherry-picking, and browsing git graphs. Because it requires a live TTY and keyboard events with zero headless or --json modes, coding agents should never invoke lazygit and should use git directly instead.
brew install lazygit Interactive full-screen TUI built for human terminal sessions; agents should run git subcommands instead of lazygit or MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Pure interactive TUI requiring a live TTY and keyboard input; lacks headless execution, --json output, and non-interactive subcommands (only --version/--help/--print-config-dir exit cleanly).
- Launches full-screen terminal UI that hangs in non-TTY agent shells
- Zero
--jsonor headless git operation flags
Exposes destructive git actions (force push, hard reset, drop commit) inside a TUI without headless dry-run guards, though it delegates safely to local git config.
- No headless mode or
--dry-runguardrails - Safe only for
--version/--print-config-dirinspection by agents
Single static Go binary available via Homebrew, Go, winget, scoop, and GitHub Releases across macOS, Linux, and Windows.
- Single static Go binary across all major platforms
Top-tier productivity tool for human developers in a terminal, but adds zero utility for autonomous agents over standard git.
- Human-centric TUI; standard
gitis strictly better for agent automation
Highly active open-source project (jesseduffield/lazygit) under MIT license.
- Maintained at
jesseduffield/lazygitunder MIT
Extensive keybinding, configuration, and custom command documentation in the GitHub repository.
- Well-documented config and keybindings in
jesseduffield/lazygit
Security, Auth & Guardrails
Delegates all git authentication and SSH keys directly to the host git CLI and credential helpers.
MIT open-source and completely free.
# lazygit Agent Rules - NEVER invoke bare `lazygit` in an agent shell; it opens a full-screen TUI and hangs. - Only `--version`, `--help`, `--print-config-dir`, or `--debug` metadata flags exit without a TTY. - Use standard non-interactive `git` commands (`git status --porcelain`, `git diff`, `git rebase`) instead.
Agent-Ready Command Recipes
Safe Read-Only Queries
lazygit --version
Verifies installation safely without opening an interactive full-screen TTY session.
lazygit --print-config-dir
Prints the user configuration directory path to stdout and exits immediately.
Strengths for Agents
- + Fast single static Go binary with cross-platform package support.
- +
lazygit --versionand--print-config-direxit cleanly for installation checks. - + Outstanding interactive UX for human developers reviewing hunks and rebases.
Caveats & Pitfalls
- ! Running
lazygitopens a full-screen TUI that blocks indefinitely in non-TTY agent shells. - ! Zero headless or JSON capabilities; agents must use standard
gitinstead.