Skip to main content

Cybertron · Thirteen Primes

Cybertron Agents — Multi-Agent Framework for Intelligent Tasks

Release CI Python License

十三位角色,一张可审计的任务图。

让 AI 协作从一句需求走到有边界的计划、真实工具回执、审查与可恢复的执行。

快速安装 · 工作方式 · 发布验收 · 完整文档


⚡ 60 秒安装

先安装 OpenCode V2 并配置可用模型。请选择一种渠道,在目标项目目录运行;安装器默认只预览,加入 --apply 才会写入。npm 命令请勿在本仓库目录运行,以免命中本地同名包。

npm · 不需要全局 cybertron 命令

npx -y cybertron-agents@0.5.0 init --dry-run --project .
npx -y cybertron-agents@0.5.0 init --apply --project .

npx 只运行这一次命令,不会在 ~/.local/bin、/usr/local/bin 或 nvm 的全局 bin 目录里留下 cybertron。因此后续命令也必须继续带 npx:

npx -y cybertron-agents@0.5.0 models setup
npx -y cybertron-agents@0.5.0 doctor --project .

如果你希望直接使用 cybertron,再显式全局安装:

npm install -g cybertron-agents@0.5.0
cybertron --version

若仍报 zsh: command not found: cybertron,检查 npm config get prefix,并把它的 bin 目录加入 PATH(nvm/asdf 用户通常是 nvm 的 versions/node/*/bin,不是 /usr/local/bin)。

pipx · Python 隔离安装

pipx install cybertron-agents==0.5.0
pipx ensurepath          # 把 pipx 的 bin 目录写入 shell PATH
exec zsh                 # 重新加载 PATH;或关闭并重开终端
cybertron init --dry-run --project .
cybertron init --apply --project .

pipx 默认把可执行文件放在 ~/.local/bin。如果该目录不在 zsh 的 PATH 中,即使安装成功也会出现 zsh: command not found: cybertron。可以先用绝对路径验证:

~/.local/bin/cybertron --version

或者临时用 pipx run:

pipx run --spec cybertron-agents==0.5.0 cybertron init --apply --project .

如果你用的是普通 pip install cybertron-agents(不推荐),CLI 可能落在 ~/Library/Python/3.x/bin 或 ~/.local/bin。无需处理 PATH 的兜底写法是:

python3 -m cybertron.installer init --apply --project .
python3 -m cybertron.installer models setup

GitHub Release · 可先审阅安装脚本

curl -fsSL https://github.com/zhiwenC125/Cybertron-agents/releases/download/v0.5.0/install.sh -o install.sh
bash install.sh --dry-run --project .
bash install.sh --apply --project .

Shell 安装器不会修改 PATH。安装结束后会打印启动器路径;后续 models / doctor 请使用该绝对路径:

./.opencode/bin/cybertron models setup --project .
./.opencode/bin/cybertron doctor --project .
# --global 安装时(默认路径;XDG_CONFIG_HOME 不同请替换):
"${XDG_CONFIG_HOME:-$HOME/.config}/opencode/bin/cybertron" models setup --global

想让所有项目都能选择 thirteenth / prima?将安装命令中的 --project . 换成 --global。三条渠道的包内容已经在 0.3.0 发布验收中核对。

启动第一项任务

opencode2 debug config
opencode2 debug agents

在 OpenCode 中用 Shift+Tab 选择 thirteenth 输入需求并完成计划;然后切换到 prima 执行 cy_plan_review 与派发。也可以在 Build 模式使用 /cybertron <需求> 进入规划入口。例如:

修复登录接口的超时问题,补充回归测试,并说明改动影响。

首次使用时按安装渠道运行模型配置命令:npm 用 npx -y cybertron-agents@0.5.0 models setup,pipx 用 cybertron models setup,Shell 安装用 ./.opencode/bin/cybertron models setup。随后通过 OpenCode 的认证流程提供模型密钥。Cybertron 的模型配置只保存模型 ID,不保存 API Key。模型配置说明 →


🧠 它如何工作

flowchart LR
    U[自然语言需求] --> P[thirteenth 提出任务图]
    P --> K[内核校验权限、依赖与写入范围]
    K --> R[prima 评审计划并派发]
    R --> A[OpenCode 原生子代理执行]
    A --> C[隔离检查与 L1 / L2 审查]
    C -->|通过| E[事件账本、指标与可复用模板]
    C -->|失败或越界| R[拒绝、回滚或局部返工]
    R --> K
能力 具体做法
动态规划 thirteenth 用 cy_plan 提交节点与依赖;内核依据十三角色注册表裁决能力和 write_scope,prima 用 cy_plan_review 评审后才派发。
有界执行 子代理拿到明确的写入范围;越界写入由 scope_guard 拒绝并回滚。
真实门禁 lint、构建、测试和审查保留工具回执;实际 diff 决定不可随意降低的风险门禁。
局部恢复 并发写范围锁、重试与 L2 拒绝后的受影响子图重跑,避免整条流程从头开始。
持续学习 完成的运行可沉淀模板;事件账本生成指标与两次运行对比。

v6 的 M0–M5 已完成验收;真实 OpenCode 宿主中的模板复用案例将节点数从 2 减到 1、人工提问从 1 次减到 0。查看里程碑证据 →

🪐 两个宿主

  • OpenCode V2:主集成路径。十三角色由 cybertron/registry.py 定义,配置由导出器生成;原生子代理卡片、权限、运行账本和工具回执共同构成执行证据。
  • DeepSeek Harness:随包分发的实验性 Cybertron preset。可用安装入口的 dsh path 找到 bundle(npm:npx -y cybertron-agents@0.5.0 dsh path;pipx:cybertron dsh path;Shell:./.opencode/bin/cybertron dsh path);preset 名称为 Cybertron;目前是单一 prima persona 与 cy_* 工具,尚未提供与 OpenCode 相同的十三角色子会话写范围绑定。查看限制 →

🛡️ 安全边界

  • 普通角色没有直接 Shell 测试、构建或静态检查权限;检查由固定配置的隔离运行器执行。
  • 真机上电、物理烧录和远程部署需明确目标、固件、擦写范围、回滚方案与人工审批;模拟审批不构成授权。
  • 飞书 Wiki 正文读写由 alpha-trion 通过受空间约束的网关执行,凭证仅从本机环境变量读取。配置指南 →

完整工程约束见 AGENTS.md。

🧪 从源码验证

python3 -m unittest discover -s tests -v
python3 -m cybertron.stage5_verify
python3 cybertron_primes_engine.py

阶段 5 隔离验证依赖 macOS sandbox-exec。当前 0.5.0 的发布说明见 v0.5.0 发布说明;0.4.0 的 DSH/访问模式变更见 v0.4.0 发布说明。

📚 继续探索

想了解 文档
安装路径、升级与卸载 安装与发布方案
v6 设计与门禁 动态任务图开发计划 · 里程碑证据
0.5.0 具体变更 发布说明 · GitHub Release
0.4.0 具体变更 发布说明 · GitHub Release
十三角色架构背景 架构白皮书

Plan with intent. Execute with boundaries. Verify with evidence.

MIT License · Cybertron v0.5.0

Metadata

Release files for cybertron-agents 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cybertron-agents 0.5.0
File Size Uploaded Provenance Actions
cybertron_agents-0.5.0.tar.gz 316.1 kB With provenance Details for cybertron_agents-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cybertron-agents 0.5.0
File Interpreter ABI Platform Actions
cybertron_agents-0.5.0-py3-none-any.whl Python 3 none any Details for cybertron_agents-0.5.0-py3-none-any.whl

Total release size: 640.1 kB

Release files / cybertron_agents-0.5.0.tar.gz

Download URL cybertron_agents-0.5.0.tar.gz
Size 316.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3ee57acd6d8cbafe8364606f8f76a992e2d014cdcab670795326e1cc18271839
BLAKE2b-256 checksum
How to use checksums
a04f95956720d8754fb720a2435d6b4c9d96134cd4f163972a6837ec50f3c5d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / cybertron_agents-0.5.0-py3-none-any.whl

Download URL cybertron_agents-0.5.0-py3-none-any.whl
Size 323.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35ae91a812226979d541d4e44fa064d28aae318b33026b6436e4c2a4f156df40
BLAKE2b-256 checksum
How to use checksums
edb4443a43172478b8792bf914d25424c2eec95f0321d5c82e94922cf937aaa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for cybertron-agents 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cybertron_agents-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page