This folder documents design decisions, tradeoffs, and rationale across the Agents SDK repository and its libraries. It covers software architecture, API design, visual/UI choices, and anything else where we made a deliberate decision worth recording.
The goal is to give contributors (and future-us) a quick way to understand why things are the way they are, without having to reverse-engineer intent from code or PR history.
| File | Scope |
|---|---|
| think.md | Think — chat agent base class, sessions, streaming, recovery, tools |
| think-durable-submissions.md | Think durable submissions — async programmatic turns, recovery, idempotency |
| visuals.md | UI component library choice, Kumo usage, custom patterns |
| readonly-connections.md | Readonly connection enforcement, storage, tradeoffs, and caveats |
| workspace.md | Workspace — hybrid SQLite+R2 filesystem, bash, symlinks |
| agent-tools.md | Agent tools — chat sub-agent orchestration, parent registry, replay |
| sub-agent-routing.md | Sub-agent routing as shipped — facets, nested URLs, registry, parent lookup |
| rfc-sub-agents.md | RFC: Sub-agents — child DOs via facets, typed stubs, mixin API |
| rfc-helper-sub-agent-orchestration.md | RFC: Agent tool orchestration — runAgentTool, agentTool, event forwarding |
| loopback.md | Loopback pattern — cross-boundary RPC for sub-agents and dynamic isolates |
| rfc-codex-harness-capability.md | RFC: static Codex Rust/Wasm engine composed as a Lifecycle capability |
| rfc-harness-model-provider-boundary.md | RFC: LanguageModelV4 for Codex and pi-ai providers for Pi in v1 |
| fibers.md | Fibers — runFiber/startFiber as a Lifecycle capability, recovery scan, the wake, facets |
| workflows.md | Workflows — runWorkflow and the instance record as a Lifecycle capability |
| chat-turn-core.md | The chat turn core — what agents/chat owns of a turn in AIChatAgent and Think, the differences settled, known gaps |
| test-coverage-matrix.md | Feature × test-layer coverage rollup, CI mapping, skipped-test debt, hygiene |
| rfc-pi-harness-example.md | RFC: pi-durable as an example-local Lifecycle capability |