
Free Lesson
Build an Autonomous Claude Code Agent
60 min
Oct 15, 2026 12:00 PM
What you'll learn
Run Claude Code headless on a real issue
Turn a GitHub issue into a task it runs in its own worktree, without you.
Gate its work with hooks and tests
Block unsafe commands and fail the run before a bad change reaches review.
Hand back a pull request worth reviewing
Open the pull request only when every check passes; an engineer merges.
Why this topic matters
Claude Code can fix an issue; the hard part is letting it run while you work on something else. Most teams either watch every step or let it loose with no checks, then stop trusting it after one bad pull request. Live, I give Claude Code a real GitHub issue and run it headless in its own worktree, with hooks and tests, until it opens a pull request that passed them. Part 4 of 4 in the Software Factory series.





