08 · 7 core services

The plugin tree

Seven core pieces hold the system up, and one of them is the agent loop.

Every piece claims a stable name in the shared context, and the others look it up by that name.

PieceWhat it doesKey
Session logRecords everything that happensctx.sessions
Prompt assemblerBuilds what the model reads at the start of each requestctx.systemPrompt
Tool registryHolds what the model can use and runs it with guardsctx.tools
Agent definitionDescribes what an agent isctx.agents
Agent loopDrives the work forwardctx.agentLoop
Model adapterTranslates between the internal vocabulary and each provider APIctx.llm
Per-agent loggingProvides traces scoped to an agentno key
That list is the backbone, not the inventory.

There are dedicated pieces for files, terminals, language servers, web access, subagents, background tasks, context compaction and quite a few more.

Technical detail optional

The reference documentation publishes one page per subsystem, with signatures extracted from the code and checked in continuous integration. The seventh piece provides agent-scoped logging and claims no context key.