AGENTS.md · Archive228/loopkit
AGENTS.md from Archive228/loopkit: 72 lines covering The three-step loop, Single-feature rule, Clean-state contract (end of every session), Skills vs rules…
Template by Archive228
Chalk Labs
Need help deploying AGENTS.md · Archive228/loopkit?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/Archive228/loopkit/main/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: code-generation, version-control
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 72 lines
- File
AGENTS.md
Sections
- The three-step loop
- Single-feature rule
- Clean-state contract (end of every session)
- Skills vs rules
- Slash-command entry points
- Never
- Verify before you commit
- When user instructions and this file disagree
- Escalation
- Model routing
- Presets
First lines (shown under the repo's MIT license)
# AGENTS.md — loopkit loop contract This repo runs long-lived agent sessions. Every session shares one contract: **Plan → Act → Verify**, single-feature per session, clean state at the end. This file is the cross-agent voice (Claude Code, Cursor, Codex CLI, Gemini CLI, Amp). Claude-specific extras live in `.claude/CLAUDE.md`, which imports this file via `@../AGENTS.md`. ## The three-step loop Every session, in order: 1. **Plan.** Read `PROMPT.md` (goal), `IMPLEMENTATION_PLAN.md` (state), and `git log --oneline -20` (history). If the last session claimed a feature done, smoke-test it before picking new work. 2. **Act.** Implement exactly one feature. Not two. Not "one and a small one". 3. **Verify.** Run `/verify` (adversarial pass against the diff) BEFORE claiming done or committing. Non-zero from `/verify` blocks the commit. If `IMPLEMENTATION_PLAN.md` and the git log disagree, trust the git log. Git is append-only; the plan is rewritten each turn. ## Single-feature rule One feature per session. Sessions that pack multiple features ship them all half-done — we have measured this. The next session takes the next feature. There is no reward for finishing more in one session; there is a real cost to leaving things half-done. ## Clean-state contract (end of every session) - All code committed to git. Prefer `scripts/committer "<msg>" <files>` — it refuses `.` and empty messages. - No uncommitted changes in the working tree. - `IMPLEMENTATION_PLAN.md` updated: what was done, what is next, known open issues. - Dev server killed (`./stop.sh` if the project has one). - A feature is only "done" after end-to-end verification (`/verify`), not after unit tests alone. ## Skills vs rules - **Skills** (`skills/*/SKILL.md`) — invoked on demand by trigger phrases in their `description`. Read the skill's SKILL.md before acting on a matching task. - **Rules** (`.claude/rules/*.md`) — auto-loaded when a file path matches. Silent guardrails, not opt-in. Full skill routing table: `skills/using-loopkit/SKILL.md` (repo layout) or `.claude/skills/using-loopkit/SKILL.md` (installed layout). ## Slash-command entry points - `/spec` — write `PROMPT.md` before implementing. Refuses to run if `PROMPT.md` exists without `--force`. - `/verify` — adversarial pass against the current diff. Non-zero exit blocks completion claims. - `/loop` — describe or run the Plan → Act → Verify cycle. ## Never - Weaken or delete a test to make red go green. If a test is wrong, fix the test in its own commit with justification. - Mark work done without running `/verify`. - Edit a merged migration. Migrations are additive-only. - Add a dependency without justifying it in the commit body. - Run `npm update`, `pip install -U`, or equivalents unless the feature is literally "upgrade dependencies". - Push to `main` from an agent session. Humans push. ## Verify before you commit The maker's-head reviewer always agrees with itself. `/verify` is a separate, hostile pass. Every code change goes through it. See `skills/adversarial-verify/SKILL.md` for the 11 shortcuts that fake "done". ## When user instructions and this file disagree User instructions win. This file is the default when the user has not said otherwise. ## Escalation When stuck, the agent runs `hitl-escalate`. If no channel is configured, it writes `BLOCKED.md` and the loop exits with code 2. Human unblocks, deletes `BLOCKED.md`, restarts `run.sh`. ## Model routing `run.sh` reads `CLAUDE_EXECUTOR_MODEL` (per-turn workhorse call) and `CLAUDE_JUDGE_MODEL` (per-turn `/verify` call) as first-class knobs, plus `CLAUDE_PLANNER_MODEL` reserved for `/spec`. Unset = CLI default. See `skills/model-routing/SKILL.md` for the cheap-executor + frontier-judge shape. ## Presets The `presets/` directory holds opinionated stacks — arrangements of the base skills for specific shipping cadences. Base loopkit stays a 49-skill floor that any preset can build on; the presets themselves are one arrangement of that floor, not replacements for it. `presets/finn-loop/` is the first one to ship: async, human-gated (`/spec` → ACK → `/build` → `/review` → rocket-emoji merge signal), with Linear-MCP and Slack-webhook hooks that are OFF by default. Future presets on the roadmap: `three-agent` (planner + generator + evaluator, per Prithvi's harness-design work) and `executor-judge` (do → judge → do → judge).
Signals
- Stars
- 755
- Forks
- 124
- Open issues
- 0
- Last commit (this folder)
- Jul 14, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Archive228/loopkit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Archive228
- 0.701score
structured-output
Archive228
Get JSON out of the model reliably.
SkillCFreshness: C★ 755Claude Code +9 - 0.701score
using-loopkit
Archive228
Use when starting any conversation in a loopkit-enabled project - establishes how to find and use loopkit's 49 skills, requiring skill invocation before ANY…
SkillCFreshness: C★ 755Claude Code +9 - 0.701score
hitl-escalate
Archive228
Escalate blocked runs to a human via configured channel or fallback to BLOCKED.md and exit the loop.
SkillCFreshness: C★ 755Claude Code +9 - 0.701score
prompt-caching
Archive228
Cache the parts of the prompt that don't change so a long-running loop stops paying full price on every turn.
SkillCFreshness: C★ 755Claude Code +9 - 0.698score
harness-stripping
Archive228
Systematically remove one harness component at a time and measure impact, killing scaffolding that no longer earns its complexity.
SkillCFreshness: C★ 755Claude Code +9 - 0.698score
broken-window-check
Archive228
Before picking new work, smoke-test the last "completed" feature.
SkillCFreshness: C★ 755Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get AGENTS.md · Archive228/loopkit running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
AGENTS.md · Archive228/loopkit. Agent Mart. https://agentmart.dev/templates/archive228-loopkit-agents-md (last updated 2026-10-24)