Oc Run2 — Development skill for Claude Code
把 OpenCode 2(opencode2 beta)变成任意主 Agent(ZCode/Claude Code/Codex…)的子 Agent:模型自由、并行派活(≤6)、--session 原生续跑、官方 API 跨项目历史、每任务 cost 统计,纯 Python 标准库零依赖.
How to install Oc Run2
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open RayMorTwinkle/oc-run2 and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Oc Run2 does
把 OpenCode 2(opencode2 beta)变成任意主 Agent(ZCode/Claude Code/Codex…)的子 Agent:模型自由、并行派活(≤6)、--session 原生续跑、官方 API 跨项目历史、每任务 cost 统计,纯 Python 标准库零依赖。 | Turn OpenCode 2 (opencode2 beta) into a sub-agent for any harness — parallel dispatch, native session resume, cost stats.
Alternatives in Development
- Reverse API Engineer — Reverse engineer any website into a typed API client 1.9k ★
- Cost Xray — See what Claude Code and Codex actually send to the API — and what each part costs 586 ★
- Quosparr — 🐦 Native menu bar & tray app for macOS, Windows and Linux: track Codex, Claude Code and Grok quotas, resets 288 ★
README
[English](./README_en.md) | **简体中文**
oc-run2 — 把 OpenCode 2 变成任意 Harness 的子 Agent
**把你的主 Agent 从模型绑定中解放出来——主 Agent 负责指挥,OpenCode 2 子 Agent 负责干活,用任何模型,干任何活。**
     
它解决什么问题
一个主 Agent(ZCode / Claude Code / Codex…)最贵的资源是它自己的上下文与高级模型 token。但真实工作里大量时间花在"**读一大堆东西、只想要一个结论**"——读整个仓库、翻网页、比对文档、批量盘点。这些活塞进主 Agent,既烧高级 token,又把有限上下文挤满。
**oc-run2 就是要把这类活外包出去,并且让子 Agent 可以用跟主 Agent 完全不同的模型。** OpenCode 2 本身 provider 中立——你可以在它里面配好 DeepSeek / GLM / Kimi / 免费档,甚至自定义 provider 里的 Claude;于是"**强模型做决策、便宜模型干粗活**"第一次变得顺理成章。子 Agent 的搜索、读码、思考全在独立上下文里完成,读再多也不占你一格上下文。
它在技术上只是一层**薄适配器**:给它若干"工作区目录 + 提示词",它并行派发给独立子 Agent(≤6 个),全部结束后解析官方事件流与官方 API,回一张结构化汇总——session、动作次数、tokens、**cost(美元)**、最终报告。
仅支持 **OpenCode 2**(`opencode2` 命令,beta,实测 `v0.0.0-beta-19059`)。OpenCode 1.x(`opencode`)请用姊妹项目 **[oc-run](https://github.com/RayMorTwinkle/oc-run)**。
**与 V1 的关键差异**:`--session` 续跑在 OpenCode 2 里是**原生能力**(V1 因原生命令挂起,只能自启 `serve` + `attach` 绕行);跨项目历史改走**官方 API**(V1 需直查 SQLite);权限自动批准由 `--dangerously-skip-permissions` 改为 `--auto`;并新增了**每任务 cost(美元)**、`--variant`、`--agent`。
✨ 功能
- 🎛️ 模型自由:子 Agent 可用你配置的任意模型(DeepSeek、GLM、Kimi、免费档,甚至自定义 provider 里的 Claude),完全不绑定主 Agent 同家供应商
- 💰 省高级 token + 花费透明:"大量读"的活外包给便宜模型;汇总自动展示每个任务的真实 tokens 与 cost(美元)
- ⚡ 并行派活:一次最多 6 个子 Agent 同时干活,各自独立工作目录与提示词,单任务失败不影响其他任务
- 🔁 原生续跑:
--session接着同一子 Agent 继续,保持它的记忆,按报告循环指挥直到达标(V2 原生支持,无需 V1 的 serve 绕行) - 🎯 精细控制:
--agent指定 OpenCode 2 agent(build/plan/…),--variant指定推理强度(`provider/model#varian
Related Skills
Oc Run
让任意 Harness(ZCode/Claude Code/Codex…)把 OpenCode 当子 Agent 调度:并行派活(≤6)、结构化汇总、--session 续跑、跨项目 session 历史;模型自由不绑定
Vagus
A local-first desktop workspace for Claude Code, Codex, OpenCode, Pi, Qoder CLI, and ZCode. Follow agent work
Argus Code
See what Claude Code actually did. Local-first observability for every session: which tools ran, what each sub
All Agent Shared Memory
Zero-dependency cross-agent memory + session bridge for Claude Code, Codex, opencode and ZCode: one auditable
Offline Telemetry Script
Offline analyzer for Claude Code session transcripts (~/.claude/projects/.jsonl). Pure-stdlib Python, no API c
Claude Managed Agents Sse Demo
A stdlib-only Python CLI that parses and pretty-prints Server-Sent Events from Anthropic's Claude Managed Agen
Related Agents
Aux Delegator
Invokes external CLI coding agents (Codex, OpenCode, Claude -p, ACP). Use whenever a task should be offloaded
Maker
Reviews OpenCode sessions (shared links or local history), finds repeatable workflows, and proposes automation
Agent Of Empires
Claude Code, OpenCode, Mistral Vibe, Codex CLI, Gemini CLI Coding Agent Terminal Session manager via tmux and