JSON Event Stream Mode
Event Types
Events are defined inAgentSessionEvent:
queue_update emits the full pending steering and follow-up queues whenever they change. session_info_changed, model_changed, and thinking_level_changed report interactive session metadata changes. compaction_start and compaction_end cover both manual and automatic compaction.
Base events come from AgentEvent in @earendil-works/pi-agent-core (installed as an Atomic dependency):
Message Types
Base messages come from@earendil-works/pi-ai (installed as an Atomic dependency):
UserMessageAssistantMessageToolResultMessage
packages/coding-agent/src/core/messages.ts:
BashExecutionMessage(line 29)CustomMessage(line 46)BranchSummaryMessage(line 55)CompactionSummaryMessage(line 62)