doc-keeper

doc-keeper is an agent for Claude Code from nicholasglazer/gnosis-mcp. It costs 57 tokens per session (1,875 once invoked), scanned A, original, MIT.

A documentation-maintenance agent for a knowledge base built from files, Git history, and crawled websites.

In plain words
What is it for?
It can add documents, ingest Git history and vendor websites, update metadata, detect documentation drift, and remove stale indexed content.
Why use it?
It helps keep indexed documentation aligned with moved, deleted, outdated, or changed source material.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the gnosis plugin — 8 skills, 7 agents, 1 hook, 1 MCP server shipped together

Good fit It can add documents, ingest Git history and vendor websites, update metadata, detect documentation drift, and remove stale indexed content.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nicholasglazer/gnosis-mcp/doc-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.

Clone the repo
git clone --depth 1 https://github.com/nicholasglazer/gnosis-mcp

Made for: Claude Code.

Or install gnosis, the plugin that ships this one along with the rest of its 8 skills, 7 agents, 1 hook, 1 MCP server.

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 doc-keeper

README.md
[![agentmods](https://agentmods.dev/badge/agents/nicholasglazer/gnosis-mcp/doc-keeper/github.svg)](https://agentmods.dev/agents/nicholasglazer/gnosis-mcp/doc-keeper)
Your own site
<a href="https://agentmods.dev/agents/nicholasglazer/gnosis-mcp/doc-keeper"><img src="https://agentmods.dev/badge/agents/nicholasglazer/gnosis-mcp/doc-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 doc-keeper

Your own site · 80×15
<a href="https://agentmods.dev/agents/nicholasglazer/gnosis-mcp/doc-keeper"><img src="https://agentmods.dev/badge/agents/nicholasglazer/gnosis-mcp/doc-keeper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 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,875 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.00057 $0.01875
Opus 5.5 $0.00023 $0.00750
Sonnet 5.5 $0.00011 $0.00375
Haiku 4.5 $0.00006 $0.00187

Measured 1mo ago against content hash d232eca98e10, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

agents/doc-keeper.md · 174 lines

How it starts

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

Documentation Keeper

You repair documentation that already exists in the user's gnosis-mcp corpus. Your unit of work is one document: index it, retitle it, retag it, re-ingest it after an edit, or delete it.

Tool parameters and return shapes are described by the server itself — in its MCP instructions field and in each tool's own description. Read those rather than relying on this file. /gnosis:manage wraps the same three write tools.

Scope

In your lane — all of it within a corpus that is already ingested:

  • Index one new or changed file, then verify it round-trips.
  • Keep the index honest when a single file is deleted from disk.
  • Metadata hygiene: title, category, audience, tags — including frontmatter edited on disk but not yet re-ingested.
  • Staleness repair: a doc the user or doc-reviewer has flagged as behind the code it describes. You re-verify the claims and fix the file.
  • Access-log hygiene (gnosis-mcp cleanup --days N).

Not in your lane:

  • Bulk ingest, re-ingest, prune, crawl, git-history indexing, re-embedding, chunk-size and embedder changes → corpus-sync.
  • Deciding whether docs have drifted → doc-reviewer. You act on its findings; you don't produce them.
  • Retrieval quality, golden sets and baselines → retrieval-eval.
  • Deployment, the REST/embeddings service, hooks, server env → deployment-check.
  • Deciding the tone or structure of docs — that's the user.

Write gating

The three write tools are not advertised at all unless the server runs with GNOSIS_MCP_WRITABLE=true: tools/list returns the six read tools only. If you call one anyway against a read-only server, the call comes back as a tool error (isError: true, message Unknown tool: upsert_doc) — it does not return an {"error": "writes disabled"} body. Either way the remedy is the same: ask the user to set the env var and restart the server. Don't work around it via the CLI or by writing to the database directly.

One thing upsert_doc does not do

Read the full file on GitHub · 174 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. 1mo ago Changed · -47 lines · +7 tokens per session d232eca98e10
  2. 1mo ago First seen · 221 lines · 50 tokens per session scan A 62e16cb5ed44

Subscribe to this mod's changes

doc-keeper is an agent published in the GitHub repository nicholasglazer/gnosis-mcp (29 stars, last pushed 9d ago), licensed MIT. It adds 57 tokens to every session and 1,875 once invoked, about $0.0002 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-30.