knowz-flush

knowz-flush is a skill for Claude Code, Codex from knowz-io/deepseek-knowz-plugin. It costs 52 tokens per session (1,165 once invoked), scanned A, original, MIT.

A queue processor for replaying saved knowledge changes after a connection to the Knowz storage service failed.

In plain words
What is it for?
Use it to read the pending-capture files, migrate older entries, and send queued knowledge operations to Knowz when the service is available.
Why use it?
It prevents pending creates, amendments, and updates from being forgotten or replayed as the wrong operation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to read the pending-capture files, migrate older entries, and send…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/knowz-io/deepseek-knowz-plugin/knowz-flush
Install

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.

Any agent
npx skills add knowz-io/deepseek-knowz-plugin --skill knowz-flush
Clone the repo
git clone --depth 1 https://github.com/knowz-io/deepseek-knowz-plugin

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for knowz-flush

README.md
[![agentmods](https://agentmods.dev/badge/skills/knowz-io/deepseek-knowz-plugin/knowz-flush.svg)](https://agentmods.dev/skills/knowz-io/deepseek-knowz-plugin/knowz-flush)
Your own site
<a href="https://agentmods.dev/skills/knowz-io/deepseek-knowz-plugin/knowz-flush"><img src="https://agentmods.dev/badge/skills/knowz-io/deepseek-knowz-plugin/knowz-flush.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,165 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.01165
Opus 5 $0.00026 $0.00583
Sonnet 5 $0.00010 $0.00233
Haiku 4.5 $0.00005 $0.00117

Measured 6d ago against content hash 5193f63bc769, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

knowz-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 6d 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.

skills/knowz-flush/SKILL.md · 40 lines

How it starts

The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/knowz-flush — Process pending captures

Drain the canonical project-root knowz-pending.md queue into Knowz vaults. Each queued block declares an Operation (create, amend, or update) and an Idempotency Key. Never replay an amend/update as create.

If enterprise.json exists in the project root, use its brand value instead of "Knowz" in user-facing text.

If Knowz MCP tools are unavailable, stop after reporting the queue count and: "{brand} MCP not connected. In Grok Bot Plugins or Cursor Marketplace, search Knowz → Add → Authorize. Do not paste API keys in chat."

Instructions

  1. Read both queue locations before doing anything:
    • Canonical: knowz-pending.md in the project root.
    • Legacy migration source: knowzcode/pending_captures.md. If neither contains a ----delimited capture block, report that there is nothing to flush and stop.
  2. Normalize and migrate legacy blocks without loss:
    • Treat any keyless block in project-root knowz-pending.md as a legacy producer block. Normalize it in place before replay; do not reject queues produced by older /knowz save, /knowz amend, or /knowz auto versions.
    • Map Target Vault Type to canonical Target Vault; the value remains a routing token resolved through knowz-vaults.md.
    • If Payload is missing but legacy Content exists, map Content to Payload. A block with neither is malformed and remains untouched.
    • Preserve Operation, KnowledgeId, Semantic Key, Intent, Category, Source, title, and payload exactly.
    • Preserve an existing Idempotency Key. If absent, create a stable migration key from the exact operation, KnowledgeId or semantic key, target-vault token, intent, source, and title. Never include migration time or attempt number.
    • If that key already exists canonically with identical mutation content, treat the legacy block as an already-migrated duplicate. If the same key has different operation, target, identity, or payload, leave both blocks untouched and report IDEMPOTENCY_KEY_COLLISION.
    • For a keyless canonical-root block, insert and confirm the derived key before any MCP call. For a nested legacy block, append a converted block to knowz-pending.md before removing its legacy source block. Remove the legacy block only after the canonical append is confirmed. Keep the legacy file itself as a deprecation notice when empty.
  3. Parse canonical blocks. Required fields are Operation, Idempotency Key, Target Vault, and Payload; KnowledgeId is additionally required for amend/update. Queue Status defaults to pending; superseded blocks are preserved but MUST NOT be written. Semantic Key, Intent, Category, and Source are optional metadata. A missing Operation may migrate as create only when the legacy block has no KnowledgeId, no amend/update action, and contains a complete create payload; otherwise leave it queued as malformed.
  4. Group blocks by Idempotency Key:
    • Byte-equivalent logical mutations are one retry group and are executed at most once.
    • A key reused for different operation, identity, target, or payload is a collision. Execute none of that group.
  5. Read knowz-vaults.md and resolve Target Vault as an explicit ID/name or configured routing token. Empty or ambiguous resolution leaves the block queued.
  6. Verify the MCP tools required by the queued operations before processing them. Create replay also requires a Knowz search capability; amend/update replay requires get_knowledge_item plus the matching mutation tool. If a required tool is unavailable, leave that operation queued rather than weakening replay safety.
  7. Preflight every retry group before mutation:
    • create: search the resolved vault by the exact title and compare content/semantic identity. One materially identical item means the operation already succeeded; count it as idempotently reconciled. No match permits create. A similar-title item with conflicting content or multiple plausible matches is ambiguous and remains queued.
    • amend: fetch KnowledgeId. If missing, leave queued as MISSING_AMEND_TARGET; never create. If the requested delta is already reflected exactly, count it as reconciled. If applicability is ambiguous, leave queued for review; otherwise call amend once.
    • update: fetch KnowledgeId. If missing, leave queued as MISSING_UPDATE_TARGET; do not silently create during replay. If the full replacement is already reflected, count it as reconciled; otherwise call update once.
  8. After a confirmed success or idempotent reconciliation, remove every byte-equivalent block in that retry group from both queue files. If mutation succeeds but queue cleanup cannot be confirmed, stop and report the exact key so the next run performs the preflight again.
  9. Report newly created/amended/updated counts, idempotently reconciled counts, migrated legacy count, superseded/quarantined count, and every remaining key grouped by collision, malformed block, ambiguous target, missing target, unavailable tool, or MCP failure.

Read the full file on GitHub · 40 lines

Changes

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.

  1. 6d ago First seen · 40 lines · 52 tokens per session scan A 5193f63bc769

Subscribe to this mod's changes

knowz-flush is a skill published in the GitHub repository knowz-io/deepseek-knowz-plugin (1 stars, last pushed 20d ago), licensed MIT. It adds 52 tokens to every session and 1,165 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

krouter-obsidian

KRouter Obsidian — route knowledge-dependent tasks to the smallest current evidence set in an Obsidian vault using deterministic local search. Use when a request depends on durable user preferences, prior corrections or superseded claims, long-term project history or results, reusable methods or evidence, or the…

398894496-arch/runtime36 · 85 tokens

knowledge-wiki

Manage the personal knowledge wiki. Use when the user shares articles, documents, or asks to organize knowledge; when a conversation produces insights worth preserving as structured knowledge; or when the user asks about the knowledge base.

zhayujie/CowAgent · 46 tokens

modlens

Plug-in vision for text-only models. Hard rule: when a file path or URL with an image extension (.png, .jpg, .jpeg, .webp, .gif, .heic, .heif) appears anywhere in the conversation (typed by the user, injected as a [Image: source: ] line, or inside a tag) and you cannot see that image's content, run this skill on it…

liustack/modlens · 240 tokens

j-space

Use this skill to establish and operate the model's inner workspace — the J-space — for any task that needs more than fluent output: multi-step or chained reasoning, planning, long-horizon and agentic work, competition-level problems, complex debugging, keeping many parts of a deliverable globally consistent, holding…

Tiger3807861189/J-Space-Cognition-Suite-V3.7 · 144 tokens

install-openviking-memory

Install and configure the OpenViking long-term memory plugin for OpenClaw via natural conversation. Once installed, the plugin automatically captures facts from chats and recalls relevant context before each reply (auto-capture + auto-recall, cross-session). Covers prerequisites, install through OpenClaw's plugin…

volcengine/OpenViking · 191 tokens

openviking-context-database

Use OpenViking from OpenClaw through @openviking/openclaw-plugin: long-term memory, session archives, resource and Agent Skill import, semantic recall, recall trace debugging, and externalized tool-result recovery. Prefer this skill when the user wants to use, query, debug, or operate OpenViking context from an…

volcengine/OpenViking · 95 tokens