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 skills add fredrikaverpil/dotfiles --skill plan-loopgit clone --depth 1 https://github.com/fredrikaverpil/dotfilesWrote 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/skills/fredrikaverpil/dotfiles/plan-loop)<a href="https://agentmods.dev/skills/fredrikaverpil/dotfiles/plan-loop"><img src="https://agentmods.dev/badge/skills/fredrikaverpil/dotfiles/plan-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/skills/fredrikaverpil/dotfiles/plan-loop"><img src="https://agentmods.dev/badge/skills/fredrikaverpil/dotfiles/plan-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.00052 | $0.00872 |
| Opus 5.5 | $0.00021 | $0.00349 |
| Sonnet 5.5 | $0.00010 | $0.00174 |
| Haiku 4.5 | $0.00005 | $0.00087 |
Grade A, and why
plan-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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Plan loop
We discuss the work, write it down in PLAN.md, then implement it step by
step, with /clear once the context fills up. This keeps the context small:
cheaper, and you stay sharper.
Recommended: Opus at high effort. If you are not running on Opus, say so and ask whether to proceed anyway. You cannot see the effort level (no need to remind me about it).
Gather information
Work back and forth with me, starting with your open questions and outline before writing the plan.
PLAN.md
When I mention a PLAN.md, ask whether to use a git worktree or work directly.
Keep the plan in PLAN.md at the root of the worktree
(./.claude/worktrees/<tree-name>/PLAN.md), or at the repo root when working
directly. It is the source of truth that survives /clear:
- Goal, decisions made (with a short why), open questions.
- Steps as a checklist.
- Key files to re-read when resuming.
Update it as soon as a decision is made, not only after a step.
Step loop
Keep the context under the limit: 200k tokens or 20% of the window, whichever
comes first, and never past 25%. The context-meter plugin
(~/.claude/local-plugins/context-meter) reports usage on demand through
mcp__context-meter__usage (load it with ToolSearch), and adds a
Context window: ... warning to a tool result once the context passes the
limit.
- After
/clear, readPLAN.mdand the files it lists before doing anything else. If noPLAN.mdis at the root of the current checkout, list.claude/worktrees/*/PLAN.mdand ask which one. - Call
mcp__context-meter__usageand estimate what the first unticked step will add. If that would take the context well past the limit, stop and ask me to run/clear, then/plan-loop; if the step alone would, propose splitting it. Otherwise implement the step. - Update
PLAN.md: tick the step once its commits land, record decisions and findings, name the next step. - Re-read all of
PLAN.mdfor contradictory or outdated passages and fix them. - If the step or the re-read raised a decision, a surprise or a change of course, discuss it with me. Otherwise continue with the next step (back to 2).
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.
- 1mo ago Changed · +82 lines · +52 tokens per session da883f10c89e
- 1mo ago First seen · 1 lines · 0 tokens per session scan A edfb66fa7bab
plan-loop is a skill published in the GitHub repository fredrikaverpil/dotfiles (261 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 872 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-12.
plan-loop compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| plan-loopfredrikaverpil/dotfiles | Skill | 261 | today | MIT | A | 52 | Claude Code |
| writing-skillsdenolfe/dotfiles | Skill | 88 | 5d ago | none | A | 20 | Claude Code, Codex |
| brainstormingdenolfe/dotfiles | Skill | 88 | 5d ago | none | A | 37 | Claude Code, Codex |
| executing-plansdenolfe/dotfiles | Skill | 88 | 5d ago | none | A | 35 | Claude Code, Codex |
| userscriptsdenolfe/dotfiles | Skill | 88 | 5d ago | none | A | 36 | Claude Code, Codex |
| writing-plansdenolfe/dotfiles | Skill | 88 | 5d ago | none | A | 21 | Claude Code, Codex |
| finishing-a-development-branchdenolfe/dotfiles | Skill | 88 | 5d ago | none | A | 27 | Claude Code, Codex |