CLI-Anything  by HKUDS

Agent-native CLI generation for any software

Created 5 days ago

New!

7,280 stars

Top 7.1% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

CLI-Anything addresses the challenge of integrating AI agents with existing software by automatically generating command-line interfaces (CLIs) for any application with a codebase. It targets developers, researchers, and power users seeking to enable AI agents to control diverse software tools without relying on fragile UI automation or limited APIs. The primary benefit is making software "agent-native," allowing agents to leverage full application capabilities through structured, reliable commands.

How It Works

The project employs a fully automated 7-phase pipeline: Analyze, Design, Implement, Plan Tests, Write Tests, Document, and Publish. It transforms a software's codebase into a functional, installable Python package with a Click-based CLI. Key advantages include its "Agent-First Design" with built-in JSON output for seamless agent consumption, eliminating parsing complexity, and "Authentic Software Integration," which ensures CLIs delegate to the actual application, preserving full professional capabilities without compromises or toy implementations.

Quick Start & Requirements

Installation is recommended via the Claude Code plugin marketplace: /plugin marketplace add HKUDS/CLI-Anything followed by /plugin install cli-anything. Alternatively, clone the repository and manually copy the plugin. Prerequisites include Claude Code (with plugin support), Python 3.10+, and the target software installed on the system. To generate a CLI for software like GIMP, use /cli-anything <path-to-software-or-repo>. Generated CLIs are installed via pip install -e . within their respective harness directories.

Highlighted Details

  • Extensive Testing: A rigorous, multi-layered testing suite covers 1,436 scenarios across 9 diverse open-source applications (e.g., GIMP, Blender, LibreOffice), achieving a 100% pass rate.
  • Authentic Software Integration: CLIs generate valid project files and delegate execution to the actual backend applications, ensuring full functionality and avoiding "toy" implementations.
  • Agent-Native Output: Built-in --json flag provides structured data for AI agents, while a unified REPL interface (ReplSkin) offers a consistent interactive experience.
  • Universal Application: Transforms any software with a codebase into an agent-controllable tool, covering domains from creative media to enterprise and scientific computing.

Maintenance & Community

The project outlines a roadmap including support for more application categories, benchmark suites, community-contributed harnesses, and integration with additional agent frameworks. Specific details on active contributors or sponsorships are not provided in the README.

Licensing & Compatibility

The project is released under the MIT License, permitting free use, modification, and distribution, including for commercial purposes and integration within closed-source projects.

Limitations & Caveats

CLI-Anything operates on a "zero compromise" principle, meaning the target software must be installed and functional. Tests are designed to fail if backends are missing, ensuring authentic functionality but requiring a robust local environment. The effectiveness is dependent on the accessibility and structure of the target software's codebase.

Health Check
Last Commit

20 hours ago

Responsiveness

Inactive

Pull Requests (30d)
29
Issues (30d)
22
Star History
8,438 stars in the last 5 days

Explore Similar Projects

Starred by Li Jiang Li Jiang(Coauthor of AutoGen; Engineer at Microsoft), Jared Palmer Jared Palmer(SVP at GitHub; Founder of Turborepo; Author of Formik, TSDX), and
1 more.

copilot-sdk by github

2.5%
8k
AI agentic workflow SDK for application integration
Created 1 month ago
Updated 1 day ago
Starred by Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research), Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), and
27 more.

goose by block

1.1%
33k
Open-source AI agent for automating complex engineering tasks
Created 1 year ago
Updated 20 hours ago
Starred by Lilian Weng Lilian Weng(Cofounder of Thinking Machines Lab), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
59 more.

AutoGPT by Significant-Gravitas

0.1%
182k
AI agent platform for building, deploying, and running autonomous workflows
Created 3 years ago
Updated 20 hours ago
Feedback? Help us improve.