Architecture
An overview of how SWAI components work together
SWAI is currently under active development
The platform is evolving rapidly, and components, APIs, and documentation may change frequently as we refine and enhance the system.
SWAI is designed with a modular architecture that allows different components to work together seamlessly while maintaining flexibility for creators.
This overview provides a high-level understanding of how the system is structured — and how it powers real-time logic inside CTZN.
Core Components
The SWAI platform consists of four primary modules that work in harmony to create intelligent, adaptive agent systems:
Cortex
The decision-making center that combines AI reasoning with state machines to create predictable yet intelligent behavior patterns.
Engram
The comprehensive memory system that manages short-term, long-term, and shared memory across agents and user experiences.
Synapse
The event processing system that enables real-time responses to on-chain behaviour, social inputs, and user interactions.
Kinesis
The action layer that executes skills and enables agents to interact with users, systems, and the world.
How They Work Together
The SWAI architecture follows an information flow that mimics human cognition:
- Perception - Events and inputs are processed through Synapse
- Memory - Information is stored and retrieved via Engram
- Decision - The Cortex evaluates options and determines actions
- Action - Kinesis executes the chosen actions in the environment
This cycle creates a continuous feedback loop that allows agents to learn, adapt, and evolve over time — which is core to how SWAI drives scoring and outcomes within CTZN.
Design Philosophy
SWAI’s architecture is built on three core principles:
Modularity
Components can be used independently or together, allowing for flexible implementation.
Scalability
The system is designed to handle everything from basic scoring logic to complex, multi-agent ecosystems.
Interoperability
SWAI works with existing AI models, blockchain systems, and web services through standardized interfaces.
In the following sections, we’ll dive deeper into each component and provide practical examples of how they can be implemented in your projects.