@botbotgo/agent-harness 0.0.123 → 0.0.124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -14,7 +14,7 @@
14
14
  # @botbotgo/agent-harness
15
15
 
16
16
  <p align="center">
17
- <strong>The production runtime for multi-agent systems—built to ship, operate, and recover, not just execute.</strong>
17
+ <strong>The application runtime for multi-agent products with approvals, recovery, and operator control built in.</strong>
18
18
  </p>
19
19
 
20
20
  <p align="center">
@@ -29,9 +29,38 @@
29
29
  >
30
30
  </p>
31
31
 
32
+ ## What Problem We Solve
33
+
34
+ AI makes it much easier to generate agent logic, tool calls, and workflow code. The hard part moves to operations.
35
+
36
+ Once the demo works, the real software problem changes shape:
37
+
38
+ - more generated logic creates more execution paths to inspect, interrupt, retry, and recover
39
+ - natural-language entrypoints turn approvals and policy boundaries into runtime requirements
40
+ - backend, prompt, and tool changes happen faster, but product-facing behavior still needs one stable control surface
41
+ - MCP and provider-native tooling expand what agents can reach, which raises the bar for governance
42
+
43
+ Teams still need answers to the runtime questions that appear after that shift:
44
+
45
+ - how approvals are resolved and audited
46
+ - how runs, threads, and events stay inspectable
47
+ - how execution recovers after interruption, failure, or restart
48
+ - how routing, concurrency, and maintenance policy stay consistent
49
+ - how backend churn does not leak into the product model
50
+
51
+ `agent-harness` solves that layer. It keeps agent execution upstream while making the application runtime operable, recoverable, and governable.
52
+
53
+ Concretely, that means:
54
+
55
+ - a product-facing approval and operator surface instead of backend-specific middleware state
56
+ - persisted `runs`, `threads`, `approvals`, and `events` as stable runtime records
57
+ - restart-safe recovery and continuation as system-managed behavior
58
+ - YAML-owned routing, concurrency, maintenance, and recovery policy
59
+ - adapter isolation so backend replacement does not redefine the public runtime model
60
+
32
61
  ## Product Overview
33
62
 
34
- `@botbotgo/agent-harness` is a workspace-shaped application runtime for real agent products.
63
+ `@botbotgo/agent-harness` is a workspace-shaped application runtime for real multi-agent products.
35
64
 
36
65
  It is not a new agent framework. It is the runtime layer around LangChain v1 and DeepAgents that turns one workspace into one operable application runtime.
37
66
 
@@ -39,7 +68,7 @@ The point is simple:
39
68
 
40
69
  - Codex, Claude Code, and Cursor are products for people using agents
41
70
  - LangChain v1 and DeepAgents are frameworks for defining agent execution semantics
42
- - `agent-harness` is the runtime product layer for shipping, operating, recovering, and governing multi-agent applications
71
+ - `agent-harness` is the runtime product layer for operating, recovering, approving, and governing multi-agent applications
43
72
 
44
73
  The product boundary is strict:
45
74
 
@@ -61,6 +90,14 @@ The runtime provides:
61
90
  - local `resources/tools/` `tool({...})` modules and `resources/skills/` discovery
62
91
  - persisted threads, runs, approvals, events, queue state, and recovery metadata
63
92
 
93
+ In practice, the harness exists for the parts that are painful to rebuild inside every agent app:
94
+
95
+ - approval inboxes and human decision flow
96
+ - persisted runs, threads, and inspectable event history
97
+ - runtime-managed recovery after interrupts, failures, or process restart
98
+ - queueing, concurrency, maintenance, and operational policy
99
+ - stable runtime records that stay usable even if the backend changes
100
+
64
101
  The repository-owned default config layer is intentionally full-shaped. The shipped YAML keeps explicit defaults for the important runtime and agent knobs so teams can start from concrete config instead of reverse-engineering adapter behavior from source.
65
102
 
66
103
  The default rule is:
@@ -89,7 +126,7 @@ Recommended orchestration shape for long-running flows:
89
126
 
90
127
  ## Why This Exists
91
128
 
92
- Most agent demos stop at execution.
129
+ Most agent tooling stops at execution.
93
130
 
94
131
  Real products need a runtime that can answer harder questions:
95
132
 
@@ -103,9 +140,10 @@ Real products need a runtime that can answer harder questions:
103
140
 
104
141
  ## What Makes It Different
105
142
 
106
- - It treats `runs`, `threads`, `approvals`, `events`, and recovery as product concepts
143
+ - It treats `runs`, `threads`, `approvals`, `events`, and recovery as first-class product records
144
+ - It gives operators a runtime control surface instead of exposing raw backend internals
107
145
  - It keeps checkpoint resume system-managed instead of promoting checkpoint internals into the primary API
108
- - It lets YAML own assembly complexity while code keeps a tiny surface
146
+ - It lets YAML own assembly and operating policy while code keeps a tiny surface
109
147
  - It goes deep on runtime concerns that upstream libraries do not fully productize
110
148
 
111
149
  ## Quick Start
package/README.zh.md CHANGED
@@ -14,7 +14,7 @@
14
14
  # @botbotgo/agent-harness
15
15
 
16
16
  <p align="center">
17
- <strong>面向多 agent 生产落地的运行时:为上线、运维与恢复而设计,而不止步于执行。</strong>
17
+ <strong>面向多 agent 产品的应用运行时:内建审批、恢复与运维控制,而不只是执行。</strong>
18
18
  </p>
