Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Taor

TypeScript AI Agent Runtime — TAOR Loop + 6 Pluggable Subsystems

Build TypeScript Lines

📖 完全使用手册:Taor_完全使用手册.docx — 从零搭建 AI Agent,10 步 + 3 个附录,事无巨细

Quick Start

export ANTHROPIC_API_KEY=sk-ant-...   # Get from https://console.anthropic.com/
npm install @taor/engine @taor/adapters @taor/tools
import { createHarness } from "@taor/engine"

const harness = createHarness({
  model: "claude-sonnet-4-6",
  tools: [],
})

harness.start("Hello, world!")
for await (const event of harness) {
  console.log(event.type)
}

Architecture

                  TAOR Loop (think → act → observe)
                              │
    ┌─────────┬─────────┬─────┼─────┬──────────┬──────────┐
    │         │         │     │     │          │          │
 Permission  Hooks  Subagent  │  Memory  Compressor  Adapter
  (4-tier) (13 pts) (inline/  │ (3-layer (5-layer)  (Anthropic)
                   process)   │  +3 BE)
                          Tools
                    (defineTool/Tool)

Packages

Package Description v0.2.0
@taor/engine Aggregation entry point (createHarness)
@taor/core TAOR loop, config, events, types
@taor/adapters LLM adapters (Anthropic + OpenAI + DeepSeek) ✅ NEW
@taor/tools Tool definition + registry
@taor/permission 4-tier (deny/boundary/allow/ask)
@taor/hooks 13-point lifecycle hooks
@taor/subagent Inline + process sub-agents
@taor/memory 3-layer memory (user/project/session)
@taor/compressor 5-layer context compression
@taor/cli CLI: harness run/config/tool ✅ NEW
@taor/telemetry OpenTelemetry hooks (OTLP/console) ✅ NEW
@taor/mcp MCP consumer — external tool servers ✅ NEW

v0.2.0

Feature Status
OpenAI adapter (GPT-5, GPT-4.1, GPT-4.1-mini, GPT-4.1-nano)
DeepSeek adapter (deepseek-chat, deepseek-reasoner)
CI green (Node 20/22/24)
Integration tests (45 tests)
npm publish readiness
API docs (14 docs)
OpenTelemetry tracing
Circuit breaker (3-state, decorator pattern)
MCP consumer support (stdio/SSE, two-step init)
Code reviewer example (3 tools + HITL + budget hook)
Tests (154 tests, 8 files)

Build

npm install
npm run build        # composite TypeScript build
npm run typecheck    # strict type checking
npm run test         # vitest smoke tests

License

MIT

About

TypeScript AI Agent Runtime

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages