Cybertron · Thirteen Primes
⚡ 60 秒安装
先安装 OpenCode V2 并配置可用模型。请选择一种渠道,在目标项目目录运行;安装器默认只预览,加入 --apply 才会写入。npm 命令请勿在本仓库目录运行,以免命中本地同名包。
npm · 不需要全局 cybertron 命令
npx -y cybertron-agents@0.4.0 init --dry-run --project .
npx -y cybertron-agents@0.4.0 init --apply --project .
npx 只运行这一次命令,不会在 ~/.local/bin、/usr/local/bin 或 nvm 的全局 bin 目录里留下 cybertron。因此后续命令也必须继续带 npx:
npx -y cybertron-agents@0.4.0 models setup
npx -y cybertron-agents@0.4.0 doctor --project .
如果你希望直接使用 cybertron,再显式全局安装:
npm install -g cybertron-agents@0.4.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.4.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.4.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.4.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
想让所有项目都能选择
prima?将安装命令中的--project .换成--global。三条渠道的包内容已经在 0.3.0 发布验收中核对。
启动第一项任务
opencode2 debug config
opencode2 debug agents
在 OpenCode 中用 Shift+Tab 选择 prima,直接输入自然语言需求;也可以在 Build 模式使用 /cybertron <需求>。例如:
修复登录接口的超时问题,补充回归测试,并说明改动影响。
首次使用时按安装渠道运行模型配置命令:npm 用 npx -y cybertron-agents@0.4.0 models setup,pipx 用 cybertron models setup,Shell 安装用 ./.opencode/bin/cybertron models setup。随后通过 OpenCode 的认证流程提供模型密钥。Cybertron 的模型配置只保存模型 ID,不保存 API Key。模型配置说明 →
🧠 它如何工作
flowchart LR
U[自然语言需求] --> P[prima 提出任务图]
P --> K[内核校验权限、依赖与写入范围]
K --> A[OpenCode 原生子代理执行]
A --> C[隔离检查与 L1 / L2 审查]
C -->|通过| E[事件账本、指标与可复用模板]
C -->|失败或越界| R[拒绝、回滚或局部返工]
R --> K
| 能力 | 具体做法 |
|---|---|
| 动态规划 | prima 用 cy_plan 提交节点与依赖;内核依据十三角色注册表裁决能力和 write_scope。 |
| 有界执行 | 子代理拿到明确的写入范围;越界写入由 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.4.0 dsh path;pipx:cybertron dsh path;Shell:./.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.4.0 的发布说明见 v0.4.0 发布说明;0.3.0 的包内容比对及三条公开安装路径验收见 发布验收记录。
📚 继续探索
| 想了解 | 文档 |
|---|---|
| 安装路径、升级与卸载 | 安装与发布方案 |
| v6 设计与门禁 | 动态任务图开发计划 · 里程碑证据 |
| 0.4.0 具体变更 | 发布说明 · GitHub Release |
| 十三角色架构背景 | 架构白皮书 |
Plan with intent. Execute with boundaries. Verify with evidence.
MIT License · Cybertron v0.4.0
Metadata
Release files for cybertron-agents 0.4.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.4.0.tar.gz | 306.7 kB | With provenance | Details for cybertron_agents-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cybertron_agents-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for cybertron_agents-0.4.0-py3-none-any.whl |
Total release size: 623.0 kB
Release files / cybertron_agents-0.4.0.tar.gz
| Download URL | cybertron_agents-0.4.0.tar.gz |
|---|---|
| Size | 306.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19d4fead100e24d87b1bbe6c3fbb1e99ce1e70cc7ee6bbce974fd65b09647015
|
|
BLAKE2b-256 checksum How to use checksums |
d61c13d49ca2afaf12814a6a1642d299c20958d0caac69d661e2a3e80024e37d
|
| 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 17, 2026.
Transparency logRelease files / cybertron_agents-0.4.0-py3-none-any.whl
| Download URL | cybertron_agents-0.4.0-py3-none-any.whl |
|---|---|
| Size | 316.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c7d8d721896d145d95a0407fb9063913d2cb4ccc6bd455677c4c335dbb748dae
|
|
BLAKE2b-256 checksum How to use checksums |
7c0cbfda20c2a21eeae941836539fb37e7a47a3f1a997b2685982ce0a777d6c2
|
| 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 17, 2026.
Transparency logSecurity for cybertron-agents 0.4.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.4.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 17, 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.