git-absorb
$ git-absorb Community Med RiskRust 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.
brew install git-absorb Mutates local Git staging/commit history directly; --dry-run CLI preview is much safer than wrapping in 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
Runs non-interactively and provides -n/--dry-run, but emits plain text logs with no --json output.
- Supports
-n/--dry-runfor non-mutating hunk matching - Plain text stdout/stderr only; no
--json
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
--forceis passed --dry-runinspects target commits safely
Single Rust binary installable via Homebrew, Cargo, distro packages, and GitHub Releases.
- Prebuilt Rust binaries for macOS, Linux, and Windows
Automates tedious git commit --fixup target lookups on multi-commit PR branches.
- Eliminates manual
git log -S+git commit --fixuploops
Focused, mature open-source project (tummychow/git-absorb) under BSD-3-Clause.
- Well-tested Rust codebase under BSD-3-Clause
Clear README and man page covering flags, edge cases, and absorb.maxStack configuration.
- Concise README and
--helpoutput
Security, Auth & Guardrails
Operates purely on local Git object database; no credentials stored or required.
BSD-3-Clause open-source Rust tool; free to use.
# 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
git absorb --dry-run
Analyzes staged changes and reports target commit SHAs without creating any fixup commits.
Controlled Writes & Previews
git absorb
Generates fixup! commits for unambiguous staged hunks while leaving history rewrite (--and-rebase) for explicit review.
Strengths for Agents
- +
--dry-runpreviews 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
--jsonoutput for programmatic commit-mapping inspection. - ! Running with
--and-rebasetriggers a history rewrite that can fail on merge conflicts in automated runs.