@backendkit-labs/orchestrator-agent

中文文档
0.7.2发布于 2026/10/27MITTypeScriptES Module近 30 天下载 2560

Config-driven orchestration agent — decomposes tasks and coordinates specialist agents via shared vault and configurable LLM providers.

原始使用文档
文档目录8 节
  1. What it does
  2. Installation
  3. Quick start (5 minutes)
  4. Feature overview
  5. MCP Tools
  6. Documentation
  7. Data directory
  8. License

@backendkit-labs/orchestrator-agent

Config-driven multi-agent orchestration for enterprise workflows. Decomposes natural language tasks into sub-tasks, coordinates specialist agents via a shared knowledge vault, and enforces human approval gates — with full audit trail.

What it does

  • Plans: decomposes a task into a dependency-ordered plan (static flow or LLM-generated)
  • Executes: runs steps in parallel when dependencies allow, each delegated to a specialist agent
  • Gates: pauses for human approval at critical steps, either by config or by active policy rules
  • Persists: every run is saved to disk (or Redis) — survives restarts, resumes after gate approval
  • Learns: enterprise reflection monitors gate outcomes and promotes recurring failure patterns into deterministic policy rules
  • Remembers: completed runs are auto-distilled into the knowledge vault; specialist agents receive episodic context from past successful runs on similar tasks

Installation

npm install -g @backendkit-labs/orchestrator-agent
# or as a local dep in a monorepo
npm install @backendkit-labs/orchestrator-agent

Quick start (5 minutes)

1. Create orchestrator.yaml

version: 1

orchestrator:
  name: "My Orchestrator"
  provider: deepseek

providers:
  deepseek:
    api_key: ${DEEPSEEK_API_KEY}
    base_url: https://api.deepseek.com/v1
    model: deepseek-chat

agents:
  - id: analyst
    name: Data Analyst
    description: Analyzes data and produces reports
    capabilities: [analysis, reporting, metrics]
    provider: deepseek

  - id: writer
    name: Technical Writer
    description: Writes documents and summaries
    capabilities: [writing, documentation, summaries]
    provider: deepseek

2. Create .env

DEEPSEEK_API_KEY=sk-...

3. Wire into Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "orchestrator": {
      "command": "npx",
      "args": ["-y", "@backendkit-labs/orchestrator-agent"],
      "env": {
        "DEEPSEEK_API_KEY": "sk-..."
      }
    }
  }
}

4. Run a task (in Claude Desktop):

orchestrator_run
  config_path: /path/to/orchestrator.yaml
  task: "Analyze Q1 sales data and write an executive summary"

Feature overview

FeatureDescription
Dynamic planningLLM decomposes any task into a dependency-ordered plan
Static flowsPre-defined YAML workflows triggered by regex or flow_id
Parallel executionIndependent steps run concurrently (Promise.all)
Human gatesSteps pause for approval — configurable per-agent or per-step
Policy rules (Cable 2)Active rules automatically gate matching steps — no LLM involved
LanceDB RAGIncremental vault indexing with ANN search, fast at scale
Redis + BullMQDistributed execution across worker processes for production
HTTP triggerREST endpoint for n8n / external system integration
Enterprise reflectionMAPE-K: monitors outcomes → promotes patterns → enforces rules
Run consolidationCompleted runs auto-distilled by LLM into vault — episodic→semantic loop
Cross-run episodic memoryAgents receive past successful outputs for similar tasks as context
Forgetting curveEpisodic memory prunes by relevance (recency × recall frequency), not just age

MCP Tools

ToolDescription
orchestrator_runStart a task — returns runId immediately
orchestrator_statusPoll status by runId
orchestrator_approveApprove or reject a waiting gate
orchestrator_list_runsList all persisted runs
orchestrator_list_agentsShow configured agents
orchestrator_reflectView pending promotions, active rules, demotion candidates
orchestrator_reflect_promoteApprove or reject a pattern promotion to policy rule
orchestrator_reflect_demoteDemote a policy rule with audit trail

Documentation

Data directory

By default, run state and RAG index live in .orchestrator/ adjacent to your orchestrator.yaml:

.orchestrator/
  runs/           ← JSON run files (one per run)
  rag-lance/      ← LanceDB vector index

Override with ORCHESTRATOR_DATA_DIR env var or data_dir in the YAML.

License

MIT

版本与发布记录

@backendkit-labs/orchestrator-agent 共发布 25 个版本,首次发布于 2026/06/14;过去 12 个月发布了 25 个版本。

版本发布日期距今
0.7.2latest2026/10/2711 天前
0.7.12026/10/2712 天前
0.7.02026/10/2712 天前
0.6.22026/10/2612 天前
0.6.12026/10/2612 天前
0.6.02026/10/2514 天前

关于 @backendkit-labs/orchestrator-agent 的常见问题

@backendkit-labs/orchestrator-agent 是什么?

Config-driven orchestration agent — decomposes tasks and coordinates specialist agents via shared vault and configurable LLM providers.

如何安装 @backendkit-labs/orchestrator-agent?

在项目目录运行 npm install @backendkit-labs/orchestrator-agent,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 orchestrator-agent、orchestrator-worker,可以用 npx orchestrator-agent 直接运行。

@backendkit-labs/orchestrator-agent 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@backendkit-labs/orchestrator-agent 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@backendkit-labs/orchestrator-agent 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@backendkit-labs/orchestrator-agent 可以商用吗?

@backendkit-labs/orchestrator-agent 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@backendkit-labs/orchestrator-agent 的下载量有多少?

根据 npm 官方下载统计,@backendkit-labs/orchestrator-agent 在 2026/10/08 – 2026/11/06 这 30 天内被下载 2,560 次,日均约 85 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@backendkit-labs/orchestrator-agent 还在维护吗?

最新版本 0.7.2 发布于 2026/10/27(11 天前);至今共发布 25 个版本,其中过去 12 个月发布了 25 个;首次发布于 2026/06/14。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。