cli-anything-web:refine

cli-anything-web:refine is a command for coding agents from ItamarZand88/CLI-Anything-WEB. It costs 43 tokens per session (756 once invoked), scanned A, original, MIT.

A command for expanding an existing command-line tool for a web app by recording more network traffic and adding missing commands. It first compares the app's observed interface with what the tool already supports.

In plain words
What is it for?
Use it to analyze missing API operations, optionally focus on one area, record more traffic when needed, and implement the missing endpoint methods and commands.
Why use it?
It identifies gaps before implementation, reducing the chance of adding commands without evidence that the web app supports them. It also keeps new work aligned with the standards used for the original tool.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the cli-anything-web-plugin 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 commands/itamarzand88/cli-anything-web/refine
Clone the repo
git clone --depth 1 https://github.com/ItamarZand88/CLI-Anything-WEB

Or install cli-anything-web-plugin, 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 cli-anything-web:refine

README.md
[![agentmods](https://agentmods.dev/badge/commands/itamarzand88/cli-anything-web/refine.svg)](https://agentmods.dev/commands/itamarzand88/cli-anything-web/refine)
Your own site
<a href="https://agentmods.dev/commands/itamarzand88/cli-anything-web/refine"><img src="https://agentmods.dev/badge/commands/itamarzand88/cli-anything-web/refine.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 756 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.00043 $0.00756
Opus 5 $0.00022 $0.00378
Sonnet 5 $0.00009 $0.00151
Haiku 4.5 $0.00004 $0.00076

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

Security

Grade A, and why

cli-anything-web:refine 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 4d 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/commands/refine.md · 65 lines

How it starts

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

CRITICAL: Read HARNESS.md First

Before refining, read ${CLAUDE_PLUGIN_ROOT}/HARNESS.md. All new commands and tests must follow the same standards as the original build. HARNESS.md is the navigational overview; the rules themselves are defined in ${CLAUDE_PLUGIN_ROOT}/skills/shared/CONVENTIONS.md.

CLI-Anything-Web: Refine Existing Harness

Read the methodology SOP: @${CLAUDE_PLUGIN_ROOT}/HARNESS.md

Target: $1 Focus area: $2

Process

Skills used: gap-analyzer (mandatory FIRST step), methodology (pipeline), capture (if re-recording)

  1. Gap analysis (FIRST step — always): Invoke the gap-analyzer skill (${CLAUDE_PLUGIN_ROOT}/skills/gap-analyzer/SKILL.md) with APP_PATH=<app>/agent-harness. It diffs the captured/documented API surface against the implemented commands and client methods. Every reported gap must cite its evidence: the endpoint entry in <APP>.md and/or traffic-capture/traffic-analysis.json (with raw-traffic.json hit counts for priority). If a focus area is specified, filter the report to that domain.
  2. Present gap report: Show the user the gap analysis results and confirm which gaps to address before proceeding with any recording or implementation
  3. Record new traffic: Use playwright-cli (see HARNESS.md Phase 1) or chrome-devtools-mcp fallback
  4. Analyze new endpoints: Add to API map in <APP>.md
  5. Implement new commands: Add to existing command groups or create new ones
  6. Update REPL help: Edit _print_repl_help() in <app>_cli.py to reflect every new command and option added (CONVENTIONS.md §REPL Rules help-sync rule). Users typing help in the REPL must see all available filters and options.
  7. Update tests: Add unit + E2E tests for new commands
  8. Run full test suite: Ensure no regressions
  9. Update TEST.md: Document new coverage

Rules

  • NEVER break existing commands
  • NEVER change existing command signatures
  • ADD new commands and options only
  • Run full test suite after changes
  • Update <APP>.md with new endpoints
  • Always update _print_repl_help() to match the actual command surface

Read the full file on GitHub · 65 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. 4d ago First seen · 65 lines · 43 tokens per session scan A 2564881e8f7b

Subscribe to this mod's changes

cli-anything-web:refine is a command published in the GitHub repository ItamarZand88/CLI-Anything-WEB (216 stars, last pushed 10d ago), licensed MIT. It adds 43 tokens to every session and 756 once invoked, about $0.0002 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.