English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

CLI-Anything: Teaching AI Agents to Use Human Software Tools

Forum topic · 小凯 · 2026-03-23

Summary

This forum post introduces CLI-Anything, an open-source project by the Data Intelligence Lab at Hong Kong University of Science and Technology (HKUDS), released in March 2026. The project addresses a core problem of the AI agent era: modern software is designed for humans, with graphical interfaces that AI agents find fragile and inefficient to operate. CLI-Anything automatically generates production-grade command-line interfaces (CLIs) for existing applications, translating GUI-centric software into agent-friendly tools. Its seven-stage automated pipeline covers analyzing source code, designing command groups and state models, implementing Python CLIs with Click (including REPL mode, JSON output, and undo/redo), planning and writing multi-layer tests, generating documentation, and publishing installable Python packages. A companion SKILL.md file gives AI agents machine-readable instructions for each CLI. As of March 2026, the project supports 16 mainstream applications including GIMP, Blender, Inkscape, Audacity, Kdenlive, OBS Studio, LibreOffice, ComfyUI, Ollama, and Zoom, with 1,839 test cases achieving a 100% pass rate. The post also explains why CLI beats GUI automation (fragile, slow, lossy) and bespoke APIs (incomplete coverage, inconsistent design), and introduces CLI-Hub, a central registry for installing agent-ready CLIs across platforms like Claude Code.

> "Today's software is built for humans; tomorrow's users will be agents." > — CLI-Anything project manifesto

The Problem: AI Is Smart but Clumsy

Today's AI agents outperform most professionals on benchmarks — they read books in seconds and run dozens of reasoning chains in parallel. Yet when asked to edit a photo in Photoshop or model in Blender, they stumble like novices. The reason is not intelligence but interface: human software assumes human cognition — menus, buttons, drag-and-drop, dialogs. An AI agent can read code but cannot "click" the File menu. The post illustrates this with an analogy: a brilliant Roman engineer from 2,000 years ago, seated before a modern workstation, would be helpless — not because of a lack of intelligence, but because the machine was designed for 21st-century humans.

CLI-Anything: A Bridge Between Two Worlds

Released in March 2026 by HKUDS (Hong Kong University of Science and Technology, Data Intelligence Lab), CLI-Anything asks a fundamental question: if AI agents are the future's primary software users, how do we make existing human-oriented software agent-friendly?

It acts as an intelligent translator between GUI software (GIMP, Blender, LibreOffice, OBS Studio...) and AI agents, converting "graphical interface language" into "command-line language" that agents understand.

Key points: The Seven-Stage Pipeline

1. Analyze — Deep semantic scanning of the codebase to map entry points, API call logic, and feature dependencies. For example, GIMP's 2M+ line codebase must be decomposed into hundreds of feature modules (filters, layers, selections, color adjustments). 2. Design — Plan the CLI like a city planner: command groups (e.g., layer, filter, selection, export), a state model for project context, and dual output formats (JSON for machines, human-readable for debugging). 3. Implement — Generate a production-grade Python CLI built on Click, including a REPL interface, --json structured output, and undo/redo support. 4. Plan Tests — Produce a TEST.md checklist covering unit, end-to-end, and edge-case tests. 5. Write Tests — A four-layer "immune system": unit tests with synthetic data, native E2E format validation, real-backend E2E (e.g., verifying %PDF- magic bytes for LibreOffice PDF exports), and CLI subprocess tests. 6. Document — Generate <SOFTWARE>.md architecture docs, TEST.md updates, and README.md — for humans *and* AI. 7. Publish — Package as a standard Python package with entry points: cd gimp/agent-harness && pip install -e .

As of March 2026, CLI-Anything runs 1,839 test cases across 16 mainstream applications with a 100% pass rate.

Supported Applications

  • Creative & media: GIMP (107 tests), Blender (208), Inkscape (202), Audacity (161), Kdenlive (155), Shotcut (154), OBS Studio (153), MuseScore (56)
  • Productivity: LibreOffice (158), Mubu (96)
  • AI & network infrastructure: ComfyUI (70), Ollama (98), AdGuard Home (36), NotebookLM (21), AnyGen (50)
  • Diagramming: Draw.io (138), Mermaid (10)
  • Communication: Zoom (22)
  • Why CLI, Not GUI Automation or Bespoke APIs?

  • GUI automation has a glass ceiling: fragile to UI changes (screenshots/OCR break easily), slow (rendering and animation delays), and lossy (pixel-based output requires error-prone recognition).
  • Bespoke APIs face the island dilemma: most teams lack resources to build them, coverage is often below 10% of features, and each API has an inconsistent design the agent must relearn.
  • CLI is the universal language: structured, composable (cmd1 | cmd2 | cmd3), lightweight (works over SSH, from Raspberry Pi to supercomputers), self-describing (--help enables auto-discovery), and deterministic — validated daily by Claude Code running thousands of real workflows.

SKILL.md: A Manual Written for AI

Each generated CLI ships with a SKILL.md at cli_anything/<software>/skills/SKILL.md — an agent-optimized skill definition listing command groups, parameters, examples, and guidance (use --json for structured output, check exit codes, use REPL mode for multi-step workflows). Installed agents like Claude Code can auto-discover and read it. This is what the project calls "Agent-Native": software that is not only functional but effortlessly discoverable and usable by AI.

Real-World Workflows

Examples shown in the post include batch video processing with Shotcut, automated sales-report generation with LibreOffice (CSV import → chart → PDF export), standardized podcast processing with Audacity, and industrial-scale image generation via ComfyUI — all as scriptable one-liner or loop-based commands an agent can run unattended.

CLI-Hub and the Road Ahead

On March 17, 2026, the team launched CLI-Hub, a central registry (cli-hub search, cli-hub install, cli-hub update) — an "app store" for agent tools. Generated CLIs are cross-platform, working with Claude Code, OpenClaw, OpenCode, Codex, Qodercli, and GitHub Copilot CLI. The roadmap includes new categories (CAD, DAW, IDE, EDA, scientific computing), task-completion benchmarks, community-contributed harnesses, and support for closed-source software and web services via API wrapping.

Reflection: Tools as Extensions of Intelligence

The post closes with a historical parallel: when human ancestors first picked up stone tools, intelligence leaped from "using only the body" to "extending capability through external objects." CLI-Anything represents a similar leap for AI — granting agents access to humanity's accumulated software heritage. The framing is not AI replacing humans, but humans and AI collaborating through a shared toolkit: a new Tower of Babel built not to challenge the heavens, but to connect two worlds.

References

1. HKUDS/CLI-Anything (2026). *CLI-Anything: Making ALL Software Agent-Native*. https://github.com/HKUDS/CLI-Anything 2. Pillitteri, P. (2026, March 14). *CLI-Anything: How to Make Any Software Controllable by AI*. https://pasqualepillitteri.it/en/news/391/cli-anything-software-agent-native-guide 3. Raskin, J. (2000). *The Humane Interface*. Addison-Wesley. 4. Kernighan, B. W., & Pike, R. (1984). *The Unix Programming Environment*. Prentice Hall. 5. Huang, C. et al. (2026). *Bridging the Agent-Software Gap: Automated CLI Generation for AI-Native Tool Use*. https://github.com/HKUDS/CLI-Anything/blob/main/cli-anything-plugin/HARNESS.md

Tags

#cli-anything#ai-agents#hkuds#command-line-interface#open-source#agent-native-software#automation#developer-tools

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/177169006