vibe-loop

A dispatcher for a Vibe development loop, using repository state and a plan to choose the next prompt or action.

In plain words
What is it for?
Use it to inspect loop status, select the next step, choose a named workflow, or run stricter checks for continuous development work.
Why use it?
It gives the agent a repeatable next step and can check workflow rules, instead of relying on an informal sense of what to do next.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/brifl/coding-agent-orchestration/vibe-loop
Any agent
npx skills add brifl/coding-agent-orchestration --skill vibe-loop
Clone the repo
git clone --depth 1 https://github.com/brifl/coding-agent-orchestration

Made for: Claude Code, Codex.

Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 743 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00018 $0.00743
Opus 5 $0.00009 $0.00371
Sonnet 5 $0.00004 $0.00149
Haiku 4.5 $0.00002 $0.00074

Measured 2d ago against content hash 49530e77701d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/vibe_mark_done.py, scripts/vibe_next_and_print.py), 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.

.codex/skills/vibe-loop/SKILL.md · 57 lines

How it starts

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

Purpose

Drive the Vibe workflow deterministically for a target repository.

This skill uses .vibe/STATE.md and .vibe/PLAN.md to recommend the next loop prompt and to validate invariants.

Inputs

  • Repo root path (default: current working directory)
  • Optional: --strict validation for CI-grade checks

Runtime helpers

  • Source repo: tools/agentctl.py is the editable dispatcher source.
  • Installed skill: scripts/agentctl.py is generated from tools/agentctl.py by bootstrap tooling.
  • Skill-owned wrapper: scripts/vibe_next_and_print.py.

How to use

  • Show current status:
    • Source repo: python3 tools/agentctl.py --repo-root . --format json status
    • Installed skill directory: python3 scripts/agentctl.py --repo-root . --format json status
  • Recommend next loop:
    • Source repo: python3 tools/agentctl.py --repo-root . --format json next
    • Installed skill directory: python3 scripts/agentctl.py --repo-root . --format json next
  • Recommend next loop using a named workflow (for example workflows/continuous-refactor.yaml):
    • Source repo: python3 tools/agentctl.py --repo-root . --format json next --workflow continuous-refactor
    • Installed skill directory: python3 scripts/agentctl.py --repo-root . --format json next --workflow continuous-refactor
    • Pass the workflow file stem (continuous-refactor), not the .yaml filename.
  • Validate invariants:
    • Source repo: python3 tools/agentctl.py --repo-root . --format json validate
    • Installed skill directory: python3 scripts/agentctl.py --repo-root . --format json validate
    • Strict mode (recommended in CI): add --strict
  • Record loop completion from emitted LOOP_RESULT:
    • Source repo: python3 tools/agentctl.py --repo-root . --format json loop-result --line 'LOOP_RESULT: {...}'
    • Installed skill directory: python3 scripts/agentctl.py --repo-root . --format json loop-result --line 'LOOP_RESULT: {...}'
  • Print the next loop prompt body directly:
    • Run: python3 scripts/vibe_next_and_print.py --repo-root . --show-decision
    • The helper uses the managed bundle containing the wrapper. CODEX_HOME/AGENT_HOME is only a fallback for incomplete legacy copies.

Read the full file on GitHub · 57 lines

Files

What ships with it

2 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. 2d ago First seen · 57 lines · 18 tokens per session scan A 49530e77701d

Subscribe to this mod's changes

vibe-loop is a skill published in the GitHub repository brifl/coding-agent-orchestration (20 stars, last pushed 1mo ago), licensed MIT. It adds 18 tokens to every session and 743 once invoked, about $0.0001 per session on Opus 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-08-30.