De Run — AI skill for Claude Code
让任意 AI Harness(ZCode/Claude Code/Codex…)把华为 DevEco Code 当子 Agent 调度:并行派活(≤6)、动作/tokens 汇总、--session 续跑、跨项目 session 历史,内置鸿蒙工具链.
How to install De Run
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open RayMorTwinkle/de-run and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What De Run does
让任意 AI Harness(ZCode/Claude Code/Codex…)把华为 DevEco Code 当子 Agent 调度:并行派活(≤6)、动作/tokens 汇总、--session 续跑、跨项目 session 历史,内置鸿蒙工具链。纯 Python 零依赖,登录华为账号免费用 GLM-5.1。oc-run 姊妹项目。 | Turn Huawei DevEco Code into a sub-agent for any harness — parallel dispatch, summaries, --session resume, free GLM-5.1.
Alternatives in AI
- EchoBird — One-click install + model switch:Claude Code,Codex CLI (OpenAI), Grok Build (xAI), DeepSeek Harness, Kimi Code 3.1k ★
- WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
- Base — AI builder operating system 172 ★
README
[English](./README_en.md) | **简体中文**
de-run — 可打断的 DevEco 子 Agent 调度
把 DevEco Code 接到任意主 Agent:后台派活、查询进度、打断纠偏、取消任务、收取报告。
Python 3.9+ · 零第三方依赖 · MIT
使用方式
前置条件:安装 DevEco Code,完成 `deveco auth login`,并确保 `deveco` 与 Python 3.9+ 可用。 本实现依据本机 DevEco **0.2.4** 的实际 `/doc` OpenAPI 验证;启动时检查必要接口,旧版不兼容时明确失败。 当前后台进程与文件锁实现支持 macOS/Linux;Windows 尚未适配。模型、配额与鸿蒙工具能力由 DevEco 提供,取决于账号与安装环境。
# 可直接运行,或建立软链
python3 scripts/de-run.py --help
ln -s "$(pwd)/scripts/de-run.py" ~/.local/bin/de-run
# 裸跑或 --help:帮助后展示当前目录的实时模型列表,标出默认模型
de-run
# 默认异步,立即返回 run_id 与每个 task_id
# de-run start、de-run run 与省略子命令完全等价
de-run --dir /path/to/project --prompt '分析代码结构,报告结论与来源' --json
# 查询项目目录下已连接 provider 的模型,不消耗模型调用
de-run models --dir /path/to/project --json
# 找回任务:所有活跃任务 + 待处理异常 + 最近结束的 10 个
de-run list
de-run list --active
de-run list --recent 30
de-run list --run --json
# 使用上一步实际返回的 ID 替换下面的占位符
de-run status --json
de-run wait --timeout 60 --json
de-run result --json
# 默认打断当前轮;确认停止后,在同一个 session 发送新要求
de-run send '优先定位数据库连接泄漏,暂停其他方向' --json
# 明确要求不打断:当前轮完成后执行
de-run send '接着检查测试覆盖' --queue --json
# 取消运行中或尚在排队的任务
de-run cancel --json
# 兼容原先需要阻塞的调用方
de-run run --dir /path/to/project --prompt '分析代码' --wait --json
**迁移注意:旧版调用默认阻塞;现在默认异步。** 旧脚本需要最终报告时,增加 `--wait`,或用启动回执中的 ID 调用 `wait` / `result`。
接口与语义
| 命令 | 行为 |
|---|---|
start / run / 默认入口 |
持久化任务并启动独立后台 worker,立即返回回执 |
list |
所有活跃任务、所有 orphaned 异常、最近结束的 10 个;--active 仅未结束任务,--recent N 调整历史数量,--run RUN_ID 按批次筛选 |
status ID |
读取一个任务或整批任务的当前状态、session、动作、tokens、最新文本 |
wait ID |
等待任务或整批任务结束,返回报告;--timeout 仅结束等待 |
send TASK TEXT |
默认先 abort 当前轮,确认 session 空闲,再排入新指令;不等待模型完成 |
send TASK TEXT --queue |
保留当前轮,完成后按顺序执行追加指令 |
cancel TASK |
清空待执行指令,中止当前轮;确认停止后返回 |
result ID |
读取持久化报告与逐轮历史;未结束返回退出码 2 |
--sessions [N] |
只读查询 DevEco SQLite 中的跨项 |
Related Skills
Agent Token Viewer
本机 AI 编码 Agent 的 Token 用量总览 · 零依赖 · 支持 Proma / Pi / oh-my-Pi / Claude Code / Claude Desktop / Codex / ZCode /
Ctxwall
One wall for every AI session on your machine — live dashboard for Claude Code / Codex / ZCode / CodeBuddy / p
ZCode Game Studios
Turn ZCode into a full AI game dev studio - 49 specialized agents, 73 workflow skills, path-scoped coding stan
Aura Code
Model-agnostic autonomous coding agent with a reproducible benchmark harness, adaptive turn budgets, and domai
Dsh Hud
Codex/Claude Code-style live session telemetry for DeepSeek Harness — model, context, tokens, timing, jobs, an
Distil
Measure what context compression actually costs an LLM agent: where a session's tokens go, and whether a rewri
Related Agents
Retro Reviewer
Reviews one prior session through ax's normalized cross-harness Turn view and emits a structured retro (tried
Model Runner
Deterministic wrapper that runs a prompt on a non-Claude model (OpenAI via Codex, Cursor's composer/grok/glm,
Glm Worker
Coding worker on GLM (Zhipu), served by the multi-model gateway's upstream. Use when the user says "use glm",