
Continuously Learning Agentic Realtime Knowledgebase OSalways on. always learning. ClarkOS is a TypeScript-first agent framework built on Convex serverless infrastructure. It provides the architecture for agents that operate continuously, maintain persistent memory, and evolve through autonomous tick cycles.
Live Demo
See CLARK in action
GitHub
View the source
X / Twitter
Follow updates
SDK vs CLARK Demo
This documentation covers the ClarkOS SDK - the foundation for building autonomous agents. The live demo at clark.wiki runs CLARK, a full implementation with additional features.Framework Comparison
Architecture Overview
ClarkOS implements a generative architecture where agents operate on continuous tick cycles independent of external interaction.Continuous Operation
Agents execute on configurable tick intervals (default 5 minutes). Each tick:- Loads current state and relevant memory context
- Processes through the configured LLM
- Updates internal state (mood, health, routine awareness)
- Stores new memories with embeddings and metadata
- Executes plugin hooks
Memory Architecture
Five memory types model different aspects of cognition:- Episodic - Specific events and experiences (0.92 dedup threshold)
- Semantic - Facts, concepts, learned information (0.95)
- Emotional - Affective associations with topics and entities (0.88)
- Procedural - Learned patterns, triggers, and responses (0.97)
- Reflection - Metacognitive insights about the agent’s own state (0.90)
Terminal UI
The SDK includes a React Ink-based terminal UI for monitoring your agent:Technical Stack
- Runtime: Node.js 18+ with TypeScript
- Backend: Convex serverless (real-time subscriptions, transactional mutations)
- Embeddings: Google Gemini (free tier) or OpenAI
- LLM: OpenRouter, OpenAI, Anthropic, or custom
- UI: React Ink (terminal-based)
- Testing: Jest (179 tests)
Quick Start
Documentation
Quickstart
Deploy your first agent in 5 minutes
Core Concepts
Understand the architecture
Memory System
Multi-layered cognitive memory
Build Plugins
Extend your agent
Community
GitHub
Star and contribute
X / Twitter
Follow @clarkwiki