octos-org/octos
Octos - Embeddable Agent Runtime
What it solves
Octos is a reusable "engine" (kernel) for building applications powered by AI agents. Instead of each app reinventing the machinery that runs an agent — managing conversation context, memory, tools, skills, workflows, and coordination between agents — developers embed Octos and get that machinery out of the box. The application keeps its own interface and product workflow; Octos owns agent execution and runtime state.
How it works
Octos is written in Rust and can be embedded as a library (composable crates) or hosted as a runtime behind OUP (Octos UI Protocol), a JSON-RPC 2.0 interface that carries commands into the kernel and responses/events back to clients. Clients connect over WebSocket or newline-delimited stdio. The runtime owns conversation history, execution state, compaction, permissions, and committed results; clients render or act on that state through the protocol.
The kernel provides: context management with compaction (LLM summarization or heuristics), persistent memory with hybrid keyword + vector retrieval, tools with permission profiles and approval decision points, skills and plugins, workflows with parallel workers and validation, sub-agents and independent peers, goals/loops/monitors for multi-turn work, and model provider adapters with retry, failover, and adaptive routing. Another agent (Codex, Claude Code, or a custom agent) can drive Octos by exposing OUP requests as callable tools.
Who it's for
Developers building coding applications, agent-powered desktop apps, research services, workflow engines, or fleets of cooperating agents. It is not for end users — everyday coding workflows belong in client applications built on the kernel, such as Octoscode (terminal client) and Octoscode Web (browser client), which provision and connect to an Octos runtime.
Highlights
- Reusable kernel with a programmable protocol boundary (OUP)
- Written in Rust; embed as crates or host behind OUP
- Bindings for C ABI, Python, Swift/Kotlin, and WASM types for browser clients
- Context management with compaction (LLM summarization or heuristics)
- Persistent memory with hybrid keyword + vector retrieval
- Durable sessions with replay, fork, and rollback
- Tools with permission profiles, approvals, and human-input decision points
- Skills and plugins for domain-specific behavior
- Workflows with parallel workers, validation, and retained artifacts
- Sub-agents and independent peers with separate sessions and worktrees
- Goals, loops, and monitors for work spanning multiple turns
- Model provider adapters with retry, failover, and adaptive routing
- Controllable from another agent (Codex, Claude Code) via OUP tools
Related
- Project
- Project
- Project
- Project
- Project