GitHub - HKUDS/CLI-Anything: CLI-Anything: Making ALL Software Agent-Native
Summary
CLI-Anything is an open-source framework (HKU) that auto-generates CLI wrappers for any desktop software (GIMP, Blender, LibreOffice, etc.), making them controllable by AI agents like Claude Code. It uses a 7-phase pipeline to analyze source code, design commands, implement Click CLIs with JSON output, and publish installable packages - 1 858 tests across 16+ apps with 100% pass rate.
Key Insight
- The core thesis is that CLI is the ideal interface for AI agents: structured, composable, self-describing (—help), and universal across platforms. This is a stronger bet than GUI automation (fragile) or custom APIs (expensive per-app).
- The “rendering gap” problem is real and non-obvious: GUI apps apply effects at render time, so a CLI that only manipulates project files but uses a naive exporter silently drops effects. Their solution is to always call the real software backend (e.g., LibreOffice headless for PDF export, Blender for rendering).
- Each generated CLI ships with a SKILL.md that agents auto-discover after pip install - no manual configuration. The CLI-Hub acts as a marketplace where agents autonomously browse and install the CLIs they need.
- The 7-phase pipeline (analyze, design, implement, plan tests, write tests, document, publish) is fully automated via a single slash command in Claude Code. Iterative refinement via /refine expands coverage incrementally.
- Requires frontier-class models (Claude Opus, GPT-5.4) for reliable generation - weaker models produce incomplete CLIs. Source code access is also required; compiled-only binaries degrade quality.
- 1 858 tests (1 355 unit + 484 E2E + 19 Node.js) across 16 apps, including real backend validation (checking PDF magic bytes, audio RMS levels, rendered image pixels).