mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
e613258fa5
Emit gateway.start, gateway.ready, and gateway.shutdown on the shared runtime event bus, while keeping reload events on the same helper path. Update subturn architecture docs to refer to runtime event kinds instead of the removed agent EventBus names. Validation: GOCACHE=/tmp/picoclaw-go-cache go test ./pkg/gateway ./pkg/events; GOCACHE=/tmp/picoclaw-go-cache go test ./pkg/bus ./pkg/channels ./pkg/mcp ./pkg/tools/integration ./pkg/events ./pkg/gateway; make lint
Architecture
Internal architecture notes for major runtime mechanisms and subsystem design.
- Steering: injecting messages into a running agent loop between tool calls.
- SubTurn Mechanism: sub-agent coordination, concurrency control, and lifecycle handling.
- Session System: session scope allocation, JSONL persistence, alias compatibility, and migration. (ZH)
- Routing System: agent dispatch, session policy selection, and light/heavy model routing. (ZH)
- Hook System Guide: current hook architecture and protocol details.
- Agent Refactor: notes and checkpoints for the agent refactor work.
For proposal-style or exploratory docs, also see ../design/.