Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add choiyounggi/dev-loop/plugin install dev-loopWrote 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/choiyounggi/dev-loop/knowledge-flush)<a href="https://agentmods.dev/skills/choiyounggi/dev-loop/knowledge-flush"><img src="https://agentmods.dev/badge/skills/choiyounggi/dev-loop/knowledge-flush/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/choiyounggi/dev-loop/knowledge-flush"><img src="https://agentmods.dev/badge/skills/choiyounggi/dev-loop/knowledge-flush.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.00117 | $0.03669 |
| Opus 5.5 | $0.00047 | $0.01468 |
| Sonnet 5.5 | $0.00023 | $0.00734 |
| Haiku 4.5 | $0.00012 | $0.00367 |
Grade A, and why
knowledge-flush 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 — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.
knowledge-flush — queued insights → verified wiki PR
Turn the ★ Insight candidates harvested from your sessions into a wiki
contribution, PR-only — you (the repo owner) review each PR and merge or
reject it. This skill NEVER auto-merges and NEVER pushes to main.
The queue lives at ~/.dev-loop/queue/*.jsonl (written by the Stop hook). Each
row is a candidate: trigger, directive, why, evidence, domain, tags, content.
Non-negotiable order (a PreToolUse gate enforces it)
hooks/pre-flush-pr-gate.sh blocks gh pr create on a knowledge branch unless
an INGEST_REPORT.md with three filled sections exists. So do the work first:
-
Acquire the shared flush lock — before anything else, including the checkout reset in step 1. This skill and the
hooks/auto-flush.shStop hook are the two entry points that drain the same queue; both serialize through the same lock (scripts/flush-lock.sh, issue #77).Generate this run's id once, here, and record it — every later
flush-lock.shcall in this flush (the abort-path release below, and step 5's release) must be prefixed with it. This is mandatory, not a style choice: each step in this skill runs in its own fresh shell, so nothing carries between them on its own — an unprefixed call computes a brand-new run id that no longer matches the one that acquired the lock, soreleaseis refused as a foreign caller and the lock leaks for the full TTL.RUNID="flush-$(date +%Y%m%d-%H%M%S)-$$" echo "$RUNID" # record this — every later flush-lock.sh call needs it export DEV_LOOP_FLUSH_RUN_ID="$RUNID" sh "${CLAUDE_PLUGIN_ROOT}/scripts/flush-lock.sh" acquireAlways set the run id with
exporton its own line immediately before theflush-lock.shcall, in the SAME shell invocation — never as an inlineDEV_LOOP_FLUSH_RUN_ID=... sh ...prefix. A headless run (seehooks/auto-flush.sh) auto-approves this call against a fixed allowlist that can match a literalsh .../flush-lock.sh acquire|releasecommand but can never auto-approve an unscoped env-var-prefixed command.- Exit 0 → proceed to step 1.
- Non-zero exit → do not touch
~/.dev-loop/repo. Read the failure line (held <holder-runid> <age>son stderr) and tell the user: "a flush is already running (holder<holder-runid>, started<age>sago) — stopping." Then stop. Do not retry, poll, or wait for the lock. The lock is released once, at the very end of step 5 on a successful flush. If you abort or hit an unrecoverable error at any point after acquiring it, release it before stopping — prefixed with the same$RUNIDrecorded above — so the next run does not wait out the TTL:
export DEV_LOOP_FLUSH_RUN_ID="<the run id you recorded above>" sh "${CLAUDE_PLUGIN_ROOT}/scripts/flush-lock.sh" release
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 · +18 lines 4db9851cae6b
- 2mo ago Changed · +12 lines 551c22cb5203
- 3mo ago First seen · 231 lines · 117 tokens per session scan A 2c0ff8aae056
knowledge-flush is a skill published in the GitHub repository choiyounggi/dev-loop (5 stars, last pushed yesterday), licensed MIT. It adds 117 tokens to every session and 3,669 once invoked, about $0.0005 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-08-31.
knowledge-flush compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| knowledge-flushchoiyounggi/dev-loop | Skill | 5 | yesterday | MIT | A | 117 | Claude Code |
| learntigerless-labs/autoharness | Skill | 10k | yesterday | MIT | A | 17 | Claude Code |
| migrateguhcostan/claude-mega-brain | Skill | 128 | 4d ago | MIT | A | 147 | Claude Code |
| cartographer-kb-createBeppeTemp/cartographer | Skill | 70 | yesterday | Apache-2.0 | A | 53 | Claude Code, Codex |
| cartographer-kb-source-authorBeppeTemp/cartographer | Skill | 70 | yesterday | Apache-2.0 | A | 106 | Claude Code, Codex |
| cartographer-feedbackBeppeTemp/cartographer | Skill | 70 | yesterday | Apache-2.0 | A | 83 | Claude Code, Codex |
| buildingromiluz13/cc10x | Skill | 167 | 1mo ago | MIT | A | 43 | Claude Code |