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.
npx agentmods add instructions/cobusgreyling/loop-engineering/agents-mdgit clone --depth 1 https://github.com/cobusgreyling/loop-engineeringWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00457 | $0.00457 |
| Opus 5 | $0.00229 | $0.00229 |
| Sonnet 5 | $0.00091 | $0.00091 |
| Haiku 4.5 | $0.00046 | $0.00046 |
Grade A, and why
loop-engineering AGENTS.md 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 yesterday.
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.
What it actually says
AGENTS.md — loop-engineering reference
Conventions for humans and loops maintaining this repository.
Build & verify
# Unified front door (prefer for new workflows)
cd tools/loop && npm ci && npm test
node dist/cli.js doctor ../..
node dist/cli.js status ../..
# Loop readiness audit CLI (still canonical scorer)
cd tools/loop-audit && npm ci && npm run build
node dist/cli.js ../.. # audit repo root
node dist/cli.js ../.. --suggest # show copy commands for gaps
# Before/after demo (scores an empty dir → starter → L2)
bash scripts/before-after-demo.sh
Front door map: docs/cli-front-door.md. Agent install skill: skills/install-loop/SKILL.md.
CI runs validate-patterns and audit on every push/PR (see .github/workflows/).
Review norms
- Patterns and starters must stay tool-agnostic in intent; tool-specific paths live under
examples/and per-tool starters. - Never auto-merge changes to
docs/primitives*.md,tools/loop-audit/src/, or showcase assets without human review. - Failure stories in
stories/should include token cost, root cause, and remediation — not just wins. - New patterns require an entry in
patterns/registry.yaml.
Loop operation (this repo)
- Daily triage:
loop-triageskill →STATE.md(report-only, L1). - Fixes: only via PR with human review;
minimal-fix+loop-verifierfor assisted changes (L2). - Isolation: use git worktrees for any unattended code-change experiments (see
LOOP.md).
Test commands
This repo has no application test suite. Quality gates:
cd tools/loop && npm test && node dist/cli.js doctor ../..
cd tools/loop-audit && npm run build && node dist/cli.js ../../
bash scripts/before-after-demo.sh
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.
- yesterday First seen · 47 lines · 457 tokens per session scan A cd2046ce80b0
loop-engineering AGENTS.md is an instructions file published in the GitHub repository cobusgreyling/loop-engineering (10,738 stars, last pushed 2d ago), licensed MIT. It adds 457 tokens to every session, about $0.0023 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.
Other instructions, from other repositories
MCP-Sentinel AGENTS.md
Instructions for BashaarJavaid/MCP-Sentinel, covering agents.md, project, where things live, conventions and commands.
ai-news-agent AGENTS.md
Instructions for nickzren/ai-news-agent, covering ai news agent, purpose, preferred agent flow, defaults and status artifacts.
ai-news-agent CLAUDE.md
Instructions for nickzren/ai-news-agent, covering claude notes, short version and important defaults.
github-agentic-workflows copilot-instructions.md
Instructions for zircote-plugins/github-agentic-workflows, covering copilot instructions — aw-author plugin, project identity, repository structure, branching strategy and daily pipeline (.github/workflows/daily-intelligence.md).
github-agentic-workflows CLAUDE.md
Instructions for zircote-plugins/github-agentic-workflows, covering claude.md — aw-author plugin, project, commands, branching and quality gates.
hive-orchestrator AGENTS.md
Instructions for intertwine/hive-orchestrator, covering agents, first steps, working rules, skills and fast path.