Scan your whole stack
Are you using @tencent-ai/agent-harness?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.0-snapshot-01050469ea1b3dc271ec53b77b0616cac24b7dff
@tencent-ai/agent-harness was last scanned on 24 Nov 2026 at version 0.2.0-snapshot-01050469ea1b3dc271ec53b77b0616cac24b7dff. Risk score 0 of 100. High-severity rules fired.
| Version | Published | Status |
|---|---|---|
| 0.2.0-snapshot-01050469ea1b3dc271ec53b77b0616cac24b7dff LATEST | 24 Nov 2026 | 2 rules fired |
| 0.2.0-snapshot-c2c1c868a2d7c5be5ce3a924cffeee27cba0c7bd | 24 Nov 2026 | 2 rules fired |
| 0.2.0-snapshot-6b7897ce847aa11c4a9936830cc5c99a8029a35d | 24 Nov 2026 | 2 rules fired |
| 0.2.0-snapshot-1afd22905c6efe307e4344a187b1fbf535354da6 | 24 Nov 2026 | Not shown |
| 0.2.0-snapshot-b6961807476839cb702108aeb99afafb41d9b987 | 24 Nov 2026 | Not shown |
Findings for v0.2.0-snapshot-01050469ea1b3dc271ec53b77b0616cac24b7dff. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
Several behaviors that are each common on their own, such as reading registry credentials, contacting a variable host or running shell commands, appear together in this package in a combination associated with attacks. The finding message lists the behaviors that were combined.
HIGHThe score describes 0.2.0-snapshot-01050469ea1b3dc271ec53b77b0616cac24b7dff; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
@tencent-ai/agent-harnessagent-harness 是一个独立的 JSON-RPC app-server。Host 只通过 public transport 与
Harness 通信;durable session 浏览以及 Skills、Plugin、Marketplace、Config 由一个共享、常驻的
user-scope dedicated Resource child 承载。它是独立 OS process:先以 inert stub 启动并完成
containment,再由该 stub 原地加载与普通 cbc --serve 相同的 Agent CLI headless bundle,
不派生另一层 CLI。Harness 当前只通过 parent-owned UDS(POSIX)或 Named Pipe(Windows)访问,
不监听 TCP。MCP Integration Layer 由 Harness 监管
一个 private Executor OS child;child 内使用公开的 @executor-js/sdk 与
@executor-js/plugin-mcp 创建唯一 createExecutor(),统一执行 ACP、USER 与 Plugin
session MCP。它不运行 Executor daemon、不依赖 executor.sh Cloud,也不产生 public MCP
Gateway。Public protocol 只提供 Codex-compatible、attachment-scoped 的 MCP status/tool
projection;它不是全局 server catalog、config/OAuth control plane 或 MCP listener。冷
session/resume 回放 durable history 并建立 dormant logical
attachment;第一次 prompt 或 session config operation 才启动 per-session Agent CLI OS
child。
一个 Harness process 不是一个固定 Agent。它负责 connection、transport、ACP v2
路由、session attachment 和 child 回收;Agent CLI 继续负责 Agent 执行以及
session/history 的持久化。Resource child 负责 durable/control-plane、Plugin inventory、
session-scoped enabledPlugins desired state,以及 USER/Plugin MCP 的 inert descriptor resolve;
它不连接 Plugin MCP。Harness 校验 Resource 回显的 exact session generation 后才交给 Executor
materialize。initialize 从 account / product entity capabilities
选择不可变的 connection profile;省略 entity branch 或其中的 mode 时默认 managed,只有
external authority 需要显式声明。external Account profile
不启动 managed Resource,managed Account profile 非阻塞地开始 secret-free
discovery,并在 initialized 后准备 Auth/Product runtime。Discovery 与其他 Resource operation
复用同一个 generation/startup single-flight,随后 child 跨请求常驻;initialize 只同步读取已提交
Product 的投影,绝不等待 Resource。planned
Product generation rotation 会 drain 已接纳 operation、协作关闭旧 child,
并在重新开放 admission 前验证新 generation。普通 hard crash 在 cleanup 可证明时由 Harness
本地 single-flight 恢复;已越过发送边界的非幂等 mutation 返回
outcomeUnknown: true,不会自动重放。crash-loop fuse 使用 backoff 和单一 half-open probe;
只有无法证明 cleanup 的 containment failure 才让整个 Harness fail-stop。
这里的多 session 编排只存在于 Harness 的 process supervisor:一个 executing session
对应一个独立 Agent CLI process,child 内始终只有一个 active/activating Agent session。
Harness 只依赖 package-owned CodeBuddy runtime、公开 Product schema subpath、canonical
ACP v2 和 Agent CLI 的 /api/v1、/api/v2 Resource HTTP contract,不 import Agent CLI 源码或内部 DI token,也不向 Agent CLI 注入另一套
session runtime。跨 session 的 catalog、credential 与 durable state 不在 Agent CLI process
内共享;唯一跨 child 复用的是 Harness 自己监管的 Resource control-plane 与 Executor MCP
catalog,其授权仍由各 attachment 的 lease 隔离。
Harness 主进程以 runner-neutral 的 HarnessProgram、环境 Layer 和一个进程级 Root Scope
组织生命周期;npm 主包与 standalone SFE 都只在最外层使用 Effect 的 NodeRuntime.runMain
适配各自的 signal/exit API。测试和 embedding adapter 可运行同一个 program。Promise 模块通过挂在 Root Scope 下的
FiberSet bridge 执行,关闭时会中断并等待在途 fiber,关闭后拒绝新任务;Resource、Product、
Auth、MCP 与 session attachment 不为 request/session/tool 调用另建 runtime。当前
@executor-js/*@1.5.40 仍要求 Effect 4.0.0-beta.59,因此
executor/ 下的 private @genie/agent-harness-executor 保持独立 build workspace 与
独立 OS process:主包通过 effect4 catalog 固定
4.0.0-rc.112,Executor 包通过 executorEffect catalog 保留 beta.59,仅以 JSON IPC
交互。Effect peer 不通过 vendor patch 放宽,也不会在同一个 process 混载两个 Effect runtime;tarball
通过 Vite 8/Rolldown 把 private Executor child 与其 beta runtime tree-shake 成一个 Node-compatible
ESM capsule;npm 主包由 Node private child 加载,平台 SFE 由同一 executable 的 Executor private role 加载,只保留 runtime built-ins 和
package-private JSON IPC contract 为外部模块。该 capsule 与
contract 作为 Harness 自有的 executor/lib 文件发布,不再伪装成 bundled npm dependency,
也不复制整棵 node_modules dependency closure。Effect 类型不出现在 public exports、ACP、MCP 或 public
Web Streams API 中。
Harness 主 npm 包的默认 application runtime 是 Node >=22.15 <=24,并按 NodeNext 编译为原生 ESM;
bin/agent-harness.js 直接加载随包的 Node application,因此不会依赖或探测 platform SFE。
该显式 ESM entry 不依赖不同 Node 版本对无扩展名
脚本的模块类型推断;public subpath 同时支持 ESM import 和该 Node 基线内建的同步
require(esm)。发布链共同上传主包与 7 个 Bun standalone executable 平台包,但主包暂不声明平台
optionalDependencies,因此不会自动下载或启用 SFE。platform 包仅供独立验证;测试者显式安装
同版本 platform 包后,可使用 @tencent-ai/agent-harness/binary 解析物理 SFE,或直接执行其
bin/agent-harness(Windows 为 .exe)。这不会改变主包 agent-harness 命令的 Node 语义。
docs/protocol.md:当前 exact contract、resource inventory、
Resource/dormant/Agent CLI child lifecycle、CodeBuddy IDE 随包 Plugin 接入示例、验证边界与后置范围。docs/acp-v2.md:Agent Harness public/private Agent core 的
canonical ACP v2 profile,包含 prompt、replay、identity、fork/rewind、
context_window Session Config Option、多 connection multiplexer 与 Subagent。../agent-cli/docs/acp-v2-ide-file-changes.md:
IDE 消费 canonical ACP v2 文件 Diff.patch、fileTree/diff zone 与安全 rollback 的接入契约。docs/acp-v1.md:仅用于 standalone Agent CLI 的 canonical
ACP v1 profile;Agent Harness public connection 不提供 v1 fallback。docs/errors.md:v1/v2 共用的错误分类、StopReason 映射、
willRetry live diagnostic 与 terminal/replay contract。docs/authentication-guide.md:调用方接入 managed 或
external auth 的最短路径、CodeBuddy IDE Account/Product 示例、refresh 与 reconnect checklist。docs/authentication.md:Auth mode、account state、generation fencing、
managed 恢复、external ownership 与 credential 安全不变量。docs/product.md:CodeBuddy/WorkBuddy Product 的真实机制、与 Auth
的提交边界,以及全局 Product state、workspace execution projection、generation 与 public resource
设计。docs/integration-layer.md:private Executor child
中单一 createExecutor() 的当前实现、Plugin/MCP ownership split、connection
reuse、故障恢复、MCP-over-ACP 边界和验证矩阵。docs/telemetry.md:Host-owned telemetry sink、wide event、
session/new 分段耗时以及日志/凭据安全边界。docs/proxy.md:Host 对齐 CODEBUDDY_CONFIG_DIR、通过
config/* CAS 写入 USER proxy settings、映射 UI 模式和处理运行时热更新的完整指南。docs/distribution.md:Node npm 主包、独立平台 SFE、IDE binary resolver、
GoReleaser checksum/签名与交付契约。bin/agent-harness.js:npm Node CLI 入口;默认使用 stdio,完整 listener
和认证参数见 agent-harness --help。未挂载资源不是 capability truth;schema、handler、registry 和 E2E 全部完成后才会 广告。
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.