Skip to main content

Module core

Module core 

Source
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 rpc command dispatcher.
rpc_protocol
RPC protocol types for the synaps-bridge parent↔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 core so that core::config can embed it without a back-edge into tools.
stream_types
Core streaming event types shared across agent-core (rpc_dispatch) and the engine layer (runtime, engine). Defined here so agent-core is a clean leaf with no upward dependencies into the engine layer.
watcher_types