Skip to main content
Loss of provenance

A previous release had provenance metadata, but this release does not. View details.

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.8.0 init --dry-run
npx -y cybertron-agents@0.8.0 init --apply
npx -y cybertron-agents@0.8.0 models setup
npx -y cybertron-agents@0.8.0 doctor --global

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

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

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

pipx · Python 隔离安装

pipx install cybertron-agents==0.8.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.8.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.8.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:随包分发的实验性 Cybertron preset。可用安装入口的 dsh path 找到 bundle(npm:npx -y cybertron-agents@0.8.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.8.0 的发布说明见 v0.8.0 发布说明;0.4.0 的 DSH/访问模式变更见 v0.4.0 发布说明。

📚 继续探索

想了解 文档
安装路径与升级 安装与发布方案
v6 设计与门禁 动态任务图开发计划 · 里程碑证据
0.8.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.8.0

Metadata

Release files for cybertron-agents 0.8.0

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

Loss of provenance

These files do not have provenance metadata, despite files in a prior release including this data.

We recommend further investigation before installing these files. View details.

Source distribution (sdist)

Source distribution for cybertron-agents 0.8.0
File Size Uploaded Provenance Actions
cybertron_agents-0.8.0.tar.gz 363.4 kB Without provenance Details for cybertron_agents-0.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 728.4 kB

Release files / cybertron_agents-0.8.0.tar.gz

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL cybertron_agents-0.8.0.tar.gz
Size 363.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f3b5c7fdc0389af6fb484217cf9a354680f51ac7801c9d74f0ca0cee05662e74
BLAKE2b-256 checksum
How to use checksums
5fcf4f2cb58a1f0ba98cef6709d007945d52f5be479d4a9b58ece63c60030ac6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

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

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL cybertron_agents-0.8.0-py3-none-any.whl
Size 365.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0aaa7f00a043d7000979b04a2695b6cd9f936c54d524e845566f6724d7e7780d
BLAKE2b-256 checksum
How to use checksums
35ab7b9b4d6bbe4cb6da697fdb68662406489f7f37f09c411fb7cbb930c7ee27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Security for cybertron-agents 0.8.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.

Loss of provenance

A previous release of these files had provenance metadata, but this release does not.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Release comparison

  • Removed 0.7.3 2 files With provenance
  • Added 0.8.0 2 files Without provenance

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