Skip to content

Open-source TypeScript AI agent framework

AgentOS is an open-source TypeScript AI agent framework for building production-ready autonomous agents with multi-agent orchestration, cognitive memory, multimodal RAG, AI guardrails, voice pipelines, and 14 LLM providers. A type-safe alternative to LangGraph, CrewAI, Mastra, and AutoGen.

記憶し、適応し、新しいツールを生み出す AI エージェントのためのオープンソース TypeScript ランタイム。フルランタイム上の各セッションは GMI(Generalized Mind Instance)として動き、独自のペルソナ、ムード、メモリを保ち、時間とともに自らの特性を調整できます。エージェントはタスクの途中で自ら関数を書き、ジャッジが承認します。固定のロスターでタスクを賄えないとき、マネージャーがスペシャリストを生成します。エビングハウスの忘却曲線と 7 スロットのワーキングメモリを備えた認知メモリ。LongMemEval-S で 85.6%。Apache 2.0。

See code examples
—GitHub スター
—フォーク
PII 編集ガードレールパック自社インフラでセルフホスト

Runtime agent spawning

Spawn an agent at runtime

A manager coordinates a researcher and a writer. When the task needs a role neither covers, the manager calls spawn_specialist, an LLM judge approves the new agent's spec, and the specialist joins the roster for the manager's next turn.

import { agency } from '@framers/agentos';

const research = agency({
  provider: 'openai',
  model: 'gpt-4o',
  strategy: 'hierarchical',
  instructions:
    'Coordinate the team to produce a thorough research report. ' +
    'If you need a capability neither the researcher nor the writer covers, ' +
    'call spawn_specialist to mint a new specialist for just this run.',
  agents: {
    researcher: { instructions: 'Find authoritative sources and pull verbatim quotes.' },
    writer: { instructions: 'Produce well-cited prose from the research brief.' },
  },
  emergent: {
    enabled: true,     // unlocks the spawn_specialist tool
    tier: 'session',   // spawned agents are discarded when generate() returns
    judge: true,       // EmergentAgentJudge reviews each spec before activation
    planner: { maxSpecialists: 3, requireJustification: true, maxJudgeCalls: 6 },
  },
  on: {
    emergentForge: (event) =>
      console.log(`[FORGE] spawned "${event.agentName}" approved=${event.approved}`),
  },
});

const result = await research.generate(
  'Survey the post-2023 RAG literature, including evaluation methodology, ' +
    'known limitations, and reproducibility challenges.',
);
console.log(result.text);
Condensed from examples/emergent-hierarchical-spawning.mjs. Run the full file with node in a built clone.One captured run →View source on GitHub →

AI エージェント・スウォーム・シミュレーションエンジン

シナリオを定義し、同じスタートから複数のタイムラインとして実行し、タイムラインの間で 1 つだけを変えます。変えるのは、リーダーのパーソナリティ、または過去のターンのイベントです。その 1 つの変化が異なる文明へと積み重なっていく様子を見られます。AgentOS 上に構築。

See AgentOS in action

Watch a live AgentOS agent handle a real workload end-to-end: tool use, memory recall, multi-step planning. Every clip is captured from a running runtime, no edits.

MIT LicensedOpen Source

AgentOS Workbench

A React + Vite dashboard you run on your own machine to inspect and debug AgentOS sessions. Watch streamed output on a session timeline, compose and replay turns, and run evaluations against your agents.

  • Session inspector for streamed text, tool calls and errors
  • Real-time testing and debugging tools
  • Views for agency strategies, plan checkpoints and RAG retrieval
View on GitHub

Clone the repo and follow the README's quick start; it opens at localhost:5175.

適応型AIエージェントを構築する準備はできていますか?

AgentOSで次世代インテリジェントシステムを構築する開発者に参加してください。