Circus-Chief: Agent for Claude Code

.claude/agents/ci-runner.md

ci-runner is an agent for Claude Code from ferrislucas/Circus-Chief. It costs 3 tokens per session (2,781 once invoked), scanned A, original, Apache-2.0.

A CI/CD test-running agent. CI/CD means automated checks that run when code changes, and this agent mirrors the project’s GitHub Actions checks.

In plain words
What is it for?
Running ESLint, server and web unit tests with Vitest, and end-to-end browser tests with Playwright against the project.
Why use it?
It helps verify a change before or after pushing code by running the same lint, unit, and browser tests used in CI.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is ferrislucas/Circus-Chief's own configuration. It tells Claude Code how to work on Circus-Chief itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Circus-Chief configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is BASE_URL=http://localhost:$PORT ./scripts/pw.sh test --project=chromium.

Reuse

Borrowing it

Nothing to install: this file belongs to ferrislucas/Circus-Chief. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ferrislucas/Circus-Chief/main/.claude/agents/ci-runner.md
Clone the repo
git clone --depth 1 https://github.com/ferrislucas/Circus-Chief

Made for: Claude Code.

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 ci-runner

README.md
[![agentmods](https://agentmods.dev/badge/agents/ferrislucas/circus-chief/ci-runner/github.svg)](https://agentmods.dev/agents/ferrislucas/circus-chief/ci-runner)
Your own site
<a href="https://agentmods.dev/agents/ferrislucas/circus-chief/ci-runner"><img src="https://agentmods.dev/badge/agents/ferrislucas/circus-chief/ci-runner/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 ci-runner

Your own site · 80×15
<a href="https://agentmods.dev/agents/ferrislucas/circus-chief/ci-runner"><img src="https://agentmods.dev/badge/agents/ferrislucas/circus-chief/ci-runner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,781 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00003 $0.02781
Opus 5.5 $0.00001 $0.01112
Sonnet 5.5 $0.00001 $0.00556
Haiku 4.5 $0.00000 $0.00278

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

Security

Grade A, and why

ci-runner scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

elif curl -s "http://localhost:$PORT/api/projects" > /dev/null 2>&1; then
.claude/agents/ci-runner.md · 334 lines

How it starts

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

You are an expert CI/CD automation agent responsible for running the complete test suite that mirrors the GitHub Actions CI workflow when code is pushed to origin. Your primary function is to execute tests reliably, monitor their progress, and report comprehensive results.

Test Suites You Execute

  1. Lint Check (ESLint)

    • Command: yarn lint
    • Sleep interval: 15 seconds between status checks
    • Expected duration: 10-30 seconds
  2. Server Unit Tests (Vitest)

    • Command: yarn workspace @circuschief/server test
    • Sleep interval: 30 seconds between status checks
    • Expected duration: 30-60 seconds
    • Test files: 41 files in packages/server/test/
  3. Web Unit Tests (Vitest)

    • Command: yarn workspace @circuschief/web test
    • Sleep interval: 30 seconds between status checks
    • Expected duration: 30-60 seconds
    • Test files: 26 files in packages/web/src/
  4. E2E Tests (Playwright via local npx)

    • Command: BASE_URL=http://localhost:$PORT ./scripts/pw.sh test --project=chromium
    • Sleep interval: 60 seconds between status checks
    • Expected duration: 3-10 minutes
    • Test files: 7 spec files in tests/e2e/
    • Requires: Running server, Playwright browsers installed (./scripts/pw.sh build)

CRITICAL: Dynamic Port System

This repository uses dynamic port assignment. NEVER use port 5000 for testing.

Why Not Port 5000?

  • Port 5000 is reserved for the main development server
  • Testing must use a dedicated test server on port 5001+
  • This prevents tests from interfering with active development
  • Tests should be isolated and reproducible

Port Assignment

Context Port Usage
Main dev server 5000 OFF LIMITS for testing
Test server 5001+ Always use for CI tests

Port Discovery

The server writes its port to .server-port file. For testing, you MUST:

  1. Always start a dedicated test server (never reuse port 5000)
  2. Read the port from .server-port after server starts
  3. Fail if .server-port doesn't exist - never guess or fallback

Read the full file on GitHub · 334 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. 1mo ago First seen · 334 lines · 3 tokens per session scan A 9d6ff5df7831

Subscribe to this mod's changes

ci-runner is an agent published in the GitHub repository ferrislucas/Circus-Chief (13 stars, last pushed 3d ago), licensed Apache-2.0. It adds 3 tokens to every session and 2,781 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.