Cybertron · Thirteen Primes
⚡ 60 秒安装
先安装 OpenCode V2 并配置可用模型。0.6.0 默认全局安装:13 个角色、/cybertron 命令、插件和 Python 运行时写入 ~/.config/opencode,所有项目共用;每个项目的 run 账本、模型覆盖和源码写入仍落在项目目录。安装器默认只预览,加入 --apply 才写入。
npm · 不需要全局 cybertron 命令
npx -y cybertron-agents@0.9.0 init --dry-run
npx -y cybertron-agents@0.9.0 init --apply
npx -y cybertron-agents@0.9.0 models setup
npx -y cybertron-agents@0.9.0 doctor --global
npx 只运行一次,不会留下全局 cybertron 命令;后续命令继续带 npx 即可。若希望直接使用 cybertron:
npm install -g cybertron-agents@0.9.0
cybertron --version
若报 zsh: command not found: cybertron,把 npm config get prefix 下的 bin 加入 PATH。
pipx · Python 隔离安装
pipx install cybertron-agents==0.9.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.9.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 选择 prima 作为唯一入口,直接输入自然语言需求;prima 会先派 thirteenth 澄清意图并制定计划,然后自己评审、派发和结算。也可以在 Build 模式使用 /cybertron <需求> 进入同一入口。例如:
修复登录接口的超时问题,补充回归测试,并说明改动影响。
首次使用时按安装渠道运行模型配置命令:npm 用 npx -y cybertron-agents@0.9.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[prima 单一入口]
P --> T[thirteenth 澄清意图并制定计划]
T --> K[内核校验权限、依赖与写入范围]
K --> R[prima 评审计划并派发]
R --> A[OpenCode 原生子代理执行]
A --> C[隔离检查与 L1 / L2 审查]
C -->|通过| E[事件账本、指标与可复用模板]
C -->|失败或越界| R[拒绝、回滚或局部返工]
R --> K
| 能力 | 具体做法 |
|---|---|
| 单一入口 | 人类只和 prima 对话;无 run 时 prima 先派 thirteenth 澄清意图并生成计划,run id 自动回调给 prima。 |
| 动态规划 | 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:随包分发的实验性
Cybertronpreset。可用安装入口的dsh path找到 bundle(npm:npx -y cybertron-agents@0.9.0 dsh path;pipx:cybertron dsh path;Shell:"${XDG_CONFIG_HOME:-$HOME/.config}/opencode/bin/cybertron" dsh path);preset 名称为Cybertron;目前是单一primapersona 与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.9.0 的发布说明见 v0.9.0 发布说明;0.4.0 的 DSH/访问模式变更见 v0.4.0 发布说明。
📚 继续探索
| 想了解 | 文档 |
|---|---|
| 安装路径与升级 | 安装与发布方案 |
| v6 设计与门禁 | 动态任务图开发计划 · 里程碑证据 |
| 0.9.0 具体变更 | 发布说明 · GitHub Release |
| 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.9.0
Metadata
Release files for cybertron-agents 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cybertron_agents-0.9.0.tar.gz | 390.8 kB | With provenance | Details for cybertron_agents-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cybertron_agents-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for cybertron_agents-0.9.0-py3-none-any.whl |
Total release size: 780.8 kB
Release files / cybertron_agents-0.9.0.tar.gz
| Download URL | cybertron_agents-0.9.0.tar.gz |
|---|---|
| Size | 390.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32760fab6659ef4a2ed58af9ca3638b680771cd72809eb38f9547e094c65d900
|
|
BLAKE2b-256 checksum How to use checksums |
c054859722dd60afb3d875d8d44ec7b6cdd209243e96841624bf0e58f0ee366b
|
| 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 22, 2026.
Transparency logRelease files / cybertron_agents-0.9.0-py3-none-any.whl
| Download URL | cybertron_agents-0.9.0-py3-none-any.whl |
|---|---|
| Size | 389.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06a879f1e6bfdba51411800ebdcba7885bc873bc971b58396d5e8be5a8561f93
|
|
BLAKE2b-256 checksum How to use checksums |
d50a691c41e843d990a5230fdf923ee663eade749195e942b6048091f233ad8d
|
| 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 22, 2026.
Transparency logSecurity for cybertron-agents 0.9.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.
Attestation for cybertron_agents-0.9.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 22, 2026.
Transparency logA 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.