Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

lazygit

$ lazygit Official Med Risk
Jesse Duffield · Code & DevOps · MIT · macos / linux / windows

lazygit 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.

FCRS-1.0 Score
62 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install lazygit
CLI vs MCP Decision CLI Only

Interactive full-screen TUI built for human terminal sessions; agents should run git subcommands instead of lazygit or MCP.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
— Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 6 / 25

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 --json or headless git operation flags
Trust & Safety 16 / 25

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-run guardrails
  • Safe only for --version / --print-config-dir inspection by agents
Setup & Portability 15 / 15

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
Utility & Efficiency 8 / 15

Top-tier productivity tool for human developers in a terminal, but adds zero utility for autonomous agents over standard git.

  • Human-centric TUI; standard git is strictly better for agent automation
Maintenance & Lineage 9 / 10

Highly active open-source project (jesseduffield/lazygit) under MIT license.

  • Maintained at jesseduffield/lazygit under MIT
Docs & Verifiability 8 / 10

Extensive keybinding, configuration, and custom command documentation in the GitHub repository.

  • Well-documented config and keybindings in jesseduffield/lazygit

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Delegates all git authentication and SSH keys directly to the host git CLI and credential helpers.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

MIT open-source and completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Print lazygit version without launching TUI
lazygit --version

Verifies installation safely without opening an interactive full-screen TTY session.

Print effective config path and defaults
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 --version and --print-config-dir exit cleanly for installation checks.
  • + Outstanding interactive UX for human developers reviewing hunks and rebases.

Caveats & Pitfalls

  • ! Running lazygit opens a full-screen TUI that blocks indefinitely in non-TTY agent shells.
  • ! Zero headless or JSON capabilities; agents must use standard git instead.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI