npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nash-agents

v0.1.1

Published

Nash Agents: distributed autonomous agent execution with native sandboxes and verifiable task orchestration.

Readme

Nash Agents

English

Nash Agents 是一个基于 TypeScript 构建的分布式自主智能体执行平台,采用 Coordinator/Worker 主从协同架构,融合分布式记忆、上下文管理、自主任务规划与智能节点调度。系统能够根据任务目标自主决策、分解任务并选择合适的执行节点,通过原生操作系统沙箱保障执行安全,并提供可视化 Web 控制台。支持从单机部署起步,按需扩展 Linux、Windows Worker,实现跨节点协作、并行执行与动态任务编排。

核心能力

  • 分布式执行:Coordinator 负责目标状态、确定性调度、审批与结果核验;Worker 在本机执行工具,通过认证 WSS/A2A 通信。单个节点可同时承担 Coordinator 与 Worker 角色。
  • GoalRun、Graph 与证据:目标持久化为带尝试状态的 GoalRun。规划器产出单任务或 Graph/DAG,Scout 采集证据,Coverage 依据任务/尝试身份、节点、Artifact 摘要与证据指纹判定完成——模型文本回复不能作为执行完成的证据。
  • 多层安全:Security Monitor 与独立安全模型审查工具调用;确定性硬拦截不能被自动授权绕过;TaskSecurityGrant 绑定单一 node/task/run,必须在 Worker 确认后生效,管理员可手动撤销。
  • 原生沙箱:Linux 使用 Bubblewrap,Windows 使用 AppContainer/ACL/Job Object,macOS 使用 Seatbelt;后端缺失或失败时按策略失败关闭。
  • 持久状态与恢复:PostgreSQL 保存集群状态,SQLite 保存管理员与版本化配置。Worker Journal 以序列化事件和 ACK 支撑断连恢复;副作用未知的任务保持 outcome_unknown,不会自动重试。
  • 运维能力:Admission freeze/drain 以真实运行状态证明无在途工作后才停止服务;systemd 与 Windows Task Scheduler 托管服务;发布产物按摘要与运行进程身份校验;Web 控制台通过 SSE 展示真实状态。

0.1.0 已于 2026-11-01 正式发布:npm 包 · GitHub Release。发布验收覆盖 Linux x64 与 Windows x64 从公共 registry 的全新全局安装;真实模型端到端运行不在本次验收范围内。平台与协议范围以验证矩阵为准;源码具备某项能力不代表对应平台和外部服务已经验收通过。

环境要求

  • Node.js >=24.14.0 且 <25、npm、Git。
  • Linux:Debian/Ubuntu、C 编译器、Bubblewrap;系统内核或组织策略仍可能限制沙箱运行。
  • Windows:Windows 11 x64、PowerShell、Visual Studio 2022 Build Tools 的“使用 C++ 的桌面开发”和 Windows SDK。
  • macOS:系统原生 Seatbelt(/usr/bin/sandbox-exec)。
  • 支持所选协议和工具调用的模型服务,以及用户自己的 API 凭据。
  • 单 Coordinator 支持本地存储。生产持久化推荐 PostgreSQL;管理员和配置使用独立 SQLite 数据库。

从 npm 安装(v0.1.0)

需要 Node.js >=24.14.0 且 <25 与 npm。已发布的包仅随附 linux-x64 与 win32-x64 原生沙箱 helper。

# 安装与 Release 对应的固定版本
npm install -g [email protected]

# 或安装当前 latest 版本
npm install -g nash-agents

nash --version   # Nash Agents v0.1.0
# 1. 交互式初始化本节点(Coordinator+Worker、Coordinator 或 Worker)
nash init

# 2. 检查操作系统沙箱与内核隔离状态
nash doctor

# 3. 启动节点服务
nash start --background

# 4. 查看本地与集群状态
nash status
nash node list

远端 Worker:先在 Coordinator 生成一次性邀请(nash node invite),再在 Worker 执行:

nash init --role worker
nash node join
nash start --background

项目授权、重连与配对说明见 Worker 加入集群。

0.1.0 registry 包仅在 Linux x64 与 Windows x64 完成安装验收;macOS 与其他架构不在该验收范围内。请按文档提供的源码安装路径操作,并在目标机器上单独验证原生沙箱后再使用。

也可以通过 npx 使用固定版本直接初始化:

npx [email protected] init

从源码克隆与构建

源码路径适用于开发,或发布包未覆盖原生 helper 的平台。源码仓库已公开,可以直接使用 HTTPS 克隆,不需要私人访问令牌;已有 SSH 身份的机器仍可选择 SSH 克隆。

git clone https://github.com/NashAgents/nash-agents.git
# 已有本机 GitHub SSH 授权时的替代方式:
git -c '[email protected]:.insteadOf=https://github.com/' clone https://github.com/NashAgents/nash-agents.git
cd nash-agents

两条 clone 命令只执行其中一条。Linux 安装:

