code-loop

code-loop is a skill for Claude Code, Codex from ALTEN-group/coding-pal. It costs 62 tokens per session (777 once invoked), scanned A, original, MIT.

A workflow skill for carrying out a validated implementation plan one step at a time. It records progress, counts failed repair attempts against a fixed limit, and checks that work happens on a correctly named short-lived Git branch.

In plain words
What is it for?
Use it while a coding agent implements plan.md, records each step's result, handles failed checks, and verifies branch rules before committing.
Why use it?
It prevents an agent from skipping plan steps, endlessly retrying a failing fix, or committing from the wrong branch. The progress record makes the current state and failures visible.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it while a coding agent implements plan.md, records each step's result, handles failed checks, and verifies branch rules before committing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alten-group/coding-pal/code-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 ALTEN-group/coding-pal --skill code-loop
Clone the repo
git clone --depth 1 https://github.com/ALTEN-group/coding-pal

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alten-group/coding-pal/code-loop"><img src="https://agentmods.dev/badge/skills/alten-group/coding-pal/code-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 777 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.00062 $0.00777
Opus 5.5 $0.00025 $0.00311
Sonnet 5.5 $0.00012 $0.00155
Haiku 4.5 $0.00006 $0.00078

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

Security

Grade A, and why

code-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 3d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/branch-guard.mjs, scripts/branch-guard.test.mjs, scripts/code-fixture.mjs, …), 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/code-loop/SKILL.md · 52 lines

How it starts

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

Code Loop

Make the Code stage deterministic: one plan step per turn, recorded in progress.json, bounded by a fix-loop limit the agent cannot reset, on a short-lived branch. AI implements; the Developer steps in only when the limit is reached.

When to Use This Skill

  • A Code agent implements a validated plan.md and must record each step's result.
  • A step fails its checks and the failed attempt must be counted against the fix-loop limit.
  • Before committing, the agent must prove it is on a short-lived, correctly named branch.

Path resolution

Resolve references/ and scripts/ relative to this skill's install directory (the folder that contains this SKILL.md), not the consumer repository root or the current shell cwd. If the skill was installed under .agents/skills/code-loop/ or .claude/skills/code-loop/, use that base path. Run the scripts from the repository root (so specs/ paths resolve) and write <skill-dir> as that install path.

Workflow

  1. Read references/code-loop-contract.md now. It is the authoritative source for the loop, the progress.json state, the fix-loop limit, and the branch rules.
  2. Check the branch before the first commit (use --base develop for a branch created from develop):
node <skill-dir>/scripts/branch-guard.mjs --git --base main --max-age-days 5
  1. Drive the loop, one step per turn:
node <skill-dir>/scripts/code-loop.mjs next   --dir specs/issue-42
node <skill-dir>/scripts/code-loop.mjs start 1 --dir specs/issue-42
# apply the step's New Code, run its Verification and Bootable Check, then the controls
node <skill-dir>/scripts/code-loop.mjs pass 1  --dir specs/issue-42
# or, when anything fails:
node <skill-dir>/scripts/code-loop.mjs fail 1  --dir specs/issue-42 --reason "AC-2 test returns 200, expected 403"
node <skill-dir>/scripts/code-loop.mjs status --dir specs/issue-42
node <skill-dir>/scripts/code-loop.mjs check-history --dir specs/issue-42   # git: the counters were never lowered (CI runs it too)

Read the full file on GitHub · 52 lines

Files

What ships with it

6 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. 3d ago First seen · 52 lines · 62 tokens per session scan A 4366ad667a4e

Subscribe to this mod's changes

code-loop is a skill published in the GitHub repository ALTEN-group/coding-pal (5 stars, last pushed 5d ago), licensed MIT. It adds 62 tokens to every session and 777 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-14.