Commit
-Stages everything (unless you've already staged something) and runs oco --yes for a descriptive message.
Stages everything (unless you've already staged something) and lets Claude Code or oco write a descriptive message, in your repository's style.
Rewriting history, carefully
Batch oco never touches your branch until it has proven the result is identical.
- Replay in a worktreeCommits from the oldest unpushed WIP up to
HEADare replayed in a temporarygit worktree, away from your files.
- - Rename only the WIPsEach WIP commit is re-staged and
oco --yeswrites its message. Every other commit is re-committed unchanged.
+ - Rename only the WIPsEach WIP commit is re-staged and Claude Code or
ocowrites its message. Every other commit is re-committed unchanged. - Verify, then moveThe branch moves to the new history only if the final content is identical and
HEADhasn't moved in the meantime.
Install in a minute
-Requires macOS 14 Sonoma or later and opencommit. Magic Commit reads your PATH from your login shell, so oco from nvm or Homebrew is found.
Requires macOS 14 Sonoma or later and Claude Code or opencommit. Magic Commit reads your PATH from your login shell, so tools from nvm or Homebrew are found.
1. Set up opencommit
+1. Pick a message generator
+Claude Code: install the claude CLI, run claude once to sign in, then pick it from the ✨ menu at the bottom of the panel.
curl -fsSL https://claude.ai/install.sh | bash
+ opencommit (the default):
npm install -g opencommit
oco config set OCO_API_KEY=<your key>