claude-cli-agent

claude-cli-agent is a skill for Claude Code, Codex from ImL1s/agent-cli-skills. It costs 99 tokens per session (853 once invoked), scanned A, original, MIT.

A set of shell wrappers for running Anthropic's Claude Code command-line agent without an interactive screen.

In plain words
What is it for?
Use it to ask Claude Code to implement or review changes, explore a repository, run with selected permissions or tools, use subagents, or execute in CI and other headless environments.
Why use it?
It makes Claude Code runs repeatable and configurable for repository work, read-only reviews, longer efforts, agent teams, and isolated worktrees.

Skill for Claude CodeCodex

Part of the agent-cli-skills plugin — 7 skills 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 skills/iml1s/agent-cli-skills/claude-cli-agent
Any agent
npx skills add ImL1s/agent-cli-skills --skill claude-cli-agent
Clone the repo
git clone --depth 1 https://github.com/ImL1s/agent-cli-skills

Made for: Claude Code, Codex.

Or install agent-cli-skills, the plugin that ships this one along with the rest of its 7 skills.

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 claude-cli-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/iml1s/agent-cli-skills/claude-cli-agent.svg)](https://agentmods.dev/skills/iml1s/agent-cli-skills/claude-cli-agent)
Your own site
<a href="https://agentmods.dev/skills/iml1s/agent-cli-skills/claude-cli-agent"><img src="https://agentmods.dev/badge/skills/iml1s/agent-cli-skills/claude-cli-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 853 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.00099 $0.00853
Opus 5 $0.00049 $0.00426
Sonnet 5 $0.00020 $0.00171
Haiku 4.5 $0.00010 $0.00085

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

Security

Grade A, and why

claude-cli-agent 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.

The scan reads SKILL.md. This mod also ships 4 executable files (claude-exec.sh, lib/common.sh, lib/parse_stream_json.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/claude-cli-agent/SKILL.md · 61 lines

How it starts

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

Claude Code CLI (claude -p) Executor

When to use

  • User wants Claude Code / claude as the coding agent
  • Need ultracode, workflows, --agents, or worktree isolation from an orchestrator
  • Read-only second opinions (-r plan mode)

For cross-CLI councils, pair with multi-cli-spawn.

Wrapper

./claude-exec.sh -C /path/to/repo "Implement X; stop when done."
./claude-exec.sh -r -C /path/to/repo "Second opinion on this design"
./claude-exec.sh -T -C /path/to/repo "Large audit — use ultracode workflows"
./claude-exec.sh -e high -m sonnet -o json -f /tmp/bundle.txt
./claude-exec.sh -w task-branch --agents '{"reviewer":{"description":"Reviews","prompt":"You review code"}}' "…"

Flags: -m · -t · -C · -o text|json|stream-json · -f · -r (plan mode) · -T/--ultracode--effort ultracode + multi-agent preamble · -P permission-mode · -e effort · -w worktree · --agents JSON · --allowed-tools · --disallowed-tools · --add-dir · --system-prompt · --append-system-prompt · --mcp-config · --strict-mcp-config · --bare · --ask-permissions · --no-git · -- passthrough.

Default executor uses --dangerously-skip-permissions. Setting -P or -r clears that skip. Prefer capturing stdout for reports. -C is absolutized before use.

Native multi-agent / ultracode

Mechanism What it is How to enable
Dynamic workflows JS orchestration script fans out many subagents Ask for a workflow, or keyword ultracode
ultracode Session policy: xhigh effort + auto-workflow for substantive tasks -T / --effort ultracode / interactive /effort ultracode
--agents JSON Custom agent definitions for the session --agents '{...}'
claude agents Manage background agents Separate subcommand
Agent teams Small peer set that renegotiates live Product feature; see Claude Code docs
--worktree Isolated git worktree for the session -w [name]

Read the full file on GitHub · 61 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 61 lines · 99 tokens per session scan A a157e3019813

Subscribe to this mod's changes

claude-cli-agent is a skill published in the GitHub repository ImL1s/agent-cli-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 99 tokens to every session and 853 once invoked, about $0.0005 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-31.