Skip to content

Chat → Execution Sequence

What actually happens between you typing and seeing a response. Every Claude Code interaction follows this path. Hooks fire invisibly around tool calls; subagents dispatched via the Agent tool run in isolated subprocesses; every LLM call funnels through Portkey on :18900.

The numbered arrows are the sequence — top to bottom. Branches in alt/else blocks are alternative paths the same flow can take depending on what tool Claude picks.

For a full prose walkthrough with 5 worked examples, see How chat-driven execution works.