Skip to content

"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/

Python

Add Draw.io CLI harness for agent-native diagram creation

Xilonng Zhang41a7e5aef09f
diff --git a/README.md b/README.md
index 0e666453b..a1ec92b7c 100644
--- a/README.md
+++ b/README.md
@@ -7,8 +7,8 @@ CLI-Anything: Bridging the Gap Between AI Agents and the World's Software</stron
<p align="center">
<a href="#-quick-start"><img src="https://img.shields.io/badge/Quick_Start-5_min-blue?style=for-the-badge" alt="Quick Start"></a>
- <a href="#-demonstrations"><img src="https://img.shields.io/badge/Demos-8_Apps-green?style=for-the-badge" alt="Demos"></a>
- <a href="#-test-results"><img src="https://img.shields.io/badge/Tests-1%2C298_Passing-brightgreen?style=for-the-badge" alt="Tests"></a>
+ <a href="#-demonstrations"><img src="https://img.shields.io/badge/Demos-9_Apps-green?style=for-the-badge" alt="Demos"></a>
+ <a href="#-test-results"><img src="https://img.shields.io/badge/Tests-1%2C436_Passing-brightgreen?style=for-the-badge" alt="Tests"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow?style=for-the-badge" alt="License"></a>
</p>
@@ -149,6 +149,7 @@ cp -r CLI-Anything/cli-anything-plugin ~/.claude/plugins/cli-anything
| **🎨 Creative & Media** | Control content creation, editing, and rendering workflows programmatically | Blender, GIMP, OBS Studio, Audacity, Krita, Kdenlive, Shotcut, Inkscape, Darktable, LMMS, Ardour |
| **🔬 Scientific Computing** | Automate research workflows, simulations, and complex calculations | ImageJ, FreeCAD, QGIS, ParaView, Gephi, LibreCAD, Stellarium, KiCad, JASP, Jamovi |
| **🏢 Enterprise & Office** | Convert business applications and productivity tools into agent-accessible systems | NextCloud, GitLab, Grafana, Mattermost, LibreOffice, AppFlowy, NocoDB, Odoo (Community), Plane, ERPNext |
+| **📐 Diagramming & Visualization** | Create and manipulate diagrams, flowcharts, architecture diagrams, and visual documentation programmatically | Draw.io (diagrams.net), Mermaid, PlantUML, Excalidraw, yEd |
| **✨ AI Content Generation** | Generate professional deliverables (slides, docs, diagrams, websites, research reports) through AI-powered cloud APIs | [AnyGen](https://www.anygen.io), Gamma, Beautiful.ai, Tome |
---
@@ -166,7 +167,7 @@ AI agents are great at reasoning but terrible at using real professional softwar
| 💸 "UI automation breaks constantly" | No screenshots, no clicking, no RPA fragility. Pure command-line reliability with structured interfaces |
| 📊 "Agents need structured data" | Built-in JSON output for seamless agent consumption + human-readable formats for debugging |
| 🔧 "Custom integrations are expensive" | One Claude plugin auto-generates CLIs for ANY codebase through proven 7-phase pipeline |
-| ⚡ "Prototype vs Production gap" | 1,298+ tests with real software validation. Battle-tested across 8 major applications |
+| ⚡ "Prototype vs Production gap" | 1,436+ tests with real software validation. Battle-tested across 9 major applications |
---
@@ -255,7 +256,7 @@ All CLIs organized under cli_anything.* namespace — conflict-free, pip-install
CLI-Anything works on any software with a codebase — no domain restrictions or architectural limitations.
### 🏭 Professional-Grade Testing
-Tested across 8 diverse, complex open-source applications spanning creative and productivity domains previously inaccessible to AI agents.
+Tested across 9 diverse, complex open-source applications spanning creative, productivity, and diagramming domains previously inaccessible to AI agents.
### 🎨 Diverse Domain Coverage
From creative workflows (image editing, 3D modeling, vector graphics) to production tools (audio, office, live streaming, video editing).
@@ -328,12 +329,19 @@ Each application received complete, production-ready CLI interfaces — not demo
<td align="center">✅ 154</td>
</tr>
<tr>
+<td align="center"><strong>📐 Draw.io</strong></td>
+<td>Diagramming</td>
+<td><code>cli-anything-drawio</code></td>
+<td>mxGraph XML + draw.io CLI</td>
+<td align="center">✅ 138</td>
+</tr>
+<tr>
<td align="center" colspan="4"><strong>Total</strong></td>
-<td align="center"><strong>✅ 1,298</strong></td>
+<td align="center"><strong>✅ 1,436</strong></td>
</tr>
</table>
-> **100% pass rate** across all 1,298 tests — 895 unit tests + 403 end-to-end tests.
+> **100% pass rate** across all 1,436 tests — 1,011 unit tests + 425 end-to-end tests.
---
@@ -358,8 +366,9 @@ libreoffice 158 passed ✅ (89 unit + 69 e2e)
obs-studio 153 passed ✅ (116 unit + 37 e2e)
kdenlive 155 passed ✅ (111 unit + 44 e2e)
shotcut 154 passed ✅ (110 unit + 44 e2e)
+drawio 138 passed ✅ (116 unit + 22 e2e)
──────────────────────────────────────────────────────────────────────────────
-TOTAL 1,298 passed ✅ 100% pass rate
+TOTAL 1,436 passed ✅ 100% pass rate
```
---
@@ -414,7 +423,8 @@ cli-anything/
├── 📄 libreoffice/agent-harness/ # LibreOffice CLI (158 tests)
├── 📹 obs-studio/agent-harness/ # OBS Studio CLI (153 tests)
├── 🎞️ kdenlive/agent-harness/ # Kdenlive CLI (155 tests)
-└── 🎬 shotcut/agent-harness/ # Shotcut CLI (154 tests)
+├── 🎬 shotcut/agent-harness/ # Shotcut CLI (154 tests)
+└── 📐 drawio/agent-harness/ # Draw.io CLI (138 tests)
```
Each `agent-harness/` contains an installable Python package under `cli_anything.<software>/` with Click CLI, core modules, utils (including `repl_skin.py` and backend wrapper), and comprehensive tests.
@@ -636,7 +646,7 @@ MIT License — free to use, modify, and distribute.
**CLI-Anything** — *Make any software with a codebase Agent-native.*
-<sub>A methodology for the age of AI agents | 8 professional software demos | 1,298 passing tests</sub>
+<sub>A methodology for the age of AI agents | 9 professional software demos | 1,436 passing tests</sub>
<br>
diff --git a/README_CN.md b/README_CN.md
index f4d01f28f..eb4901ae0 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -7,8 +7,8 @@ CLI-Anything:连接 AI Agent 与全世界软件的桥梁</strong><br>
<p align="center">
<a href="#-快速上手"><img src="https://img.shields.io/badge/快速上手-5_分钟-blue?style=for-the-badge" alt="Quick Start"></a>
- <a href="#-实测展示"><img src="https://img.shields.io/badge/Demo-8_款软件-green?style=for-the-badge" alt="Demos"></a>
- <a href="#-测试结果"><img src="https://img.shields.io/badge/测试-1%2C298_通过-brightgreen?style=for-the-badge" alt="Tests"></a>
+ <a href="#-实测展示"><img src="https://img.shields.io/badge/Demo-9_款软件-green?style=for-the-badge" alt="Demos"></a>
+ <a href="#-测试结果"><img src="https://img.shields.io/badge/测试-1%2C436_通过-brightgreen?style=for-the-badge" alt="Tests"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow?style=for-the-badge" alt="License"></a>
</p>
@@ -85,6 +85,7 @@ CLI-Anything 以 Claude Code 插件市场的形式托管在 GitHub 上。
```
完整流水线自动执行:
+
1. 🔍 **分析** — 扫描源码,将 GUI 操作映射到 API
2. 📐 **设计** — 规划命令分组、状态模型、输出格式
3. 🔨 **实现** — 构建 Click CLI,包含 REPL、JSON 输出、撤销/重做
@@ -147,6 +148,7 @@ cp -r CLI-Anything/cli-anything-plugin ~/.claude/plugins/cli-anything
| **📊 数据与分析** | 以编程方式完成数据处理、可视化和统计分析工作流 | JupyterLab、Apache Superset、Metabase、Redash、DBeaver、KNIME、Orange、OpenSearch Dashboards、Lightdash |
| **💻 开发工具** | 通过命令行接口串联代码编辑、构建、测试和部署流程 | Jenkins、Gitea、Hoppscotch、Portainer、pgAdmin、SonarQube、ArgoCD、OpenLens、Insomnia、Beekeeper Studio |
| **🎨 创意与媒体** | 以编程方式控制内容创作、编辑和渲染工作流 | Blender、GIMP、OBS Studio、Audacity、Krita、Kdenlive、Shotcut、Inkscape、Darktable、LMMS、Ardour |
+| **📐 图表与可视化** | 以编程方式创建和操作流程图、架构图、ER 图等各类图表 | Draw.io (diagrams.net)、Mermaid、PlantUML、Excalidraw、yEd |
| **🔬 科学计算** | 自动化科研工作流、仿真模拟和复杂计算 | ImageJ、FreeCAD、QGIS、ParaView、Gephi、LibreCAD、Stellarium、KiCad、JASP、Jamovi |
| **🏢 企业与办公** | 将商业应用和生产力工具转化为 Agent 可访问的系统 | NextCloud、GitLab、Grafana、Mattermost、LibreOffice、AppFlowy、NocoDB、Odoo (Community)、Plane、ERPNext |
@@ -166,7 +168,7 @@ AI Agent 推理能力很强,但操控真实专业软件的能力很弱。现
| 💸 "GUI 自动化三天两头崩" | 告别截图、点击和 RPA 的脆弱性,纯命令行操控,结构化接口 |
| 📊 "Agent 需要结构化数据" | 内置 JSON 输出供 Agent 直接消费,同时保留可读格式方便调试 |
| 🔧 "定制集成太贵了" | 一个插件就能为任意代码库自动生成 CLI,经过验证的 7 阶段流水线 |
-| ⚡ "原型和生产之间差十万八千里" | 1,298+ 测试用例,全部在真实软件上验证通过,覆盖 8 款主流应用 |
+| ⚡ "原型和生产之间差十万八千里" | 1,436+ 测试用例,全部在真实软件上验证通过,覆盖 9 款主流应用 |
---
@@ -207,12 +209,14 @@ CLI-Anything 可以直接**替代基于 GUI 的 Agent 方案** —— 不再截
<td width="50%">
### 🏗️ 全自动 7 阶段流水线
+
从代码分析到发布上线 —— 插件自动完成架构设计、代码实现、测试规划、测试编写和文档生成,全程无需人工介入。
</td>
<td width="50%">
### 🎯 真实软件集成
+
直接调用真实应用进行渲染。LibreOffice 生成 PDF,Blender 渲染 3D 场景,Audacity 通过 sox 处理音频。**零妥协**,**零玩具实现**。
</td>
@@ -221,12 +225,14 @@ CLI-Anything 可以直接**替代基于 GUI 的 Agent 方案** —— 不再截
<td width="50%">
### 🔁 智能会话管理
+
持久化项目状态,支持撤销/重做,加上统一的 REPL 交互界面(ReplSkin),所有 CLI 的使用体验保持一致。
</td>
<td width="50%">
### 📦 零配置安装
+
`pip install -e .` 即可将 cli-anything-<软件名> 装到 PATH。Agent 通过标准的 `which` 命令发现工具,不需要额外配置。
</td>
@@ -235,12 +241,14 @@ CLI-Anything 可以直接**替代基于 GUI 的 Agent 方案** —— 不再截
<td width="50%">
### 🧪 生产级测试
+
多层验证:使用合成数据的单元测试、使用真实文件和软件的端到端测试,外加已安装命令的 CLI 子进程验证。
</td>
<td width="50%">
### 🐍 干净的包架构
+
所有 CLI 统一在 cli_anything.* 命名空间下 —— 无冲突、可 pip 安装、命名规范统一:cli-anything-gimp、cli-anything-blender 等。
</td>
@@ -252,15 +260,19 @@ CLI-Anything 可以直接**替代基于 GUI 的 Agent 方案** —— 不再截
## 🎬 实测展示
### 🎯 通用性
+
CLI-Anything 适用于任何有代码库的软件 —— 不限领域,不限架构。
### 🏭 专业级测试
-在 8 款复杂的开源应用上进行了实测,涵盖创意和生产力领域 —— 这些软件此前对 AI Agent 来说几乎不可触及。
+
+在 9 款复杂的开源应用上进行了实测,涵盖创意、生产力和图表领域 —— 这些软件此前对 AI Agent 来说几乎不可触及。
### 🎨 覆盖多元领域
+
从创意工作流(图像编辑、3D 建模、矢量图形)到生产工具(音频、办公、直播、视频剪辑)。
### ✅ 完整的 CLI 生成
+
每款软件都生成了完整的、可投产的 CLI 接口 —— 不是 demo,而是保留全部功能的完整工具接入。
<table>
@@ -328,12 +340,19 @@ CLI-Anything 适用于任何有代码库的软件 —— 不限领域,不限
<td align="center">✅ 154</td>
</tr>
<tr>
+<td align="center"><strong>📐 Draw.io</strong></td>
+<td>图表绘制</td>
+<td><code>cli-anything-drawio</code></td>
+<td>mxGraph XML + draw.io CLI</td>
+<td align="center">✅ 138</td>
+</tr>
+<tr>
<td align="center" colspan="4"><strong>合计</strong></td>
-<td align="center"><strong>✅ 1,298</strong></td>
+<td align="center"><strong>✅ 1,436</strong></td>
</tr>
</table>
-> 全部 1,298 项测试 **100% 通过** —— 895 项单元测试 + 403 项端到端测试。
+> 全部 1,436 项测试 **100% 通过** —— 1011 项单元测试 + 425 项端到端测试。
---
@@ -359,7 +378,7 @@ obs-studio 153 passed ✅ (116 unit + 37 e2e)
kdenlive 155 passed ✅ (111 unit + 44 e2e)
shotcut 154 passed ✅ (110 unit + 44 e2e)
──────────────────────────────────────────────────────────────────────────────
-TOTAL 1,298 passed ✅ 100% pass rate
+TOTAL 1,436+ passed ✅ 100% pass rate
```
---
@@ -373,13 +392,9 @@ TOTAL 1,298 passed ✅ 100% pass rate
### 🎯 核心设计原则
1. **真实软件集成** — CLI 生成合法的项目文件(ODF、MLT XML、SVG),然后交给真实应用去渲染。**我们做的是软件的结构化接口,而不是替代品**。
-
2. **灵活的交互模式** — 每个 CLI 都支持两种模式:有状态的 REPL 用于 Agent 交互会话,子命令模式用于脚本和流水线。**直接运行命令即进入 REPL**。
-
3. **一致的使用体验** — 所有生成的 CLI 共享统一的 REPL 界面(repl_skin.py),带有品牌横幅、风格化提示符、命令历史、进度指示器和标准化格式。
-
4. **Agent 原生设计** — 每个命令内置 `--json` 参数,输出结构化数据供 Agent 消费,同时可读的表格格式服务于交互调试。**Agent 通过标准的 `--help` 和 `which` 命令发现能力**。
-
5. **零妥协的依赖策略** — 真实软件是硬性要求 —— 没有兜底,没有降级。**后端缺失时测试直接失败(而非跳过),确保功能的真实性**。
---
@@ -415,7 +430,8 @@ cli-anything/
├── 📄 libreoffice/agent-harness/ # LibreOffice CLI(158 项测试)
├── 📹 obs-studio/agent-harness/ # OBS Studio CLI(153 项测试)
├── 🎞️ kdenlive/agent-harness/ # Kdenlive CLI(155 项测试)
-└── 🎬 shotcut/agent-harness/ # Shotcut CLI(154 项测试)
+├── 🎬 shotcut/agent-harness/ # Shotcut CLI (154 tests)
+└── 📐 drawio/agent-harness/ # Draw.io CLI (138 tests)
```
每个 `agent-harness/` 包含一个可安装的 Python 包,位于 `cli_anything.<软件名>/` 下,包含 Click CLI、核心模块、工具类(含 `repl_skin.py` 和后端适配器)以及完整的测试。
@@ -595,6 +611,7 @@ CLI_ANYTHING_FORCE_INSTALLED=1 python3 -m pytest cli_anything/<软件名>/tests/
| [`cli-anything-plugin/PUBLISHING.md`](cli-anything-plugin/PUBLISHING.md) | 分发与发布指南 |
每个生成的 CLI 还包含:
+
- `<软件名>.md` — 该应用的架构 SOP
- `tests/TEST.md` — 测试计划和结果文档
@@ -628,7 +645,7 @@ MIT License — 可自由使用、修改和分发。
**CLI-Anything** — *一行命令,让任何软件成为 Agent 的原生工具。*
-<sub>为 AI Agent 时代而生 | 8 款专业软件实测 | 1,298 项测试全部通过</sub>
+<sub>为 AI Agent 时代而生 | 9 款专业软件实测 | 1,436 项测试全部通过</sub>
<br>
@@ -640,3 +657,4 @@ MIT License — 可自由使用、修改和分发。
<em>感谢访问 ✨ CLI-Anything!</em><br><br>
<img src="https://visitor-badge.laobi.icu/badge?page_id=HKUDS.CLI-Anything&style=for-the-badge&color=00d4ff" alt="Views">
</p>
+