Agentic Coding Workflow โ€” Visualised

Step 1 of 5 โ€” Feature Request
Step 1 โ€” Feature request
Developer asks the agent to build a feature
The agent reads the full scope before doing anything
๐Ÿ‘ค
Build a new FastAPI REST endpoint for ...
๐Ÿค–
Got it. Before I write any code, let me break this into reviewable chunks and propose a plan for your approval.

Reading full scope...

Identifying layers and dependencies...
Step 2 โ€” Chunk proposal
Agent proposes the breakdown โ€” waits for approval
No code written yet
๐Ÿค–
Here's my proposed chunk breakdown. Please review and confirm before I start:
#BranchContains
โœ“   Human approved the plan โ€” writing FEATURE_PLAN.md
Step 3 โ€” Execution
Agent executes one chunk at a time
One branch โ†’ one concern โ†’ one PR โ†’ confirm โ†’ next chunk
$ cat FEATURE_PLAN.md # re-read plan before each chunk
chunk 1: feat/db-schema โœ“ confirmed
$ git town hack feat/db-schema
โœ“ Created feat/db-schema off main
... implementing schema and migrations only ...
$ git town propose
โœ“ PR opened: feat/db-schema โ†’ main
$ git town append feat/validators
โœ“ Created feat/validators stacked on feat/db-schema
... implementing validators only ...
$ git town propose
โœ“ PR opened: feat/validators โ†’ feat/db-schema
โ†’ Repeating for service, controller...
Step 4 โ€” Review
Stack is ready โ€” small focused PRs for review
Each PR is one concern. Reviewable in minutes.
BranchCurrent branchTarget branchStatus
feat/controller feat/controller feat/service Open
feat/service feat/service feat/validators Open
feat/validators feat/validators feat/db-schema Open
feat/db-schema feat/db-schema main Open
Step 5 โ€” Merge cascade
Merging bottom up โ€” GitHub retargets automatically
No manual retargeting needed
BranchCurrent branchTarget branchStatus
feat/controller feat/controller feat/service Open
feat/service feat/service feat/validators Open
feat/validators feat/validators feat/db-schema Open
feat/db-schema feat/db-schema main Open