cast-loop

cast-loop is a skill for Claude Code from codecast-sh/codecast. It costs 94 tokens per session (645 once invoked), scanned A, original, MIT.

An automated task-processing loop that starts a fresh coding session for each ready task and requires verification before completion. A human still decides whether the resulting change is merged.

In plain words
What is it for?
Use it for independent tasks with acceptance criteria to schedule recurring runs, work in separate workspaces, verify results, and open pull requests without merging them automatically.
Why use it?
It provides a repeatable way to work through a prepared queue without starting sessions when there is no work, while keeping checks and human merge approval in place.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it for independent tasks with acceptance criteria to schedule recurring runs, work in separate workspaces, verify results, and open pull requests without merging them automatically.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/codecast-sh/codecast/cast-loop
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 codecast-sh/codecast --skill cast-loop
Clone the repo
git clone --depth 1 https://github.com/codecast-sh/codecast

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 cast-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/codecast-sh/codecast/cast-loop/github.svg)](https://agentmods.dev/skills/codecast-sh/codecast/cast-loop)
Your own site
<a href="https://agentmods.dev/skills/codecast-sh/codecast/cast-loop"><img src="https://agentmods.dev/badge/skills/codecast-sh/codecast/cast-loop/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 cast-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/codecast-sh/codecast/cast-loop"><img src="https://agentmods.dev/badge/skills/codecast-sh/codecast/cast-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 645 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.00094 $0.00645
Opus 5.5 $0.00038 $0.00258
Sonnet 5.5 $0.00019 $0.00129
Haiku 4.5 $0.00009 $0.00064

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

Security

Grade A, and why

cast-loop 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.

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.

packages/cli/skills/cast-loop/SKILL.md · 45 lines

How it starts

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

A loop is only as good as its dispatcher and its gate. The task board is the dispatcher: ranked, deduplicated, visible to the human. Verification is the gate. Merge stays a human decision unless the human said otherwise.

Queue

Confirm there is a queue worth looping over: cast task ready --plan <id> or --project <ref> or -q "<query>". Each task must be finishable by one session alone with acceptance criteria in its description; fix the ones that are not before starting, or the loop produces eight half answers.

Arm

cast trigger add - --every <interval> --spawn --title "Loop: <name>" \
  --precheck 'cast task ready --plan <id> --json | jq -e "any(.[]; (.stale | not) and ((.assignee // \"agent:\") | startswith(\"agent:\")))" >/dev/null' <<'BRIEF'
Claim the next ready task with `cast task ready --plan <id> --claim` (it starts the
task and binds this session, so two overlapping runs never take the same one; if
it claims nothing, complete the run saying so), work in a worktree (`cast ws acquire <task id>`), and run
/cast-verify before closing it. Commit on the task's branch and open a pull
request with /cast-ship; do not merge. Queue anything that needs a person with
`cast decide`. Finish with `cast trigger complete <trigger id> --summary "<what landed>"`.
BRIEF

The precheck runs before every firing and skips the run unless a ready task is one the run's claim can take (touched in the last 30 days, and unassigned or handed to agents), so an idle loop costs no session. A run claims rather than reads the top of the list because the next firing can start before this one finishes. The brief is the run's entire context; a spawned session has none of this thread.

Watch and stop

cast trigger ls shows the loop; cast trigger log <id> the last run. Pin this session dormant naming the trigger. Stop it with cast trigger cancel <id> when the queue drains, when two runs in a row fail the same way, or at the --for limit; a loop that keeps retrying a broken task is spending the human's quota on nothing.

Read the full file on GitHub · 45 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 Changed · +3 lines 114f522e3c81
  2. 1mo ago First seen · 42 lines · 94 tokens per session scan A 45281d9e9adc

Subscribe to this mod's changes

cast-loop is a skill published in the GitHub repository codecast-sh/codecast (40 stars, last pushed today), licensed MIT. It adds 94 tokens to every session and 645 once invoked, about $0.0004 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-09-15.