Skip to main content

Cybertron · Thirteen Primes

Cybertron Agents — Multi-Agent Framework for Intelligent Tasks

Release CI Python License

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

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

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


⚡ 60 秒安装

先安装 OpenCode V2 并配置可用模型。0.6.0 默认全局安装:13 个角色、/cybertron 命令、插件和 Python 运行时写入 ~/.config/opencode,所有项目共用;每个项目的 run 账本、模型覆盖和源码写入仍落在项目目录。安装器默认只预览,加入 --apply 才写入。

npm · 不需要全局 cybertron 命令

npx -y cybertron-agents@0.6.0 init --dry-run
npx -y cybertron-agents@0.6.0 init --apply
npx -y cybertron-agents@0.6.0 models setup
npx -y cybertron-agents@0.6.0 doctor --global

npx 只运行一次,不会留下全局 cybertron 命令;后续命令继续带 npx 即可。若希望直接使用 cybertron:

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

若报 zsh: command not found: cybertron,把 npm config get prefix 下的 bin 加入 PATH。

pipx · Python 隔离安装

pipx install cybertron-agents==0.6.0
pipx ensurepath
exec zsh
cybertron init --apply
cybertron models setup
cybertron doctor --global

pipx 默认把可执行文件放在 ~/.local/bin;不在 PATH 时先用 ~/.local/bin/cybertron 验证。

GitHub Release · 可先审阅安装脚本

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

Shell 安装器不会修改 PATH。安装结束后使用打印出的启动器路径:

"${XDG_CONFIG_HOME:-$HOME/.config}/opencode/bin/cybertron" models setup
"${XDG_CONFIG_HOME:-$HOME/.config}/opencode/bin/cybertron" doctor --global

默认全局,项目只放运行产物。 只有需要项目级角色权限或完全隔离的插件版本时,才显式使用 --project .;全局和项目同时安装会被 init 拒绝,除非加 --allow-duplicate。项目级模型覆盖仍可用 cybertron models setup --project .。

启动第一项任务

opencode2 debug config
opencode2 debug agents

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

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

首次使用时按安装渠道运行模型配置命令:npm 用 npx -y cybertron-agents@0.6.0 models setup,pipx 用 cybertron models setup,Shell 安装用 "${XDG_CONFIG_HOME:-$HOME/.config}/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.6.0 dsh path;pipx:cybertron dsh path;Shell:"${XDG_CONFIG_HOME:-$HOME/.config}/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.6.0 的发布说明见 v0.6.0 发布说明;0.4.0 的 DSH/访问模式变更见 v0.4.0 发布说明。

📚 继续探索

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

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

MIT License · Cybertron v0.6.0

Metadata

Release files for cybertron-agents 0.6.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.6.0
File Size Uploaded Provenance Actions
cybertron_agents-0.6.0.tar.gz 316.6 kB With provenance Details for cybertron_agents-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 641.1 kB

Release files / cybertron_agents-0.6.0.tar.gz

Download URL cybertron_agents-0.6.0.tar.gz
Size 316.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f9f3b2af7983d495a1be6ea3571e01e315ef59d4a62b3497c8c3b5736ecab096
BLAKE2b-256 checksum
How to use checksums
a979364471941e9ffaac6a5e91ed66a88a632e5d9acbded1526474418675dae7
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.6.0-py3-none-any.whl

Download URL cybertron_agents-0.6.0-py3-none-any.whl
Size 324.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee8c33dded7e557503b10d3ea5d66bf44638f7f7fdc46dacb05c7b1365da9dd4
BLAKE2b-256 checksum
How to use checksums
c753540b120916536da69428e352edef663e54c160576496a43adc224c1ac7e7
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.6.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.6.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