Open-source TypeScript framework for AI agents with persistent cognitive memory, optional HEXACO personality, multi-agent orchestration and runtime tool creation. One interface covers 13 LLM providers.
Overview
AgentOS is an open-source TypeScript framework for building AI agents that remember past interactions, adapt over time and write their own tools. It offers a lightweight agent() helper with sessions and hooks, an agency() API for multi-agent teams, and a full runtime where each session is served by a Generalized Mind Instance with its own persona, mood, conversation history and reasoning trace.
Memory is a central feature. Cognitive memory uses Ebbinghaus-style decay and eight mechanisms, including reconsolidation, retrieval-induced forgetting and source-confidence decay. An optional HEXACO personality vector can shape the system prompt and scale how memories are encoded. Soul files let an agent's identity, style, hard limits and trait scores live in a workspace, with per-user memory that can be deleted.
Agents can forge tools at runtime. When no existing tool fits, the agent proposes a JavaScript function with input and output schemas and test cases. An LLM judge reviews the result, and an approved tool joins the session. Forged code runs in an in-process node:vm context by default, or in a separate QuickJS WebAssembly instance for each call. Forged tools can be exported as SKILL.md skills.
Multi-agent teams support seven strategies (sequential, parallel, debate, review-loop, hierarchical, graph, panel), and a manager can spawn specialists at runtime. The framework also covers a RAG pipeline with seven vector backends, guardrail packs, voice and telephony, 37 channel adapters, workflow and graph orchestration with checkpointing, and OpenTelemetry observability. A React-based workbench dashboard can be run locally to inspect and debug sessions.
Key features
- Persistent cognitive memory with decay
- Runtime tool forging with LLM judge
- Optional HEXACO personality
- 7 multi-agent orchestration strategies
- RAG pipeline with 7 vector backends
- Guardrail packs (PII, code safety, grounding)
- Voice and telephony support
- 37 channel adapters
Use cases
- Building long-running agents that remember users
- Multi-agent research and review workflows
- Agents that create tools mid-task
- Voice and chat bots across messaging platforms
- RAG-backed assistants with guardrails