AI Skill Hub 强烈推荐:响应式智能代理 是一款优质的MCP工具。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
响应式智能代理 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
响应式智能代理 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/tylerjrbuell/reactive-agents-ts
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"-------": {
"command": "npx",
"args": ["-y", "reactive-agents-ts"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 响应式智能代理 执行以下任务... Claude: [自动调用 响应式智能代理 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"_______": {
"command": "npx",
"args": ["-y", "reactive-agents-ts"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<img src="./apps/docs/src/assets/logo-light.svg" alt="Reactive Agents" width="280" />
Grouped by capability. Every layer is opt-in — call .with*() only for what you need.
The canonical composition path is a HarnessProfile preset — lean(), balanced(), or intelligent(). Presets compose the registry's default-on capability set in one line:
import { ReactiveAgents, HarnessProfile } from 'reactive-agents'
const agent = await ReactiveAgents.create()
.withName('research-agent')
.withProvider('anthropic')
.withProfile(HarnessProfile.balanced()) // memory + RI + verifier + strategy switching
.withTools() // built-in tools + MCP
.withMaxIterations(15)
.withBudget({ tokenLimit: 100_000 }) // canonical budget killswitch
.build()
Pick the preset that matches the workload:
- HarnessProfile.lean() — model + nothing else. Latency- and cost-sensitive paths; benchmark ablations. - HarnessProfile.balanced() — today's production defaults (memory + reactive intelligence + verifier + strategy switching). - HarnessProfile.intelligent() — balanced + skill persistence for cross-session compounding learning.
Override specific capabilities after the preset — order matters; later calls win. The individual .withX() methods are fully supported and compose cleanly with presets; reach for a preset when you want the whole default-on set in one line, or .compose(...) for a precise chokepoint.
const agent = await ReactiveAgents.create()
.withName('research-agent')
.withProvider('anthropic')
.withProfile(HarnessProfile.intelligent()) // cross-session skills
.withMemory({ tier: 'enhanced' }) // upgrade memory to vector embeddings
.withTools()
.withGateway({ // persistent autonomous harness
heartbeat: { intervalMs: 1_800_000, policy: 'adaptive' },
crons: [{ schedule: '0 9 * * MON', instruction: 'Weekly review' }],
policies: { dailyTokenBudget: 50_000 },
})
.compose((h) => h.before('act', logFn)) // canonical chokepoint composition
.build()
withStrictValidation(), withTimeout(), withLlmTimeout() (per-LLM-call timeout for local/Ollama providers — tolerate cold model loads without loosening the run-level timeout), withRetryPolicy(), withCacheTimeout(), withErrorHandler(), withFallbacks(), withLogging(), withHealthCheck(), withMinIterations(), withVerificationStep(), withOutputValidator(), withCustomTermination(), withProgressCheckpoint(), withTaskContext()defineTool typed tool authoring — Standard Schema input (Effect Schema / Zod / Valibot / ArkType) + a plain async handler with arg types inferred from the schema; malformed options (parameters/execute instead of input/handler) fail fast with a typed erroragent.registerTool() / agent.unregisterTool() at runtimeInstall and run your first TypeScript AI agent in under 60 seconds.
Recommended: Bun ≥1.0.0 — optimal performance with native SQLite, subprocess, and HTTP APIs. Node.js 22.5+ is now also supported via@reactive-agents/runtime-shim— same code, both runtimes. Install Bun:curl -fsSL https://bun.sh/install | bash
```bash
Define agents as JSON-serializable config objects. Save, share, and reconstruct agents without code:
import {
agentConfigToJSON,
agentConfigFromJSON,
ReactiveAgents,
} from 'reactive-agents'
// Builder → Config → JSON
const builder = ReactiveAgents.create()
.withName('researcher')
.withProvider('anthropic')
.withReasoning({ defaultStrategy: 'plan-execute-reflect' })
.withTools({ adaptive: true })
.withMemory({ tier: 'enhanced' })
const config = builder.toConfig()
const json = agentConfigToJSON(config)
// Save to file, database, or send over the wire
// JSON → Builder → Agent
const restored = await ReactiveAgents.fromJSON(json)
const agent = await restored.build()
const result = await agent.run('Research quantum computing advances')
ANTHROPIC_API_KEY=sk-ant-... # Anthropic Claude
OPENAI_API_KEY=sk-... # OpenAI GPT-4o
GOOGLE_API_KEY=... # Google Gemini
EMBEDDING_PROVIDER=openai # For vector memory
EMBEDDING_MODEL=text-embedding-3-small
LLM_DEFAULT_MODEL=claude-sonnet-4-6
Build agent pipelines with functional combinators:
import { agentFn, pipe, parallel, race } from 'reactive-agents'
// Create lazy agent functions
const researcher = agentFn({ name: 'researcher', provider: 'anthropic' }, (b) =>
b.withReasoning().withTools()
)
const summarizer = agentFn({ name: 'summarizer', provider: 'anthropic' })
// Sequential pipeline: research → summarize
const pipeline = pipe(researcher, summarizer)
const result = await pipeline('What are the latest AI breakthroughs?')
// Parallel fan-out: run multiple analyses concurrently
const multiAnalysis = parallel(
agentFn({ name: 'sentiment', provider: 'anthropic' }),
agentFn({ name: 'keywords', provider: 'anthropic' }),
agentFn({ name: 'summary', provider: 'anthropic' })
)
const combined = await multiAnalysis('Article text here...')
// combined.output contains labeled results from all 3 agents
// Race: fastest agent wins
const fastest = race(
agentFn({ name: 'claude', provider: 'anthropic' }),
agentFn({ name: 'gpt4', provider: 'openai' })
)
const winner = await fastest('Quick answer needed')
// Clean up
await pipeline.dispose()
await multiAnalysis.dispose()
await fastest.dispose()
rax init my-project --template full # Scaffold a project
rax create agent researcher --recipe researcher # Generate an agent from recipe
rax create agent my-agent --interactive # Interactive scaffolding (readline prompts)
rax run "Explain quantum computing" --provider anthropic # Run an agent
rax cortex # Cortex studio (after: bun add @reactive-agents/cortex)
bun cortex # Cortex API + Vite UI (source-repo contributors)
rax run "Task" --cortex --provider anthropic # Stream events to Cortex (.withCortex())
@reactive-agents/ui-core — headless, framework-agnostic core: versioned wire protocol, resumable stream client (cursor reconnect), run state machine, safe generative-UI trees, durable human-in-the-loop rails, and zero-token fixture testing. The engine the bindings share.@reactive-agents/react — React 18+ hooks + components: useRun, useResumableRun, useInteractions, useTaskInbox, useRunCost/useRunSteps, AgentSurface, AgentDevtools, and the useAgentStream/useAgent classics@reactive-agents/vue — Vue 3 composables with reactive refs@reactive-agents/svelte — Svelte 4/5 stores (createRun, createResumableRun, createInteractions, createAgentStream, …)ui-core and consume AgentStream.toSSE() + the durable endpoint helpers from Next.js, SvelteKit, Nuxt, or any SSE-capable server| Package | Description |
|---|---|
[@reactive-agents/core](packages/core) | EventBus pub/sub, AgentService lifecycle, TaskService state machine, canonical types |
[@reactive-agents/runtime](packages/runtime) | 12-phase ExecutionEngine, ReactiveAgentBuilder, createRuntime() layer composer |
[@reactive-agents/llm-provider](packages/llm-provider) | Unified LLM interface for Anthropic, OpenAI, Gemini, Ollama, LiteLLM, and Test providers |
[@reactive-agents/memory](packages/memory) | 4-layer memory (working, semantic, episodic, procedural) on bun:sqlite; ExperienceStore cross-agent learning; background consolidation + decay |
[@reactive-agents/reasoning](packages/reasoning) | 7 strategies (ReAct, Blueprint, Reflexion, Plan-Execute, ToT, Adaptive, Code-Action @experimental) with composable kernel architecture |
[@reactive-agents/tools](packages/tools) | Tool registry with sandboxed execution, MCP client, agent-as-tool adapter, dynamic sub-agent spawning |
[@reactive-agents/guardrails](packages/guardrails) | Pre-LLM safety: injection detection, PII filtering, toxicity blocking |
[@reactive-agents/verification](packages/verification) | Post-LLM quality: semantic entropy, fact decomposition, NLI hallucination detection |
[@reactive-agents/cost](packages/cost) | 27-signal complexity routing, per-execution budget enforcement, semantic cache |
[@reactive-agents/identity](packages/identity) | Ed25519 agent certificates, RBAC policies, delegation chains, audit logging |
[@reactive-agents/observability](packages/observability) | Distributed tracing (OTLP), MetricsCollector, structured logging, console + JSON exporters |
[@reactive-agents/interaction](packages/interaction) | 5 autonomy modes, checkpoint/resume, approval gates, preference learning |
[@reactive-agents/orchestration](packages/orchestration) | Multi-agent workflows: sequential, parallel, pipeline, map-reduce with A2A support |
[@reactive-agents/prompts](packages/prompts) | Version-controlled template engine with variable interpolation and prompt library |
[@reactive-agents/eval](packages/eval) | Evaluation framework: LLM-as-judge scoring, EvalStore persistence, comparison reports |
[@reactive-agents/a2a](packages/a2a) | A2A protocol: Agent Cards, JSON-RPC 2.0 server/client, SSE streaming |
[@reactive-agents/gateway](packages/gateway) | Persistent autonomous harness: adaptive heartbeats, cron scheduling, webhook ingestion, composable policy engine |
[@reactive-agents/testing](packages/testing) | Mock services (LLM, tools, EventBus), assertion helpers, deterministic test fixtures |
[@reactive-agents/benchmarks](packages/benchmarks) | Benchmark suite: 20 tasks x 5 tiers, overhead measurement, report generation |
[@reactive-agents/health](packages/health) | Health checks and readiness probes for production deployments |
[@reactive-agents/reactive-intelligence](packages/reactive-intelligence) | Metacognitive layer: entropy sensor (5 sources), reactive controller (early-stop, compression, strategy switch), learning engine (calibration, bandit, skill synthesis), telemetry client |
[@reactive-agents/ui-core](packages/ui-core) | Headless, dependency-free UI engine: versioned wire protocol, resumable stream client (cursor reconnect + backoff), run state machine, safe generative-UI trees (uiTreeSchema/reconcileUiTree), durable HITL rails (respondToInteraction/decideApproval), inbox fetch, and zero-token fixture testing — shared by all framework bindings |
[@reactive-agents/react](packages/react) | React 18+ hooks + components over ui-core: useRun, useResumableRun, useInteractions, useTaskInbox, useRunCost/useRunSteps, AgentSurface, AgentDevtools (+ useAgentStream/useAgent) |
[@reactive-agents/vue](packages/vue) | Vue 3 composables: useAgentStream, useAgent with reactive refs |
[@reactive-agents/svelte](packages/svelte) | Svelte 4/5 stores over ui-core: createRun, createResumableRun, createInteractions, createAgentStream, createAgent |
[@reactive-agents/observe](packages/observe) | Zero-config OpenTelemetry tracing — maps AgentStarted/Completed, LLMRequest*, and ToolCall* events to OpenInference-compliant OTLP spans |
[@reactive-agents/replay](packages/replay) | Deterministic trace replay — record any run to a snapshot file, re-run with different model/prompt without re-calling the LLM; supports strict/lenient mode and diffTraces |
[@reactive-agents/runtime-shim](packages/runtime-shim) | Cross-runtime adapter — lets the framework run on Node.js 22.5+ in addition to Bun; provides unified Database, spawn, serve, and file I/O primitives |
[create-reactive-agent](packages/create-reactive-agent) | Project scaffolder — bunx create-reactive-agent my-app generates a runnable agent project with template, provider, and package-manager selection |
Branch preview (not on main yet): feat/channels-package adds @reactive-agents/channels, runtime .withChannels(), and renames gateway channels → accessControl for sender policy vs chat mode. Summary: wiki/Research/Debriefs/2026-05-03-channels-phase1-development-debrief.md.
How Reactive Agents compares to other TypeScript agent frameworks on shipped, working features:
| Capability | Reactive Agents | LangChain JS | Vercel AI SDK | Mastra |
|---|---|---|---|---|
| Full type safety (Effect-TS) | Yes | -- | Partial | Partial |
| Composable layer architecture | 13 layers | -- | -- | -- |
| Reasoning strategies | 6 (+ @exp code-action) | Multiple | Partial | 1 |
| Model-adaptive context | 4 tiers | -- | -- | -- |
| Local model optimization | Yes | -- | -- | -- |
| Execution lifecycle hooks | 12 phases | Callbacks | Middleware | -- |
| Multi-agent orchestration | A2A + workflows | Yes | Partial | Yes |
| Token streaming | Yes | Yes | Yes | Yes |
| Production guardrails | Yes | -- | -- | -- |
| Cost tracking + budgets | Yes | -- | -- | -- |
| Persistent gateway | Yes | -- | -- | -- |
| Agent debrief + chat | Yes | -- | -- | -- |
| Metrics dashboard | Yes | LangSmith | -- | -- |
| Agent-as-data config | Yes | -- | -- | -- |
| Functional composition | Yes | Yes | -- | -- |
| Dynamic tool registration | Yes | Yes | -- | -- |
| Test suite | 7,190 tests | -- | -- | -- |
<sub>Reflects our understanding of each framework's first-party, shipped features as of 2026-06. -- means we found no first-party equivalent, not that none exists. Corrections welcome — open a PR.</sub>
reactive-agents-ts 是一个专为 TypeScript 设计的高性能 AI Agent 框架。它允许开发者通过流式、响应式的方式构建复杂的智能体应用,支持从简单的对话助手到具备复杂推理能力的自主 Agent。通过高度模块化的设计,开发者可以根据实际需求灵活组合功能,构建出既强大又轻量级的 AI 工作流。
本项目采用高度灵活的“按需引入”设计理念,所有功能层均为 opt-in 模式。你可以通过链式调用 `.with*()` 方法来按需定制 Agent 的能力,包括集成 Anthropic 等 Provider、启用 ReAct 推理循环、接入内置工具及 MCP 支持、配置持久化 Memory(支持 FTS5 搜索或向量嵌入),以及添加 Guardrails 安全护栏来防止注入攻击。
推荐使用 Bun (≥1.0.0) 进行开发,它在原生 SQLite、子进程和 HTTP API 方面具有最优性能。同时,本项目也已通过 `@reactive-agents/runtime-shim` 支持 Node.js 22.5+ 环境,确保同一套代码可以在不同运行时下无缝切换。你可以通过官方提供的 curl 命令快速安装 Bun 环境。
本项目支持在 60 秒内快速启动你的第一个 TypeScript AI Agent。你可以将其应用于多种场景:包括具备代码生成能力的自主工程 Agent、拥有可验证推理步骤的研究工作流、基于 cron jobs 和 webhooks 的定时后台 Agent,以及具备 RBAC 权限控制的企业级 Copilot。此外,它还支持混合本地/云端的 AI 部署模式。
本项目支持“Agent 即数据”的设计理念,允许将 Agent 定义为可 JSON 序列化的配置对象。通过 `agentConfigToJSON` 和 `agentConfigFromJSON` 工具,你可以实现 Agent 配置的保存、分享与无代码重建。同时,项目通过环境变量(如 ANTHROPIC_API_KEY, OPENAI_API_KEY 等)进行敏感信息管理,并支持自定义 LLM 模型与 Embedding Provider。
本项目提供强大的 Composition API,允许开发者使用函数式组合器(如 `agentFn`, `pipe`, `parallel`, `race`)来构建复杂的 Agent 流水线。通过这种方式,你可以将不同的 Agent 逻辑组合成延迟执行的函数,实现高度灵活的任务编排与并行处理能力。
针对前端集成,本项目提供了完善的生态包:`@reactive-agents/react` 提供 `useAgentStream` 等 Hooks,`@reactive-agents/vue` 支持 Vue 3 的响应式 Refs,`@reactive-agents/svelte` 则适配 Svelte 4/5 的 writable stores。所有前端包均能完美消费来自 Next.js、SvelteKit 或 Nuxt 等服务端通过 SSE (Server-Sent Events) 传输的 AgentStream 数据。
高质量的TypeScript AI代理框架,提供灵活的代理编排和观察
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,响应式智能代理 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | reactive-agents-ts |
| 原始描述 | 开源MCP工具:Composable TypeScript AI agent framework — Effect-TS type safety, 5 reasoning st。⭐11 · TypeScript |
| Topics | agent-frameworkai-agentstypescript |
| GitHub | https://github.com/tylerjrbuell/reactive-agents-ts |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-25 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端