Feature workflow
- Branch. "Create feature/orders-date-filter from main".
- Plan in plan mode, your edits to the plan.
- Implementation in small steps with tests.
- Verification: tests, linter, your review of
git diff. - Review by a subagent or a separate session.
- Commit with a clear message.
- Pull request with a description via
gh pr create.
Commits
- Ask for atomic commits: one logical change per commit.
- Describe the message format in CLAUDE.md, for example Conventional Commits.
- Check that no extra files made it into the commit: logs, .env, generated code.
Pull requests
With gh installed, the agent creates a PR with a description: what changed, why, how to test. Ask it to add a checklist and a link to the issue. Human review stays mandatory: the agent writes code fast, but merging is your responsibility.
Reviewing changes
Review git diff main...HEAD as a strict reviewer: bugs, unhandled errors, missing tests, leaked secrets. Return a list with file and line, don't change code.
Do it in a new session or with a subagent: a fresh context catches what the authoring session missed.
Parallel work
To let the agent work on two tasks at once without mixing files, use git worktree: a separate working copy per branch, each with its own Claude Code session.
git worktree add ../my-app-filters feature/filters cd ../my-app-filters && claude
Common mistakes
- Working directly in main without a branch.
- One giant commit for the whole feature.
- A PR without a human looking at the diff.
- Pushing without confirmation. Keep
git pushin the ask list.
Today's task
Take one feature through the full flow: branch, plan, implementation, subagent review, commits, PR. Time it and compare with your usual process.