Sessions

Session plugins record what happened in an agent run (service id session). You need one session plugin. You can wrap it with another.

PluginRole
DiskDefault local. JSONL while live, then JSON and markdown.
SQLRows on a named SQL schema. Worker-safe.
StreamIn-memory subscribe() wrap around another session.
MemoryIn-memory only. No SQL or filesystem.

Ids you will see

IdWho owns itMeaning
runIdyouOne prompt turn; use it to cancel
sessionIdyouYour session record
acpSessionIdthe agentThe agent’s own session id

ACP session/new receives this runtime’s MCP server once HTTP is listening (http://127.0.0.1:<port>/mcp). Buildautomaton prompt sessions use those tools so they can report completed work.