Top 200 ReposEXPLORER
Browse agents, categories and pages
Back to results
Planned, not doneThe source describes an intention, not a finished result.

Generate a command-line interface for your software so an agent can operate it

Overview

Use the CLI-Anything plugin in Claude Code to read a program's source code and build a tested command-line interface that an agent can call instead of clicking through menus.

Problem or Objective

More in Coding and Code Review

AI Agents and Models

Tools and Integrations

Tools
CLI-Anything · Claude Code · Python
Prerequisites
Claude Code with the CLI-Anything plugin, Python 3.10 or later, the source code of the target software, and the original application where the generated tool depends on it.

How It Works

Pick a program or codebase you are allowed to modify and that has source code available, and work on a copy inside a disposable environment with Python 3.10 or later. In Claude Code, add the marketplace with /plugin marketplace add HKUDS/CLI-Anything, install it with /plugin install cli-anything, then run /cli-anything with the path or repository of your software. The README describes a pipeline that analyses the source, designs command groups, implements a command-line tool with JSON output, plans and writes tests, documents them and packages the result so it installs on your PATH. Ask Claude Code to stop before the packaging step; check before the first run that it asks before running install commands, and if it does not, run the build in a throwaway virtual environment and review the code before installing it anywhere else. Review the code, command list and test results, and approve the install only then. Try the commands on sample files first, approve any command that changes real data, and use /cli-anything:refine to fill gaps.

Implementation Workflow

Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.

  1. Choose the agentSet up Claude Code.
  2. Connect the toolsConnect the tools this workflow relies on: CLI-Anything, Claude Code, Python.
  3. Check the prerequisitesClaude Code with the CLI-Anything plugin, Python 3.10 or later, the source code of the target software, and the original application where the generated tool depends on it.
  4. Gather your detailsCollect what the prompt asks for: Source folder or repository, Jobs the commands should cover, Sample data folder.
  5. Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
  6. Check against the documentationCompare what you get with the documentation at youtube.com before you rely on it.

Practical Starter Prompt: Build a command interface with a review stop

Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].

Preview
Use CLI-Anything to build a command-line interface for the software at [Source folder or repository], which I am allowed to modify. Concentrate on these jobs: [Jobs the commands should cover]. Work only on this copy inside the current virtual environment and use sample files from [Sample data folder]. Before packaging or installing anything on my PATH, stop and show me the proposed commands, which of them change or delete data, the new dependencies, and the test results including failures. Wait for my approval before installing. After that, never run a data-changing command on anything outside the sample folder without asking me first.

Check before the first run that Claude Code asks before install commands, or use a throwaway environment. Review the generated code and tests before approving the install, keep real data away from the first runs, and approve each command that changes data.

Expected Results and Benefits

This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.

This is a suggested workflow, not a reported outcome. The video's description introduces the project, and its README documents installation, the build phases and stated limitations. No particular build or result is reported here, and the generator was not run for this entry. This entry is based on the video's published description.

Limitations and Considerations

The README says reliable generation depends on frontier-class models, that quality drops sharply when only compiled binaries are available, and that one run may not cover everything. Some generated tools also need the original application installed. On Windows, Claude Code needs Git for Windows or WSL for these commands. Community tools from the project's hub are separate third-party code, so inspect them before installing. Check the licence and terms of the software or web API you wrap, and check that Claude Code asks before running commands that install or change files. Check what a long generation run costs on your plan. Results depend on your setup and were not independently reproduced by Top 200 Repos.

GitHub Repositories

AI Agent Repository

Source code of the agent that does the work.

Tool Repository

A tool this workflow relies on.

Related Videos

About anthropics/claude-code

About anthropics/claude-code

Independent creators. Listing a video implies no endorsement, sponsorship or partnership.

Sources

  1. CLI-Anything: Turn Any Software Into a CLI Your AI Agent Can Use (opens in a new tab)

    First-person account · youtube.com · Published 2 Dec 2026 · Source checked 4 Dec 2026, 12:25 UTC

    What this source supports
    • The description introduces CLI-Anything, from HKUDS, as open source that builds command interfaces for programs, codebases and web APIs.
    • It argues that menu-driven applications are awkward for agents, and that typed commands let them work the software directly.
  2. HKUDS/CLI-Anything README (opens in a new tab)

    Project documentation · github.com · Undated · Source checked 4 Dec 2026, 12:27 UTC

    What this source supports
    • CLI-Anything is distributed as a Claude Code plugin marketplace hosted on GitHub.
    • When the target software only provides compiled binaries that require decompilation, harness quality and coverage will degrade substantially.
    • A single /cli-anything run may not fully cover all capabilities.
Report a problem

More with Claude Code

Planned, not done

Create Custom Store Tools Instead of Paying for Subscriptions

Use Claude Code to write small in-house tools for an online shop, such as a reply helper for support mail or a margin report, as an alternative to paying for separate apps, with testing before you rely on them.

code.claude.comanthropics/claude-code
Reported by source

Answer technical questions by letting async agents run experiments

Simon Willison sends research questions to cloud coding agents such as Claude Code for web and Codex Cloud, which write and run experiments in a dedicated repo and open a PR.

simonwillison.net · 6 Nov 2025anthropics/claude-code, openai/codex
Planned, not done

Structure Repeated Browser Research Into Evidence Tables

Give Claude Code the open-source Browser Use CLI with a local browser, ask the same research questions across a short list of pages, and keep every answer as a sourced table row.

github.comanthropics/claude-code, browser-use/browser-use

View all: Claude Code