ART (Agentic Reactive Triad) is a powerful, modular, and browser-first TypeScript framework for building sophisticated LLM-powered agents capable of complex reasoning, planning, and tool usage.
It provides the missing runtime for production-ready agentic systems, emphasizing Reliability, Observability, and Resilience.
ART is architected around three core nodes that ensure your agents are production-ready:
- Reactive Agent (Orchestration): The flagship
PESAgentuses a Plan-Execute-Synthesize workflow to handle complex, multi-step tasks with dynamic refinement. - Persistent State (Memory): Durable state management that persists across sessions, crashes, and human-in-the-loop pauses.
- Standardized UI (Observability): A reactive socket system that streams granular "thoughts," tool calls, and status updates directly to your frontend.
- Structured Planning: Decomposes user intent into a discrete
TodoListwith dependency mapping. - TAEF (Tool-Aware Execution Framework): Strictly validates tool usage to eliminate hallucinations and ensure protocol adherence.
- Dynamic Refinement: Self-correcting plans that adapt in real-time based on tool outputs.
- Synthesis Engine: Aggregates task results into rich responses with UI metadata and citations.
- HITL V2 (Human-in-the-Loop): Seamlessly pause execution for human approval with full state preservation and resumption.
- Crash Recovery: Automatic state hydration ensures agents resume exactly where they left off.
- A2A (Agent-to-Agent) Delegation: Coordinate complex workflows by delegating sub-tasks to specialized agents.
- Step Output Table: Persists all historical tool results for consistent cross-step data access.
- Multi-Provider Support: First-class support for Gemini (Thinking), Claude (Extended Thinking), GPT (Reasoning), DeepSeek, Groq, and local models via Ollama.
- MCP (Model Context Protocol): Dynamically discover and execute tools from any MCP-compliant server.
- Pluggable Storage: Integrated adapters for IndexedDB (Browser), Supabase (Backend), and In-Memory.
- OAuth & Auth Strategies: Built-in support for PKCE, Generic OAuth, and API key management.
npm install art-framework
# or
pnpm install art-frameworkimport { createArtInstance, PESAgent, OpenAIAdapter, CalculatorTool } from 'art-framework';
const art = await createArtInstance({
storage: { type: 'indexedDB', dbName: 'AgentDB' },
providers: {
availableProviders: [{ name: 'openai', adapter: OpenAIAdapter }],
},
tools: [new CalculatorTool()],
agentCore: PESAgent, // Default flagship agent
});
// Configure the thread (Where API keys live)
await art.stateManager.setThreadConfig('my-thread', {
providerConfig: {
providerName: 'openai',
modelId: 'gpt-4o',
adapterOptions: { apiKey: process.env.OPENAI_API_KEY },
},
enabledTools: ['CalculatorTool'],
});
// Process a request
const result = await art.process({
query: 'Calculate the compound interest for $1000 at 5% over 10 years.',
threadId: 'my-thread',
});
console.log(result.response.content);- Concepts Guide: Deep dive into the PES Agent and Reactive Triad.
- How-To Guides: Practical tutorials for HITL, MCP, and Custom UI.
- API Reference: Full technical documentation.
- Website: Marketing site & Live Demos.
Contributions are welcome! Please refer to the Contributing Guide.
ART Framework is released under the MIT License.

