cross-cli-consistency-checker

cross-cli-consistency-checker is an agent for coding agents from ItamarZand88/CLI-Anything-WEB. It costs 71 tokens per session (1,814 once invoked), scanned A, original, MIT.

A portfolio-wide checker for command-line tools built with the same framework. It compares each CLI with shared conventions and reports pass or fail results in a matrix.

In plain words
What is it for?
Use it periodically or before release to audit every registered CLI for shared coding conventions and detect drift in the common interactive interface.
Why use it?
It exposes differences that develop between tools over time, including inconsistent error handling, interactive styling, and required metadata files.

Agent

Part of the cli-anything-web plugin — 6 skills, 6 commands, 4 agents, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/itamarzand88/cli-anything-web/cross-cli-consistency-checker
Clone the repo
git clone --depth 1 https://github.com/ItamarZand88/CLI-Anything-WEB

Or install cli-anything-web, the plugin that ships this one along with the rest of its 6 skills, 6 commands, 4 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cross-cli-consistency-checker

README.md
[![agentmods](https://agentmods.dev/badge/agents/itamarzand88/cli-anything-web/cross-cli-consistency-checker.svg)](https://agentmods.dev/agents/itamarzand88/cli-anything-web/cross-cli-consistency-checker)
Your own site
<a href="https://agentmods.dev/agents/itamarzand88/cli-anything-web/cross-cli-consistency-checker"><img src="https://agentmods.dev/badge/agents/itamarzand88/cli-anything-web/cross-cli-consistency-checker.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,814 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00071 $0.01814
Opus 5 $0.00036 $0.00907
Sonnet 5 $0.00014 $0.00363
Haiku 4.5 $0.00007 $0.00181

Measured 5d ago against content hash 105d2d727553, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cross-cli-consistency-checker scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cli-anything-web-plugin/agents/cross-cli-consistency-checker.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cross-CLI Consistency Checker

Audit all generated cli-web-* CLIs against the conventions defined in skills/shared/CONVENTIONS.md. This is a read-only audit — it reports findings but does not auto-fix.


Step 1: Discover CLIs

Read registry.json at the repository root to get the list of all CLIs. For each entry, note the directory, namespace, and auth fields.

Fallback: If registry.json doesn't exist, glob for */agent-harness/cli_web/*/__init__.py to find CLI packages.

Step 2: Locate Reference Files

The canonical repl_skin.py lives in the shared runtime package: cli-web-core/cli_web_core/repl_skin.py (the copy at cli-anything-web-plugin/scripts/repl_skin.py is a vendored mirror synced by cli-web-devkit resync). Drift detection against it is automated — see Check 11. Also read skills/shared/CONVENTIONS.md for the rule definitions behind the checks below.

Step 3: Run Check Matrix

For each discovered CLI, run all applicable checks. Mark checks as N/A when they don't apply (e.g., auth checks for no-auth CLIs).

Check 1: Exception Hierarchy (Critical)

Read core/exceptions.py and verify:

  • Base error class exists with to_dict() method
  • All 5 subtypes present: AuthError, RateLimitError, NetworkError, ServerError, NotFoundError
  • RateLimitError has retry_after field AND to_dict() includes it
  • ServerError stores status_code as instance attribute
  • raise_for_status() maps: 401/403→AuthError, 404→NotFoundError, 429→RateLimitError, 5xx→ServerError

How to check:

Grep for "def to_dict" in exceptions.py
Grep for "retry_after" in exceptions.py — must appear in both __init__ and to_dict
Grep for "status_code" in ServerError class

Check 2: UTF-8 Fix (Critical)

Read *_cli.py and verify BOTH stdout AND stderr are reconfigured:

Grep for "stdout.reconfigure" and "stderr.reconfigure" in *_cli.py
Both must be present. Only stdout = FAIL.

Check 3: REPL Parsing (Critical)

Read *_cli.py and verify shlex.split is used in the REPL loop:

Grep for "shlex.split" in *_cli.py — must be present
Grep for "line.split()" in *_cli.py — must NOT be present (or only in non-REPL context)

Read the full file on GitHub · 205 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 205 lines · 71 tokens per session scan A 105d2d727553

Subscribe to this mod's changes

cross-cli-consistency-checker is an agent published in the GitHub repository ItamarZand88/CLI-Anything-WEB (215 stars, last pushed 4d ago), licensed MIT. It adds 71 tokens to every session and 1,814 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.