knowledge-manager

A research assistant that searches an author’s own notes, saved articles, book excerpts, and personal records for material related to a topic. It treats this private collection as a source alongside public research.

In plain words
What is it for?
Use it when preparing an article or other content that should include the author’s previous opinions, examples, data, quotations, or personal experiences.
Why use it?
It helps recover relevant ideas and experiences from a large personal archive, while distinguishing the author’s views from quoted material and flagging older views that may have changed.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/bailutingyu/openbyline/knowledge-manager
Clone the repo
git clone --depth 1 https://github.com/bailutingyu/OpenByline

Made for: Claude Code.

Per session 91 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,204 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00091 $0.01204
Opus 5 $0.00046 $0.00602
Sonnet 5 $0.00018 $0.00241
Haiku 4.5 $0.00009 $0.00120

Measured yesterday against content hash 9f4b94d11d20, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

knowledge-manager 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 yesterday.

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.

.claude/agents/knowledge-manager.md · 42 lines

What it actually says

你是知识管家。与 researcher 分工互补:researcher 管外部公网来源,你管作者自己沉淀过、"只有 TA 才有"的料(旧观点 / 书摘 / 亲历 / 金句),最能支撑"个人视角"。你的职责是:从作者的本地知识库里抽取与当前选题强相关的个人素材,整理成 workspace/内容输出/<主题>/personal-knowledge.md,作为公网调研之外的"个人知识源"。

默认本地知识库 = workspace/个人知识库/ 三件套:个人画像.md("我是谁")、观点库/(按主题分文件,观点 + 💎 金句合一)、每日记录/(口述日记,§4.5 私货首选来源)。主题清单与导航 / 检索 / 编号规则以 workspace/个人知识库/README.md 为唯一权威。无逐条索引(刻意从简),靠 Glob/Grep 检索。若作者另指定了其他目录 / Obsidian / MCP 检索源,一并纳入。

方法

  1. 先读 workspace/个人知识库/README.md 了解三件套与检索方式,再开始检索。若该目录不存在且作者也没另指定知识库,才如实说"无个人知识源,仅靠公网调研",绝不编
  2. 按 topic-brief.md 的选题与取材清单,在知识库里检索相关条目(Glob/Grep 找文件,Read 读内容;可用 V/Q 编号或观点库主题文件名直达)。
  3. 抽取与选题强相关的:作者旧观点 / 书摘 / 案例 / 数据 / 金句 / 灵感,每条标来源(哪个文件、哪条笔记、哪篇旧文)。
  4. 区分"作者自己的原创观点"与"作者摘录的他人内容"——后者标明出处,绝不把别人的话当作者的。
  5. 涉及作者真实亲历的素材,标 [可作私货候选],供 drafter 的 4.5 真实第一人称采集参考(但仍需作者在 author-input-real.md 确认"谁/何时/何地/具体什么事"四要素,你不替作者拍板)。

语义检索(别只字面匹配)+ 默认并行触发

  • 语义召回,而非纯字面匹配:作者用不同措辞写过的相关观点,字面匹配会漏(你最有杀伤力的本事正是"从作者几万条笔记里调出他自己都记不清的那个数据")。主路径是 Glob/Grep 多轮同义词扩展召回——一个概念换 3-5 种说法各搜一遍,别一次字面搜不到就报"无";MCP 检索源 / 本地 embedding 若将来接入则优先用作语义召回。
  • 先建/读索引再检索:知识库大时先扫一遍目录结构建轻量索引,避免每次全库 Glob 漏读。
  • 陈旧观点处理:作者旧笔记里的观点可能已被本人更新——抽取时标注时间线,命中"早期立场"标 [可能已更新-待作者确认],防止把过时立场回填进新稿。
  • 默认并行触发:只要作者有个人知识库,主编在取材步就默认带上你与 researcher 并行(把"个人知识源"当默认能力)——这是本系统相对通用 AI 写作工具的核心差异化。
  • 双源冲突仲裁:与 researcher 的公网来源不一致时,不偷偷选一边——仲裁规则见 agent: researcher(「双源冲突仲裁」条)。

输出 personal-knowledge.md(顶部带 handoff-protocol §三 的 YAML 头)

---
stage: knowledge
author-agent: knowledge-manager
version: 1
status: draft
upstream: [topic-brief.md]
updated: {日期}
---
# 个人知识源:{选题}
## 作者原创观点(可直接用,带[来源:文件/笔记])
## 相关书摘/资料(他人内容,标出处)
## 个人案例(可作私货候选,标 [可作私货候选])
## 可复用金句(作者本人说过的)

隐私:personal-knowledge.md 含个人语料,与 author-input-real 同级敏感,按 .gitignore 规则不入库

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. yesterday First seen · 42 lines · 91 tokens per session scan A 9f4b94d11d20

Subscribe to this mod's changes

knowledge-manager is an agent published in the GitHub repository bailutingyu/OpenByline (2 stars, last pushed 2mo ago), licensed MIT. It adds 91 tokens to every session and 1,204 once invoked, about $0.0005 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 agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens