Add comprehensive documentation including: - CLAUDE.md for build instructions and environment setup - project-map.md for directory structure and key file overview - docs/reference/tools-api.md for detailed tools API and architecture - session-log.md for tracking development decisions - updates to plugin tool injection documentation regarding security risks |
||
|---|---|---|
| .. | ||
| agent-refactor | ||
| hooks | ||
| README.md | ||
| routing-system.md | ||
| routing-system.zh.md | ||
| runtime-events.md | ||
| runtime-events.zh.md | ||
| session-system.md | ||
| session-system.zh.md | ||
| steering.md | ||
| subturn.md | ||
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)
- Runtime Events: runtime event envelope, centralized event logging, filters, and examples. (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/.