# @framers/agentos Documentation

AgentOS

Modular orchestration runtime for adaptive AI systems

npm GitHub stars Documentation

--- ## Documentation Index ### Getting Started - [**Getting Started Guide**](./getting-started/GETTING_STARTED.md) — Install, env setup, and 3 levels (1 line → 3 lines → 5 lines) - [**README**](../README.md) — Installation and quick start - [**High-Level API**](./getting-started/HIGH_LEVEL_API.md) — `generateText()`, `streamText()`, `generateImage()`, `generateVideo()`, `analyzeVideo()`, `generateMusic()`, `generateSFX()`, `performOCR()`, `agent()`, and `agency()` - [**Examples Cookbook**](./getting-started/EXAMPLES.md) — 17 worked examples and the runnable files under `examples/`, including QueryRouter host hooks and finalized agency streaming - [**CHANGELOG**](../CHANGELOG.md) — Version history and release notes ### Architecture & Core Concepts - [**Architecture Overview**](./architecture/ARCHITECTURE.md) — Complete system architecture and design principles ### Features & Capabilities #### Planning & Orchestration - [**Orchestration Guide**](./orchestration/ORCHESTRATION.md) — Graphs, workflows, missions, voice nodes, checkpointing, YAML authoring - [**Unified Orchestration Layer**](./orchestration/UNIFIED_ORCHESTRATION.md) — One runtime, three authoring APIs ([`AgentGraph`](https://github.com/framerslab/agentos/blob/master/src/orchestration/builders/AgentGraph.ts), `workflow()`, `mission()`) - [**AgentGraph**](./architecture/AGENT_GRAPH.md) — Full graph builder with typed nodes, conditional edges, and subgraphs - [**workflow() DSL**](./orchestration/WORKFLOW_DSL.md) — Deterministic DAG pipelines with branching and parallel joins - [**mission() API**](./orchestration/MISSION_API.md) — Goal-first orchestration driven by the PlanningEngine - [**Checkpointing**](./orchestration/CHECKPOINTING.md) — Resume, fork, replay, and memory consistency semantics - [**Planning Engine**](./orchestration/PLANNING_ENGINE.md) — Multi-step task planning and execution - [**Human-in-the-Loop**](./safety/HUMAN_IN_THE_LOOP.md) — Approval workflows and human oversight - [**Agent Communication**](./architecture/AGENT_COMMUNICATION.md) — Inter-agent messaging and coordination #### Safety & Security - [**Guardrails System**](./safety/GUARDRAILS_USAGE.md) — Two-phase guardrail dispatch, the six built-in packs (PII redaction, ML classifiers, topicality, code safety, grounding guard, content policy rewriter), and the folder-level file permissions that Wunderland adds on top of AgentOS - [**Safety Primitives**](./safety/SAFETY_PRIMITIVES.md) — Circuit breakers, cost guards, stuck detection, and tool execution guards #### Memory & Storage - [**Cognitive Memory**](./memory/COGNITIVE_MEMORY.md) — Personality-modulated memory with Ebbinghaus decay, Baddeley's working memory, spreading activation, HEXACO-driven encoding, and the consolidation loop - [**RAG Memory Configuration**](./memory/RAG_MEMORY_CONFIGURATION.md) — Vector storage and retrieval setup - [**SQL Storage Quickstart**](./getting-started/SQL_STORAGE_QUICKSTART.md) — Database integration guide - [**Client-Side Storage**](./memory/CLIENT_SIDE_STORAGE.md) — Browser-based persistence - [**Immutable Agents**](./safety/IMMUTABLE_AGENTS.md) — Sealing lifecycle, toolset pinning, secret rotation, and soft-forget - [**Provenance Guide**](./safety/PROVENANCE.md) — HashChain, ChainVerifier, BundleExporter, proof levels, external anchors - [**Provenance & Immutability**](./safety/PROVENANCE_IMMUTABILITY.md) — Sealed storage policy, signed ledger, and anchoring #### Text Processing & Search - [**Text Processing & Search**](./text/TEXT_OVERVIEW.md): the section's map, what loads in a browser, and the runnable examples - [**Text Processing Pipeline**](./text/TEXT_PROCESSING.md): tokenizers for prose and code, stop words, Porter stemming and the three preset pipelines - [**Text Statistics and Classification**](./text/TEXT_STATISTICS.md): `StatisticalUtilityAI`, `LLMUtilityAI` and `HybridUtilityAI` for sentences, n-grams, keywords, readability, similarity, language, summaries, sentiment and classification - [**Lexical and Hybrid Search**](./text/LEXICAL_AND_HYBRID_SEARCH.md): `LexicalIndex`, `BM25Index`, `FuzzyIndex`, `HybridSearcher` and reciprocal rank fusion - [**Chunking and Snippets**](./text/CHUNKING_AND_SNIPPETS.md): `SemanticChunker`, `chunkTurns`, `ChunkingEngine` and `snippetAround` - [**Reranking**](./text/RERANKING.md): `RerankerService` and the local, Cohere and LLM-judge rerankers #### AI & LLM - [**Structured Output**](./orchestration/STRUCTURED_OUTPUT.md) — JSON schema validation and structured generation - [**Streaming Semantics**](./architecture/STREAMING_SEMANTICS.md) — Raw live chunks vs finalized approved output across `textStream`, `fullStream`, `text`, and `finalTextStream` - [**Evaluation Guide**](./observability/EVALUATION.md) — Test cases, graders, LLM-as-judge, A/B testing, experiment tracking - [**Evaluation Framework**](./observability/EVALUATION_FRAMEWORK.md) — Testing, scoring, and quality assurance - [**GMI versus agent() Study**](./evaluation/GMI_VS_AGENT.md): the study that compares a GMI, `agent()` and a bare model loop on companion conversation; its page sets out the design and lists each report set once it is published - [**Query Router**](./QUERY_ROUTER.md) — Tiered query classification, retrieval routing, keyword fallback, and grounded answer generation - [**Image Generation Guide**](./features/IMAGE_GENERATION.md) — Provider-agnostic image generation across cloud and local backends - [**Capability Discovery Guide**](./extensions/DISCOVERY.md) — Three-tier semantic discovery, CAPABILITY.yaml, meta-tool - [**Capability Discovery**](./extensions/CAPABILITY_DISCOVERY.md) — Full architecture reference - [**Cost Optimization**](./safety/COST_OPTIMIZATION.md) — Token usage and API cost management - [**Cache Diagnostics**](./features/CACHE_DIAGNOSTICS.md) — Anthropic cache-miss root-causing: per-step `cache_miss_reason` via auto-threaded request comparison #### Extensions & Customization - [**RFC Extension Standards**](./extensions/RFC_EXTENSION_STANDARDS.md) — Extension development guidelines - [**Self-Extension: Forging and Self-Improvement**](./SELF_EXTENSION.md) — Forged tools, self-improvement tools and specialist spawning - [**Skills (SKILL.md)**](./extensions/SKILLS.md) — Prompt modules loaded from directories/registries #### Channels & Social - [**Channels Guide**](./features/CHANNELS.md) — Multi-channel adapters with setup for Discord, Slack, Telegram, Twitter, and WhatsApp - [**Social Posting Guide**](./features/SOCIAL_POSTING.md) — SocialPostManager, content adaptation, scheduling, analytics ### Platform & Infrastructure - [**Platform Support**](./architecture/PLATFORM_SUPPORT.md) — Supported environments and requirements - [**Observability (OpenTelemetry)**](./observability/OBSERVABILITY.md) — Tracing, metrics, and log correlation/export (opt-in) - [**Logging (Pino + OpenTelemetry)**](./observability/LOGGING.md) — Structured logs, trace correlation, and OTEL LogRecord export (opt-in) - [**API Key Rotation**](./KEY_ROTATION.md): comma-separated keys per provider as a pool: ordered or round-robin, failover when a key is revoked, unpaid or throttled, probes and persisted state - [**CLI Error Codes**](./features/CLI_ERROR_CODES.md): the codes a CLI subprocess bridge raises, and when the Claude Code and Gemini CLI providers raise each one ### Ecosystem - [**Ecosystem**](./architecture/ECOSYSTEM.md) — Related packages, extensions, and resources - [**Releasing**](./getting-started/RELEASING.md) — Automated release process ### API Reference - [**TypeDoc API**](https://docs.agentos.sh/api) — Auto-generated API documentation --- ## Quick Links | Resource | Link | | ----------- | ---------------------------------------------------------------------- | | Website | [agentos.sh](https://agentos.sh) | | GitHub | [framerslab/agentos](https://github.com/framerslab/agentos) | | npm | [@framers/agentos](https://www.npmjs.com/package/@framers/agentos) | | Issues | [GitHub Issues](https://github.com/framerslab/agentos/issues) | --- ## How to Use This Documentation 1. **New to AgentOS?** Start with the [README](../README.md) for installation and basic usage 2. **Understanding the system?** Read the [Architecture Overview](./architecture/ARCHITECTURE.md) 3. **Building features?** Check the relevant feature guide (Planning, HITL, Guardrails, etc.) 4. **API details?** Browse the [TypeDoc API Reference](https://docs.agentos.sh/api) 5. **Troubleshooting?** See [Platform Support](./architecture/PLATFORM_SUPPORT.md) ---

Built by Frame.dev · @framerslab