deepagents — one dcode turn, end to end

deepagents — one dcode turn, end to end A sequence diagram generated by Archify. prompt astream() over SSE run thread_id before_agent (once) loads AGENTS.md + skill metadata via backend fresh ModelRequest filter tools, inject prompt, compact system + view + tools AIMessage(tool_calls) Send per tool call HITL interrupt, if configured, fires before this read / write / execute ToolMessage or stub results > 20k tokens offloaded to /large_tool_results next model step no tool_calls END + checkpoint stream updates render answer Turn start Model step Tool step Loop Finish Developer · terminal · Sequence participant Developer terminal dcode TUI · Textual app · Sequence participant dcode TUI Textual app LG server · langgraph dev · Sequence participant LG server langgraph dev Agent graph · model + tools · Sequence participant Agent graph model + tools Middleware · stack hooks · Sequence participant Middleware stack hooks Chat model · BaseChatModel · Sequence participant Chat model BaseChatModel Tool node · ToolNode · Sequence participant Tool node ToolNode Backend · files / shell · Sequence participant Backend files / shell Legend main request return message