claude-code-ci-harness

claude-code-ci-harness is a skill for Claude Code from air-gapped/skills. It costs 67 tokens per session (1,021 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 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,021 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.00067 $0.01021
Opus 5.5 $0.00027 $0.00408
Sonnet 5.5 $0.00013 $0.00204
Haiku 4.5 $0.00007 $0.00102

Measured 2d ago against content hash c7f1fdcaeecb, 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 2d 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 · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 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.

  • 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.

Do not change in the runner

Keep Reason
--safe-mode Disables CLAUDE.md, skills, plugins and hooks.
--permission-mode dontAsk Without it, -p starts in auto mode.
--strict-mcp-config with an empty config Blocks the caller's MCP servers.
Empty ANTHROPIC_API_KEY Stops an inherited key from overriding the intended token.
No --bare It disables OAuth and has dropped Glob from --tools.

Read the full file on GitHub · 80 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. 2d 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 (5 stars, last pushed 2d ago), licensed MIT. It adds 67 tokens to every session and 1,021 once invoked, about $0.0003 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

Other skills, from other repositories

quality-scan

Run a scoped, read-only quality scan and report exact-candidate evidence, failures and frozen debt. Use for an ad-hoc gate sweep or release preparation; a static scan is not full release acceptance.

diegosouzapw/OmniRoute · 45 tokens

sweep-reds

Repair confirmed CI failures base-first, then prepare affected PRs one at a time with exact-candidate evidence. Use when asked to sweep reds or restore the queue. Never merges, closes PRs, weakens tests, or changes CI under ordinary sweep authority.

diegosouzapw/OmniRoute · 57 tokens

test-setup

Scaffold the test framework and CI — tests/ directory, engine test runner, GitHub Actions workflow. Once, before the first sprint.

Donchitos/Claude-Code-Game-Studios · 32 tokens

ci-speedup

Cuts the wait from push to green by measuring a pipeline's critical path from run timestamps, then splitting, sharding, trimming setup and sharing test module state, with a before/after ledger. Use when asked to "speed up CI", "CI is slow", "why does a PR take 15 minutes", "CI is the bottleneck", or when agents merge…

mblode/agent-skills · 83 tokens

ci-all

Full CI pipeline: run local tests, type check, push branch, and return the pipeline URL. The only command you need before opening a PR.

FlorianBruniaux/claude-code-ultimate-guide · 33 tokens

audit-harness

Use when auditing HARNESS.md, pre-commit hooks, pre-push hooks, architecture gates, or CI workflows for tunacode-cli. This skill treats any mismatch, skipped gate, or failing check as a critical failure and requires manual one-by-one execution rather than make targets, batch wrappers, or summary-only audits.

alchemiststudiosDOTai/tunacode · 69 tokens