bash scripts/install.sh --install-system-deps --install-node
# Linux x64: make the optional local Node toolchain available in this shell.
export PATH="${XDG_DATA_HOME:-$HOME/.local/share}/nash-agents/toolchains/node-v24.14.0-linux-x64/bin:$PATH"

Windows PowerShell 安装:

powershell -NoProfile -File scripts/install.ps1 -InstallSystemDeps -InstallNode
$env:PATH = "$env:LOCALAPPDATA\NashAgents\toolchains\node-v24.14.0-win-x64;$env:PATH"

只有显式选项才允许安装系统依赖,过程中可能需要管理员权限。可选 Node 安装从官方站点下载并校验 SHA-256,保存在用户目录,完成后打印后续终端需要加入 PATH 的目录。脚本不会修改代理、结束既有服务或重建用户数据库。已具备依赖时省略两个安装选项。

手动构建方式:

npm ci
npm ci --prefix apps/web
# 仅 Linux:
npm run build:helper:linux
# 仅 Windows,替代 Linux helper:
# npm run build:helper:win32
npm run build:all

详见 Linux、Windows、macOS。

首次初始化与启动

从源码运行时,以下命令都在克隆目录中执行,不依赖全局 nash 命令。若通过 npm 安装,请使用上文的 nash 命令。

node dist/index.js init
node dist/index.js config validate
node dist/index.js doctor
node dist/index.js start --background

交互向导依次确认节点角色(默认 Coordinator + Worker)、授权工作区、监听/公布地址、可选 PostgreSQL、主模型、安全模型关系、安全策略和用户自己的管理员账号。密码及 API Key 通过受保护提示输入,不放进命令行参数。输入有误可取消重来;已有有效配置不会被静默覆盖。

省略 --background 时会在当前终端前台运行,查询状态或停止时另开终端。

打开 start 输出的地址;本地默认是 http://127.0.0.1:18443。端口 18443 不代表自动启用 HTTPS。跨不可信网络前,需要配置可信的 HTTPS/WSS 接入地址。

产品数据默认位于 ~/.nash-agents。可通过 NASH_HOME 改变位置,但后续每次命令都要使用同一设置,避免与旧 ~/.nash 工程混用。

node dist/index.js status
node dist/index.js stop

添加 Worker

每台 Worker 都独立克隆并构建正式仓库。在 Coordinator 生成一次性邀请:

node dist/index.js node invite

在 Worker 执行:

node dist/index.js init --role worker
node dist/index.js node join
node dist/index.js start --background

按提示输入 Coordinator 地址、节点名、授权工作区和邀请码。Worker 默认通过认证网关继承模型,不应复制 Coordinator 的模型 API Key。公布地址必须能从 Worker 访问;127.0.0.1 只适用于同机访问。

Worker 注册与撤销介绍项目授权、重连和常见配对错误。

执行第一个任务

使用初始化时创建的管理员登录。先在 Projects 添加明确授权的项目,在 Nodes 确认 Worker 在线,然后打开 Chat,从只读请求开始:

查看已授权项目的目录结构并解释主要模块,不修改文件,不访问网络。

检查任务的真实工具事件、执行 Worker、审批和最终结果。在 Graphs 查看依赖,在 Artifacts 核对产物。一次普通文本回答不能代替沙箱、多节点或模型工具调用验收。

模型与安全

每份模型配置可独立选择 Chat Completions、Responses 或 Anthropic Messages。安全模型可动态跟随主模型、复用同一 Provider 的不同模型,或独立配置。详见模型配置。

产品初始化默认使用受限模式:workspace-write、network: deny、approval: ask,同时开启 Security Monitor 与独立 Security LLM。完全访问(danger-full-access、network: allow、approval: auto-grant)属于显式选项:交互向导会展示风险并要求确认,非交互产品初始化必须同时提供这三个值并设置 confirmFullAccess: true。初始化后在 Web → Security 修改产品安全配置;开发者 REPL 的首次建议不改变产品默认值。auto-grant 表示安全审查通过后执行,而不是跳过检查:确定性硬拦截永不可审批,安全模型不可用时失败关闭。完全访问会放弃完整文件系统隔离保证,请自行确认目标目录。详见安全策略。

运维与升级

参阅 Web 配置、故障排查、备份与恢复、升级。升级前备份完整产品目录及外部 PostgreSQL,选择已审核的 Git 提交,重新构建、校验再启动。重新安装不能代替数据迁移。

通过 npm 安装时,先完成备份,再安装已审核的发布版本(例如 npm install -g nash-agents@<version>),随后执行 nash config validate、nash doctor 与 nash start --background。nash upgrade --apply 仅支持源码 Git 工作区。

架构、演示与验证

文档与开发

npm run typecheck
npm run typecheck:web
npm test
npm run build:all

实际界面截图将在正式运行验证后补充。不会将模拟截图或虚构节点状态当成安装证据。

采用 Apache-2.0 许可证。第三方组件及其许可证见 THIRD_PARTY_NOTICES.md;平台与协议兼容范围见验证矩阵。