An AI agent that splits your latest messy WIP commit into clean, logical, atomic commits that tell a clear story.
- Separates tidying/structure changes from behavior changes, committing docs and tests before implementation
- Studies your
git logto match your historical commit message style - Aims for at most ~5 commits with ~5 changes each, ordered as a sequential story
- Validates the result by diffing against the original WIP commit SHA to guarantee no code was added, removed, or altered
sbx run docker-agent -- \
run --exec --yolo https://raw.githubusercontent.com/maxcleme/commit_organizer_agent/refs/heads/main/agent.yaml \
/split_last_wip_commit- docker-agent CLI installed
- sbx CLI installed
ANTHROPIC_API_KEYenvironment variable set
Important
Make sure you do not have a GITHUB_TOKEN environment variable defined, for two reasons:
- GitHub credentials are not needed to operate on local git operations.
- If one is incorrectly set (e.g. using the 1Password CLI with values starting like
op://), it will trip the fetch request: your invalid GitHub credentials get injected at thesbxproxy level and cause the request to fail with a404.