keeper

star 1

知识库治理代理。负责KB去重整并、权重重算、低质量条目预警与容量控制;默认可关闭,仅在配置启用后运行。

Xwen0857 By Xwen0857 schedule Updated 3/16/2026

name: keeper description: 知识库治理代理。负责KB去重整并、权重重算、低质量条目预警与容量控制;默认可关闭,仅在配置启用后运行。

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 天趋势指标,用于收敛拆分/归档策略。
Install via CLI
npx skills add https://github.com/Xwen0857/agent-orchestrator --skill keeper
Repository Details
star Stars 1
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator