百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

cliare

> AI 编程
开源

CLI 代理准备度测量、命令形状推断和 CI 评分卡

592 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

CLI 代理准备度测量、命令形状推断和 CI 评分卡

CLIARE

CLIARE audits command-line interfaces for agent readiness.

It is like OpenAPI/Swagger for CLIs, but generated from runtime evidence rather than hand-written docs.

Agents increasingly use terminals as their operating surface, but most CLIs were designed for humans reading help text. An agent harness needs a different contract before it spends tokens trying commands:

  • Which commands actually exist?
  • Which flags and positionals are safe to use?
  • Which commands have parseable JSON/YAML output?
  • Which paths require auth, a project directory, fixtures, network access, or a local daemon?
  • Which "safe" discovery commands quietly write files?

CLIARE answers those questions by measuring the released CLI binary as a black box. It probes runtime behavior under bounded controls, records evidence, infers the command surface, detects side effects, and emits command indexes, issue ledgers, scorecards, one-command summaries, persona reports, CI artifacts, and agent skills.

CLIARE stands for CLI Agent Readiness Evaluation.

Star History

From CLI Drift to Agent-Ready Command Surfaces

CLIARE is pronounced like "Claire": she cares about whether your CLI can be used reliably by agents, maintainers, and security reviewers.

1. CLIs are becoming agent hands

Agents increasingly use CLIs as their hands: the practical surface for reaching code hosts, cloud systems, payment services, internal platforms, and local developer workflows.

bash
cargo install cliare
cliare metadata --format json

2. CLI surfaces drift as they grow

When a CLI evolves quickly, the docs, --help, and the released binary can start telling different stories. Humans can work around that drift. Agents tend to discover it the expensive way.

bash
cliare measure mycli --out .cliare/mycli --profile standard --refresh

3. Drift becomes token burn

Without an evidence-backed command index, an agent harness has to rediscover the surface repeatedly: run help, try a flag, hit a missing operand, back up, and try again. That loop costs tokens, latency, and reliability.

bash
cliare summary --out .cliare/mycli

4. CLIARE probes the CLI like an agent would

CLIARE exercises the released binary as a black box. You choose the context: clean, repository, authenticated, host, fixture-backed, or CI. CLIARE records evidence instead of relying on stale assumptions.

bash
cliare measure mycli \
  --out .cliare/mycli \
  --context authenticated \
  --auth-state present \
  --execution-mode host \
  --profile deep \
  --refresh

5. Maintainers get a release-time fix queue

For maintainers, CLIARE turns agent-readiness gaps into a concrete queue: missing help, confusing diagnostics, parseable-output gaps, unsafe discovery side effects, precondition blockers, and command-shape drift.

bash
cliare summary --out .cliare/mycli
cliare report maintainer --out .cliare/mycli --format markdown
cliare issues list --out .cliare/mycli --format markdown
cliare playbook maintainer --target mycli

6. Harnesses get a command index

For agent harnesses, CLIARE builds the map: an evidence-backed command index that describes command paths, flags, operands, preconditions, output contracts, confidence, suitability, and evidence references.

bash
cliare describe .cliare/mycli --write
cliare summary --out .cliare/mycli --format json
cliare report harness --out .cliare/mycli --write
cliare playbook harness --target mycli

The harness can then load:

.cliare/mycli/command-index.json
.cliare/mycli/AGENT_SKILL.md
.cliare/mycli/persona-harness.json

7. Skills teach; indexes map

Skills are useful, but they are not command indexes. A skill can teach intent, workflow, and policy. A command index tells the harness what the CLI actually supports right now. Agents need both: instruction for judgment, evidence for navigation.

bash
cliare summary --out .cliare/mycli
cliare report harness --out .cliare/mycli --format markdown
cliare report security --out .cliare/mycli --format markdown
cliare issues list --out .cliare/mycli --format human

CLIARE helps maintainers keep CLIs aligned, helps security reviewers catch undocumented side effects, and helps agents use CLIs deliberately instead of rediscovering syntax by trial and error.

Why Run CLIARE?

For CLI Maintainers

CLIARE turns vague "is this CLI agent-friendly?" feedback into a concrete implementation queue.

It shows where agents will struggle with command discovery, help coverage, diagnostics, output contracts, preconditions, and unsafe discovery behavior. Instead of guessing what to improve, maintainers get evidence-backed assessments, their meaning for agents and harnesses, associated commands, suggested remedies, and verification commands.

Benefits:

  • Catch command-shape drift before it ships.
  • Prioritize fixes by agent impact instead of anecdotal feedback.
  • Add release gates for help coverage, diagnostics, parseable output, and unsafe discovery behavior.
  • Give downstream agent harnesses a measured contract for each release.

For Security Reviewers

CLIARE catches undocumented runtime behavior in binaries.

It snapshots filesystem state around each probe and reports persistent side effects from safe-looking commands such as help, version, invalid flag, and output-mode probes. This helps security teams find cache/config writes, credential-like paths, and host/auth behavior before a CLI is exposed to autonomous agents.

Benefits:

  • Surface side effects from commands that appear read-only or safe.
  • Separate expected auth, host, network, daemon, and fixture behavior from surprises.
  • Preserve evidence references for review, exception handling, and audit trails.
  • Decide which commands are safe for autonomous use and which require policy, sandboxing, or human approval.

For Agent Harness Builders

CLIARE creates a measured command surface that harnesses can query before agents explore.

Harnesses should use cliare surface query, cliare surface explain, and cliare surface list for compact intent-to-command routing answers. command-index.json remains the evidence-backed source of truth when a route needs audit or debugging.

Benefits:

  • Reduce token burn from repeated --help, flag-guessing, and error-recovery loops.
  • Route through commands with known preconditions, confidence, and agent suitability.
  • Prefer JSON/YAML output when the agent needs machine-readable state.
  • Keep skills focused on workflow while the command index remains the runtime source of truth.

What You Get

A measurement writes one artifact directory:

…

The key artifact is command-index.json. It records command paths, argv forms, summaries, confidence, runtime state, agent suitability, flags, positionals, preconditions, output contracts, gaps, and evidence references.

Reading a Measurement

Start with the one-command summary:

bash
cliare summary --out .cliare/mycli

cliare summary reads scorecard.json, issues.json, command-index.json, and evidence.jsonl and prints one concise assessment. Each finding includes:

  • Assessment: what CLIARE found.
  • Meaning: why it matters for agent or harness use.
  • Associated commands: the command paths attached to the finding.
  • Evidence excerpts: bounded stdout/stderr snippets from the process evidence that supports the finding.
  • Suggested remedy: the CLI change or review action to take next.

Use JSON when another tool or harness needs the same interpretation without scraping Markdown:

bash
cliare summary --out .cliare/mycli --format json

Then drill down with the role-specific commands:

Command Use When
cliare summary --out .cliare/mycli You want the shortest human-readable assessment of the run.
cliare report maintainer --out .cliare/mycli You maintain the CLI and need a prioritized implementation queue.
cliare report harness --out .cliare/mycli --write You are preparing command-index and harness artifacts for agents.
cliare report security --out .cliare/mycli You need side-effect, auth, host, and approval context.
cliare issues list --out .cliare/mycli You need the full issue ledger or maintainer dispositions.
cliare surface query ... --out .cliare/mycli A harness needs a compact intent-to-command routing answer.
cliare surface explain ... --out .cliare/mycli A harness or reviewer needs one command's readiness, operands, and output contract.
cliare surface list --out .cliare/mycli You need a filtered list of measured command paths.

Install

Install from crates.io:

bash
cargo install cliare
cliare metadata --format text

Or install the latest prebuilt binary from GitHub Releases:

bash
curl -fsSL https://github.com/modiqo/cliare/releases/latest/download/install.sh | sh
cliare metadata --format text

The installer detects macOS/Linux and x86_64/aarch64, downloads the matching archive, verifies SHA256SUMS, and installs cliare into $HOME/.local/bin by default.

To install somewhere else:

bash
curl -fsSL https://github.com/modiqo/cliare/releases/latest/download/install.sh | CLIARE_INSTALL_DIR=/usr/local/bin sh

To install a specific release:

bash
curl -fsSL https://github.com/modiqo/cliare/releases/download/v0.1.9/install.sh | CLIARE_VERSION=v0.1.9 sh

Or install from source:

bash
git clone https://github.com/modiqo/cliare.git
cd cliare
cargo install --path .
cliare metadata --format json

Nix

The project provides optional Nix flake outputs for users who already use Nix. The flake wraps the prebuilt release binary.

bash
# Run without installing
nix run github:modiqo/cliare

# Install into your profile
nix profile install github:modiqo/cliare

The flake tracks the default branch and is auto-bumped to the latest release by a daily workflow, so github:modiqo/cliare always serves the current release. (Release tags are cut before the bump lands, so github:modiqo/cliare/vX.Y.Z is not a valid pin — use the nixpkgs package or a specific commit SHA if you need reproducibility.)

Devbox

For reproducible development environments, use Devbox:

bash
# Install Devbox first (if not already installed)
curl -fsSL https://get.jetify.dev/devbox | bash

# Initialize the environment
devbox shell

# Build the project
devbox run build

Or install Devbox via Homebrew:

bash
brew install jetify-com/devbox/devbox

For local development:

bash
cargo build --locked --bin cliare
./target/debug/cliare metadata --format json

The source package also includes a justfile with optional command shortcuts for common CLIARE workflows. Install just separately if you want to use these recipes; the cliare binary itself does not require it.

List available recipes:

bash
just --list

Run the local preflight gate before pushing:

bash
just justdev

just justdev runs formatting, workspace checks, clippy with warnings denied, tests, package file-set checks, and a quick CLIARE-on-CLIARE measurement.

Measure a large local CLI surface in the background:

bash
just measure-detached supabase
just jobs supabase

This expands to a deep traversal that writes artifacts under .cliare/supabase:

bash
cliare measure supabase --out .cliare/supabase --profile deep --max-depth 12 --max-probes 5000 --concurrency 8 --refresh --detach

Override traversal budget when a CLI needs more or less exploration:

bash
just max_depth=16 max_probes=10000 measure-detached gh
just profile=standard max_depth=5 max_probes=256 measure kubectl

For path-based local binaries, pass a stable artifact id:

bash
just measure-detached ./target/release/mycli mycli

Review accumulated artifacts:

bash
just review supabase
just report supabase security
just agent-surface supabase

Release preparation lives in RELEASE.md. The version h

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustaiai-agentscli

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类AI 编程
定价开源

> 相关工具

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.