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

git-absorb

$ git-absorb Community Med Risk
Stephen Jung · Code & DevOps · BSD-3-Clause · macos / linux / windows

Rust Git subcommand that analyzes staged hunks against unpushed branch commits and creates fixup! commits automatically. Supports --dry-run (-n) to inspect hunk-to-commit mappings safely before writing commits.

FCRS-1.0 Score
76 /100
Good
Medium Confidence
Zero-Friction Install
brew install git-absorb
CLI vs MCP Decision CLI Only

Mutates local Git staging/commit history directly; --dry-run CLI preview is much safer than wrapping in 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 17 / 25

Runs non-interactively and provides -n/--dry-run, but emits plain text logs with no --json output.

  • Supports -n / --dry-run for non-mutating hunk matching
  • Plain text stdout/stderr only; no --json
Trust & Safety 19 / 25

Local-only commit helper with conservative defaults (refuses ambiguous hunks and leaves rebase opt-in via --and-rebase), though --and-rebase rewrites history.

  • Skips ambiguous hunks unless --force is passed
  • --dry-run inspects target commits safely
Setup & Portability 14 / 15

Single Rust binary installable via Homebrew, Cargo, distro packages, and GitHub Releases.

  • Prebuilt Rust binaries for macOS, Linux, and Windows
Utility & Efficiency 11 / 15

Automates tedious git commit --fixup target lookups on multi-commit PR branches.

  • Eliminates manual git log -S + git commit --fixup loops
Maintenance & Lineage 8 / 10

Focused, mature open-source project (tummychow/git-absorb) under BSD-3-Clause.

  • Well-tested Rust codebase under BSD-3-Clause
Docs & Verifiability 7 / 10

Clear README and man page covering flags, edge cases, and absorb.maxStack configuration.

  • Concise README and --help output

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Operates purely on local Git object database; no credentials stored or required.

Side Effects
Read-Only Local Write Destructive
Cost & Quotas

BSD-3-Clause open-source Rust tool; free to use.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# git-absorb Agent Rules
- Always run `git absorb --dry-run` first to verify hunk-to-commit matching.
- Avoid `--and-rebase` on shared or already-pushed branches; never use `--force` without explicit user confirmation.

Agent-Ready Command Recipes

Safe Read-Only Queries

Preview which commits will receive staged fixups
git absorb --dry-run

Analyzes staged changes and reports target commit SHAs without creating any fixup commits.

Controlled Writes & Previews

Create fixup commits without rebasing
git absorb

Generates fixup! commits for unambiguous staged hunks while leaving history rewrite (--and-rebase) for explicit review.

Strengths for Agents

  • + --dry-run previews exact fixup commit targets before writing anything to Git history.
  • + Conservatively refuses to guess when a hunk touches lines modified by multiple commits.

Caveats & Pitfalls

  • ! No --json output for programmatic commit-mapping inspection.
  • ! Running with --and-rebase triggers a history rewrite that can fail on merge conflicts in automated runs.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI