I replaced my lazygit commit-message helper’s claude -p call with codex exec.
The reason is Anthropic’s Agent SDK credit change. Starting June 15, 2026, eligible Claude plans can claim separate monthly Agent SDK credits, and Claude Code’s non-interactive claude -p usage is covered by that credit pool. I do not want this small helper script to depend on casually running claude -p every time.
The important detail is where the parallelism comes from. codex exec does not magically make the workflow run in the background. The shell script does that: it starts commit-message generation in the background, launches git commit, and lets pre-commit hooks run while the draft message is being generated.
codex exec is the non-interactive AI command in that flow.
The result is a small lazygit custom command: press Ctrl+G, generate a Conventional Commits draft from the staged diff, wait for hooks, then review the message in Vim before committing.
Full config and shell script included.
#lazygit #CodexCLI #Git #PreCommit #DeveloperTools #AIAgents