Beads
$ bd 社区开源 低风险Beads(bd)为 AI 编码 Agent 提供基于 Dolt 的依赖图任务追踪系统,帮助任务在上下文压缩与多 Agent 交接后依然保持连贯。支持 bd init --stealth、bd ready --claim、bd create -p -t --deps、bd show、bd update --status 与 bd close,并全面支持 --json。
brew install beads bd 专门围绕轻量 --json CLI 调用设计(bd ready --json、bd create --json),避免为任务管理消耗额外的 MCP Schema 上下文。
Agent 友好度体检单
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
专为 Agent 工作流打造,所有核心命令均支持 --json,提供依赖感知的 bd ready、原子 --claim 与无交互参数。
bd ready --json,bd create -p -t --deps --json,bd update --status --claim --json
仅在本地 .beads/ 存储状态,支持 --stealth 模式避免污染共享 Git 历史,并采用防冲突哈希 ID。
bd init --stealthlocal mode and hash-based collision-free IDs
支持 brew install beads、npm install -g @beads/bd、go install 与脚本在 macOS、Linux、Windows 安装。
- Homebrew, npm, Go, and binary installers
用可查询的依赖图替代脆弱的 Markdown 待办清单,跨上下文压缩保持完整记忆。
- Dolt-backed dependency graph +
bd readyunblocked-task filtering
由 gastownhall/beads 积极维护,采用 MIT 协议开源。
- Active
gastownhall/beadsrepo under MIT
GitHub README 与 beads.gascity.com 详细说明了工作流、依赖关系与 AGENTS.md 集成方式。
- Official docs at
beads.gascity.comand GitHub README
安全边界、鉴权与放权指南
将任务图状态保存在仓库本地 .beads/(Dolt 数据库),无需任何外部 API 凭据。
100% 免费且基于 MIT 协议开源。
# Beads (bd) Agent Rules - Always append `--json` on `bd ready`, `bd show`, `bd create`, `bd update`, and `bd close`. - Use `bd init --stealth` in shared repositories where `.beads/` should remain untracked locally.
Agent 高频安全命令配方
只读查询(安全推荐)
bd ready --json
查询依赖图中所有前置阻塞已解除的开放任务并输出 JSON。
bd show bd-a1b2 --json
打印指定任务的描述、状态、优先级及依赖关系 JSON。
受控写入与预演
bd create "Implement OAuth refresh" -p 1 -t task --deps blocks:bd-a1b2 --json
创建一个优先级为 1 并关联依赖关系的任务,返回新建任务的 JSON。
核心优势
- + 所有核心操作(
ready、show、create、update、close)均输出结构化--json。 - + 依赖感知的
bd ready可防止 Agent 误领仍被阻塞的任务。 - +
bd init --stealth让 Agent 记忆仅保留在本地,不会将.beads/提交至上游仓库。
注意事项与踩坑点
- ! 底层采用 Dolt 存储引擎,相比纯 Markdown 文件多一层
.beads/状态管理。 - ! 需在每个项目中先执行
bd init后才能使用任务命令。