Expand description
Core infrastructure — config, session, auth, logging, error types, protocol.
Modules§
- auth
- OAuth 2.0 Authorization Code + PKCE flow for Anthropic (Claude Pro/Max).
- chain
- Chain pointer management — named bookmarks that auto-advance on compaction.
- compaction
- Task 30 — typed compaction summary provenance (spec §9.3).
- config
- disclosure
- Task 34 — per-record/event disclosure classes (spec §9.7).
- error
- logging
- models
- Curated list of Claude models known to work with this CLI. Centralized so the settings dropdown, defaults, and subagent hints agree.
- private_
fs - Private filesystem helpers for sensitive application state.
- protocol
- reasoning
- Typed named reasoning level — single source of truth across providers.
- retention
- Task 34 — unified retention (spec §9.7): one sweep across sessions (including compaction parents), memory records, derived memory indexes, traces, and logs, with max-age and disk budgets and headless inspect/export/forget operations.
- rpc_
dispatch - Pure helper functions for the
synaps rpccommand dispatcher. - rpc_
protocol - RPC protocol types for the
synaps-bridgeparent↔child IPC channel. - session
- session_
index - session_
journal - Task 35 — opt-in session journal + periodic atomic snapshots (spec §9.8; decision record: docs/decisions/T35-session-journal-opt-in.md).
- shell_
config - Shell session configuration — parsed from ~/.synaps-cli/config shell.* keys.
Lives in
coreso thatcore::configcan embed it without a back-edge intotools. - stream_
types - Core streaming event types shared across agent-core (rpc_dispatch) and
the engine layer (runtime, engine). Defined here so
agent-coreis a clean leaf with no upward dependencies into the engine layer. - watcher_
types