claude-code-ci-harness

claude-code-ci-harness is a skill for Claude Code from air-gapped/skills. It costs 61 tokens per session (1,483 once invoked), scanned A, original, MIT.

A test harness that runs Claude Code without its normal interactive interface, in an isolated environment. It can send requests to Anthropic-compatible model endpoints or use a Claude subscription token and save stream transcripts.

In plain words
What is it for?
It is for running multi-turn scenarios in CI, checking tool use, saving NDJSON transcripts, and diagnosing endpoint or model compatibility.
Why use it?
It keeps credentials and configuration separate from the operator's setup and supports checks based on tool calls and streamed events rather than only a process exit code.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit It is for running multi-turn scenarios in CI, checking tool use, saving NDJSON transcripts, and diagnosing endpoint or model compatibility.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/air-gapped/skills/claude-code-ci-harness
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.

Any agent
npx skills add air-gapped/skills --skill claude-code-ci-harness
Clone the repo
git clone --depth 1 https://github.com/air-gapped/skills

Made for: Claude Code.

Its marketplace also offers this one on its own, as the plugin claude-code-ci-harness — /plugin install claude-code-ci-harness after adding the marketplace above.

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-code-ci-harness

README.md
[![agentmods](https://agentmods.dev/badge/skills/air-gapped/skills/claude-code-ci-harness/github.svg)](https://agentmods.dev/skills/air-gapped/skills/claude-code-ci-harness)
Your own site
<a href="https://agentmods.dev/skills/air-gapped/skills/claude-code-ci-harness"><img src="https://agentmods.dev/badge/skills/air-gapped/skills/claude-code-ci-harness/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for claude-code-ci-harness

Your own site · 80×15
<a href="https://agentmods.dev/skills/air-gapped/skills/claude-code-ci-harness"><img src="https://agentmods.dev/badge/skills/air-gapped/skills/claude-code-ci-harness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,483 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00061 $0.01483
Opus 5.5 $0.00024 $0.00593
Sonnet 5.5 $0.00012 $0.00297
Haiku 4.5 $0.00006 $0.00148

Measured 10d ago against content hash da20169c3624, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

claude-code-ci-harness 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 10d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/assert-events.sh, scripts/cleanup.sh, scripts/isolated-run.sh, …), 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.

.claude/skills/claude-code-ci-harness/SKILL.md · 85 lines

How it starts

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

Claude Code CI Harness

Never invoke claude directly for a test. Always use scripts/isolated-run.sh. It isolates the run from the caller's profile.

Run

${CLAUDE_SKILL_DIR}/scripts/isolated-run.sh MODE_FLAGS \
  --workdir DIR --transcript OUT.ndjson --prompt 'PROMPT'
Mode MODE_FLAGS
Endpoint, no auth --base-url URL --model SERVED_NAME
Endpoint, bearer token --base-url URL --model SERVED_NAME --token-var VAR
Endpoint, X-Api-Key header --base-url URL --model SERVED_NAME --token-var VAR --x-api-key
Claude subscription --model CLAUDE_ALIAS_OR_ID (no --base-url; token var defaults to CLAUDE_CODE_OAUTH_TOKEN)
Flag Rule
--base-url Endpoint root without /v1, local or remote.
--model The exact name the endpoint serves; a Claude alias or ID in subscription mode.
--token-var Name of a variable in the secrets file.
--x-api-key Only for endpoints that require the token in an X-Api-Key header.
--tools Built-in tool allowlist. Default: Read,Glob.
--timeout Wall-clock limit in seconds. Default: 180. 0 disables it.

Secrets

The secrets file is ~/.config/claude-code-ci-harness/targets.env. Each line is KEY=value. The file must be mode 0600, owned by the user, not a symlink, and outside Git. The runner rejects any other file.

  • CI job: write the file from the CI secret store with umask 077 to a path outside the checkout (for example $RUNNER_TEMP/targets.env). Pass it with CLAUDE_CODE_CI_SECRETS_FILE=PATH, which run-matrix.sh also honours, or --secrets-file PATH. A file inside the checkout is rejected as inside Git.
  • Subscription token: the user runs claude setup-token in a separate terminal and adds CLAUDE_CODE_OAUTH_TOKEN=<token> to the file. Never run setup-token inside an agent session, because the token would land in the transcript.
  • Never copy ~/.claude/.credentials.json into a run. Its refresh token rotates, and a rotated copy logs out the user.
  • Never put a token in a flag, a transcript or the skill directory.

Read the full file on GitHub · 85 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. 10d ago Changed · -6 tokens per session da20169c3624
  2. 1mo ago Changed · +5 lines 979fb005c48f
  3. 1mo ago First seen · 80 lines · 67 tokens per session scan A c7f1fdcaeecb

Subscribe to this mod's changes

claude-code-ci-harness is a skill published in the GitHub repository air-gapped/skills (8 stars, last pushed 6d ago), licensed MIT. It adds 61 tokens to every session and 1,483 once invoked, about $0.0002 per session on Opus 5.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-10-15.

Related

claude-code-ci-harness compared with skills from other repositories

claude-code-ci-harness next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
claude-code-ci-harnessair-gapped/skillsSkill86d agoMITA61Claude Code
infra-standardsPrabhdeepSingh/claude-pluginsSkill421d agoMITA64Claude Code
infrastructure-planninglukaskellerstein/claude-my-marketplaceSkill313d agononeA64Claude Code
deployment-patternsaffaan-m/ECCSkill314kyesterdayMITA41Claude Code, Kiro
mcp-dependency-reviewaffaan-m/ECCSkill314kyesterdayMITA52Claude Code, Codex
quality-scandiegosouzapw/OmniRouteSkill91k2d agoMITA45Claude Code, Codex
vercelasgeirtj/system_prompts_leaksSkill74k2d agoCC0-1.0A52Claude Code, Codex