Borrowing it
Nothing to install: this file belongs to PDgit12/knitbrain. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/PDgit12/knitbrain/main/.gemini/commands/loop.tomlgit clone --depth 1 https://github.com/PDgit12/knitbrainWrote 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.
[](https://agentmods.dev/commands/pdgit12/knitbrain/loop)<a href="https://agentmods.dev/commands/pdgit12/knitbrain/loop"><img src="https://agentmods.dev/badge/commands/pdgit12/knitbrain/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.
<a href="https://agentmods.dev/commands/pdgit12/knitbrain/loop"><img src="https://agentmods.dev/badge/commands/pdgit12/knitbrain/loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00285 |
| Opus 5.5 | $0.00000 | $0.00114 |
| Sonnet 5.5 | $0.00000 | $0.00057 |
| Haiku 4.5 | $0.00000 | $0.00028 |
Grade A, and why
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 14d 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.
What it actually says
description = "Launch the autonomous external runner (knitbrain loop) in the background" prompt = """ Launch knitbrain's EXTERNAL runner in the BACKGROUND, then report the handle. Do NOT run the loop inline — it would block this session.
- Resolve a goal file from the arguments: a markdown file with
- [ ] taskcheckboxes (defaultgoal.md). If it is missing, tell the user to runknitbrain onboardfirst and stop — do NOT invent tasks. - Using your terminal tool, run DETACHED (pass through any --for/--max/--verify/--reviewer the user gave): nohup knitbrain loop --for 1h --agent "gemini -p" > .loop.log 2>&1 & echo "loop PID $!"
- Report the PID + log path (
<goalfile>.loop.log). The runner spawns a FRESH "gemini -p" per- [ ]task, runs the verify gate, and ticks- [x]only on green. Watch the boxes tick, tail the log, or runknitbrain dashboard. Stop early withkill <PID>. - Do NOT tick any box yourself — only the runner's verify (and optional reviewer) gate marks a task done. No false green. """
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.
- 14d ago First seen · 10 lines · 0 tokens per session scan A 32c7e9e20214
loop is a command published in the GitHub repository PDgit12/knitbrain (6 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 285 tokens. 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-23.
loop compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| loopPDgit12/knitbrain | Command | 6 | 6d ago | MIT | A | 0 | Gemini CLI |
| lians-integrateLians-ai/Lians | Command | 17 | 4d ago | Apache-2.0 | A | 17 | Claude Code |
| ijfw-auditFerroxLabs/ijfw | Command | 214 | 4d ago | MIT | A | 28 | Claude Code |
| ui-aqa-flow-test-report-analysisgriddynamics/rosetta | Command | 370 | today | Apache-2.0 | A | 19 | Claude Code |
| api-aqa-flow-execution-and-report-analysisgriddynamics/rosetta | Command | 370 | today | Apache-2.0 | A | 28 | Claude Code |
| constraintsvinvcn/addyosmani-agent-skills-zh | Command | 46 | 17d ago | MIT | A | 20 | Claude Code |
| playwright-executekatalon-labs/true-skills | Command | 10 | 17d ago | MIT | A | 117 | GitHub Copilot |