Skip to content

Architecture map

Explore the brick city, layer by layer

Build upward from the baseplate. Select a layer to see which packages live there.

core

Core · Agent Loop

session / systemPrompt / tools / agents / agentLoop / scope.

Who talks to whom

YoufollowupAgentctx.agentsSystemPrompthandbookAgentLoopheartbeatSessionjournalLLMctx.llmToolsctx.toolsShell / FShandsSubprocessrunnerSandboxfence

The house and its window

Host · Node

Inside the house

The passive webserver mailbox, apiproxy receptionist, and static glass. The Agent loop runs here.

Native capabilities are loopback-only. The Host puts __DSH_BOOT__ into HTML so the window knows which bricks to assemble.

Client · Browser

Inside the window

The browser starts another Loader, mounts immediately rows, and hands the DOM to ctx.uiRenderer.

Chat, sidebar, and settings are Slots. The window consumes session/event broadcasts; it never invents the story.