19
19
 
20
20
  <p align="center">
@@ -29,9 +29,38 @@
29
29
  >
30
30
  </p>
31
31
 
32
+ ## 我们解决什么问题
33
+
34
+ AI 让 agent 逻辑、工具调用和工作流代码更容易生成,真正变难的是运行时运维。
35
+
36
+ 当 demo 跑起来之后,真正的软件问题会换一种形状出现:
37
+
38
+ - 更多生成式逻辑,意味着更多要观测、打断、重试和恢复的执行路径
39
+ - 自然语言入口让审批与策略边界变成运行时要求,而不是事后补丁
40
+ - backend、prompt 和工具变化更快了,但面向产品的控制面仍然必须稳定
41
+ - MCP 与 provider 原生工具扩展了 agent 的可触达范围,也同步抬高了治理要求
42
+
43
+ 团队仍然要回答这些运行时问题:
44
+
45
+ - 审批怎么决策、怎么审计
46
+ - runs、threads、events 怎么稳定可查
47
+ - 执行被打断、失败或进程重启后怎么恢复
48
+ - 路由、并发和维护策略怎么保持一致
49
+ - 后端频繁变化时,怎么不让产品模型跟着漂移
50
+
51
+ `agent-harness` 解决的就是这一层。它把 agent 执行留在上游,同时把应用运行时做成可运维、可恢复、可治理的系统。
52
+
53
+ 具体来说,就是把这些能力沉到运行时里:
54
+
55
+ - 面向产品的审批与运维控制面,而不是 backend 专属的中间件状态
56
+ - 稳定持久化的 `runs`、`threads`、`approvals` 与 `events` 记录
57
+ - 由系统托管的重启恢复与中断续跑
58
+ - 由 YAML 持有的路由、并发、维护与恢复策略
59
+ - 通过适配器隔离 backend 变化,不让公共运行时模型漂移
60
+
32
61
  ## 产品概览
33
62
 
34
- `@botbotgo/agent-harness` 是面向真实 agent 产品的、工作区形态的应用运行时。
63
+ `@botbotgo/agent-harness` 是面向真实多 agent 产品的、工作区形态的应用运行时。
35
64
 
36
65
  它不是又一个 agent 框架,而是围绕 LangChain v1 与 DeepAgents 的运行时层:把一个工作区变成一套可运维的应用运行时。
37
66
 
@@ -39,7 +68,7 @@
39
68
 
40
69
  - Codex、Claude Code、Cursor 是「人用 agent」的产品
41
70
  - LangChain v1 与 DeepAgents 是定义 agent 执行语义的框架
42
- - `agent-harness` 是交付、运维、恢复与治理多 agent 应用的运行时产品层
71
+ - `agent-harness` 是负责运维、恢复、审批与治理多 agent 应用的运行时产品层
43
72
 
44
73
  产品边界是清晰的:
45
74
 
@@ -61,6 +90,14 @@
61
90
  - 本地 `resources/tools/` 中 `tool({...})` 工具模块与 `resources/skills/` 的发现
62
91
  - 持久化的线程、运行、审批、事件、队列状态与恢复元数据
63
92
 
93
+ 落到实际系统里,harness 主要解决那些每个 agent 应用都不想重复造一遍的运行时难题:
94
+
95
+ - 审批收件箱与人工决策流
96
+ - 持久化的 runs、threads 与可查询事件历史
97
+ - 中断、失败或进程重启后的运行时托管恢复
98
+ - 队列、并发、维护与运维策略
99
+ - 即使后端变更也保持稳定的运行时记录模型
100
+
64
101
  仓库自带的默认配置刻意做成「形状完整」。随仓库提供的 YAML 对重要的运行时与 agent 开关给出显式默认值,便于从具体配置起步,而不必从源码反推适配器行为。
65
102
 
66
103
  默认原则是:
@@ -89,7 +126,7 @@
89
126
 
90
127
  ## 为何需要它
91
128
 
92
- 多数 agent 演示停在「能跑」。
129
+ 多数 agent 工具停在「能跑」。
93
130
 
94
131
  真实产品需要能回答更难问题的运行时:
95
132
 
@@ -103,10 +140,11 @@
103
140
 
104
141
  ## 有何不同
105
142
 
106
- - 将 `runs`、`threads`、`approvals`、`events` 与恢复视为产品概念
143
+ - 将 `runs`、`threads`、`approvals`、`events` 与恢复视为一等产品记录
144
+ - 给运维侧提供运行时控制面,而不是暴露原始后端内部结构
107
145
  - 将 checkpoint 恢复作为系统管理的行为,而不是把 checkpoint 细节抬成主 API
108
- - 复杂装配交给 YAML,代码面保持极小
109
- - 在上游库未充分产品化的运行时时,做深做透
146
+ - 复杂装配与运行策略交给 YAML,代码面保持极小
147
+ - 在上游库未充分产品化的运行时问题上做深做透
110
148
 
111
149
  ## 快速开始
112
150
 
@@ -1 +1 @@
1
- export declare const AGENT_HARNESS_VERSION = "0.0.122";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.123";
@@ -1 +1 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.122";
1
+ export const AGENT_HARNESS_VERSION = "0.0.123";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.123",
3
+ "version": "0.0.124",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "type": "module",
6
6
  "packageManager": "npm@10.9.2",