SuperX Code Architecture

SuperX Code is built on an effect-based core. The architecture separates durable session coordination from provider-facing execution. The session drain coalesces prompt wakeups and same-session resumes. Different sessions run concurrently without sharing ownership.

Session Execution

The process-local drain coalesces advisory wakes. A drain has no durable identity or transcript boundary. The coordinator joins explicit resumes.

Context Source Production

Sources observe stable domains: environment, ambient instructions, editor selection. The registry binds built-ins to named keys, avoiding unstable references.

Durable Prompts

User inputs promote into durable typed prompts before scheduling advisory execution wakes. Any promotion resets the agent's provider-turn allowance. Queued inputs promote at safe boundaries.

Provider Routing

The router evaluates derived signals (reasoning, coding, vision, file count) and selects providers from the configured catalog. Deprecated or unavailable routes fall back safely.

Next: Commands