keeper

keeper is a skill for Claude Code, Codex from Xwen0857/agent-orchestrator. It costs 40 tokens per session (601 once invoked), scanned A, original, MIT.

A knowledge-base maintenance agent that finds duplicate entries, recalculates their usefulness scores, flags low-quality content, and monitors the collection's size. A knowledge base is a stored set of reusable information for other agents or tools.

In plain words
What is it for?
Use it to process pending knowledge entries, suggest merges or archiving, update feedback-based scores, and report duplicates or low-value content. It runs only when the planner configuration enables it.
Why use it?
It helps prevent the knowledge base from becoming repetitive, oversized, or filled with weak entries. It can also produce reports for the coordinating workflow to review.

Skill for Claude CodeCodex

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

Good fit Use it to process pending knowledge entries, suggest merges or archiving, update feedback-based scores, and report duplicates or low-value content. It runs only when the planner configuration enables it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xwen0857/agent-orchestrator/keeper
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 Xwen0857/agent-orchestrator --skill keeper
Clone the repo
git clone --depth 1 https://github.com/Xwen0857/agent-orchestrator

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 keeper

README.md
[![agentmods](https://agentmods.dev/badge/skills/xwen0857/agent-orchestrator/keeper/github.svg)](https://agentmods.dev/skills/xwen0857/agent-orchestrator/keeper)
Your own site
<a href="https://agentmods.dev/skills/xwen0857/agent-orchestrator/keeper"><img src="https://agentmods.dev/badge/skills/xwen0857/agent-orchestrator/keeper/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.

agentmods 80×15 button for keeper

Your own site · 80×15
<a href="https://agentmods.dev/skills/xwen0857/agent-orchestrator/keeper"><img src="https://agentmods.dev/badge/skills/xwen0857/agent-orchestrator/keeper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 601 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.00040 $0.00601
Opus 5 $0.00020 $0.00300
Sonnet 5 $0.00008 $0.00120
Haiku 4.5 $0.00004 $0.00060

Measured 8d ago against content hash 7681f87ba403, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

keeper 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 8d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/kb_semantic_dedupe.py, scripts/kb_split_suggest.py, scripts/keeper_ingest_candidates.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

keeper/SKILL.md · 48 lines

What it actually says

Keeper

核心职责

  1. 维护知识库质量:发现重复、候选合并、条目降级与归档建议。
  2. 维护经验权重:基于反馈日志重算 score/status,同步治理信号。
  3. 维护容量边界:控制低价值条目膨胀,输出清理与拆分建议。
  4. 维护审计可见性:生成 keeper 报告,供 orchestrator 读取与决策。

启用开关(强约束)

  1. templates/coordination/planner/config/current.mdkeeper_enabled: true 才允许执行。
  2. keeper_enabled: false 时,keeper 必须 no-op 并返回禁用状态。

输入路径

  1. knowledge-base/entries
  2. knowledge-base/feedback/kb_feedback.ndjson
  3. knowledge-base/references/weighting-model.md
  4. templates/coordination/planner/config/current.md
  5. templates/coordination/planner/properties.md

输出路径

  1. templates/coordination/orchestrator/keeper-report.md
  2. templates/coordination/orchestrator/keeper-report.json

运行脚本

  1. keeper/scripts/keeper_run.sh
  2. keeper/scripts/keeper_ingest_candidates.sh
  3. keeper/scripts/kb_semantic_dedupe.py
  4. keeper/scripts/keeper_scheduler.sh
  5. scripts/run_keeper.sh

最小执行流程

  1. 读取开关与参数;若禁用则直接退出。
  2. 先消费 knowledge-base/inbox/pending 候选并执行去重整并/入库。
  3. 执行 KB 分数重算:agent-orchestrator/scripts/kb_recompute_scores.sh
  4. 统计条目状态分布、低分条目、疑似重复条目。
  5. 输出 keeper 报告,供 orchestrator 汇总。

去重与整并规则(V1)

  1. 使用 kb_semantic_dedupe.py 计算相似度,超过阈值(默认 0.85)进入 merge_candidates
  2. status=DEPRECATED 且 30 天无命中,进入 archive_candidates
  3. HUMAN_OVERRIDE 连续上升条目进入 watch_candidates
  4. keeper 报告输出 split_candidates 与 7 天趋势指标,用于收敛拆分/归档策略。
Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 48 lines · 40 tokens per session scan A 7681f87ba403

Subscribe to this mod's changes

keeper is a skill published in the GitHub repository Xwen0857/agent-orchestrator (2 stars, last pushed 5mo ago), licensed MIT. It adds 40 tokens to every session and 601 once invoked, about $0.0002 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.