04Topic 4 of 15
Workflows
Reviewing PRs, working across a whole codebase, giving an agent the right context.
- 04.01 Let Claude Code Work on a Whole Repo Safely Branch, plan, deny the destructive commands, review in small chunks. Auto mode now starts on by default, so don't assume Claude will stop and ask. 4 min
- 04.02 Give an AI Coding Agent the Right Context CLAUDE.md, AGENTS.md and .cursor/rules: four habits that fix most bad AI code — a rules file, @file references, one example, a clean context. 3 min
- 04.03 How to Review a Pull Request with Claude Code Run /code-review (alias /review) on a diff, or check out a PR with gh. Ask for correctness over style, then have Claude apply only the fixes you accept. 3 min
- 04.04 How to Set Up the Claude Code GitHub Action Install the Claude GitHub App, add one secret, and drop in a workflow so @claude answers in your issues and PRs. Copy-paste. 4 min
- 04.05 How to Run Claude Code Headless in a Script or CI Run Claude Code non-interactively with claude -p, get JSON back, pre-approve tools, and wire it into a CI job. Copy-paste. 4 min
- 04.06 Run Parallel Claude Code Sessions with Git Worktrees Start a second Claude Code session in its own git worktree with `claude --worktree`, keep .env files in it, and clean up when you're done. Copy-paste. 3 min
Keep going