doc-collector

doc-collector is an agent for coding agents from shenchangmin/cairnkit. It costs 40 tokens per session (251 once invoked), scanned A, original, MIT.

A project research step that gathers useful material from version history, documentation, task tickets, and source code into one notes file. It excludes files and values that may contain secrets.

In plain words
What is it for?
Use it to collect past decisions, recurring fixes, important documentation, and key code entry points before documenting how an unfamiliar project works.
Why use it?
It gives later project-analysis steps a safe, consistent starting point without requiring them to search every source again.

Agent

Part of the cairnkit plugin — 2 skills, 7 commands, 11 agents shipped together

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/shenchangmin/cairnkit/doc-collector
Clone the repo
git clone --depth 1 https://github.com/shenchangmin/cairnkit

Or install cairnkit, the plugin that ships this one along with the rest of its 2 skills, 7 commands, 11 agents.

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-collector

README.md
[![agentmods](https://agentmods.dev/badge/agents/shenchangmin/cairnkit/doc-collector.svg)](https://agentmods.dev/agents/shenchangmin/cairnkit/doc-collector)
Your own site
<a href="https://agentmods.dev/agents/shenchangmin/cairnkit/doc-collector"><img src="https://agentmods.dev/badge/agents/shenchangmin/cairnkit/doc-collector.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 251 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.00040 $0.00251
Opus 5 $0.00020 $0.00125
Sonnet 5 $0.00008 $0.00050
Haiku 4.5 $0.00004 $0.00025

Measured 4d ago against content hash be7e578e5c16, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

doc-collector 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 4d 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-collector.md · 22 lines

What it actually says

doc-collector

Gather source material for a cold-start import. Write docs/knowledge-import/01-sources.md:

  • Git history highlights (recurring decisions, reverts, hotfixes).
  • Existing docs/READMEs worth distilling.
  • Notable modules/entry points from a quick code scan.

Secret boundary

Never read or record known secret files such as .env, .env.*, private keys (*.pem, *.key, *.p12, *.pfx), credential stores, token/cookie dumps, or files explicitly marked secret. Do not inspect secret values from Git history. If ordinary source or history unexpectedly exposes a credential-like value, never print or copy the secret value: record only the affected path and a redacted warning, then stop that source from entering the import artifact.

Do not classify or write knowledge entries — only collect. Return a one-line summary.

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. 4d ago First seen · 22 lines · 40 tokens per session scan A be7e578e5c16

Subscribe to this mod's changes

doc-collector is an agent published in the GitHub repository shenchangmin/cairnkit (1 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 251 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.

Related

Other agents, from other repositories

knowledge-guide

Proactive methodology guidance agent. Monitors note creation and provides real-time quality advice. Suggests connections, flags quality issues, recommends MOC updates. Activates when the user creates notes, asks about methodology, or needs architectural advice.

agenticnotetaking/arscontexta · 50 tokens

backlink-manager

Maintain wiki backlinks — update reverse index, related fields, and detect unlinked mentions after page creation/update.

Oshayr/LLM-Wiki · 25 tokens

wiki-auditor

Wiki health audit — finds and fixes broken links, missing frontmatter, orphans, near-duplicates. Fixes inline, no report file.

Oshayr/LLM-Wiki · 34 tokens

wiki-ingest

Parallel batch ingestion agent for the Obsidian wiki vault. Dispatched when multiple sources need to be ingested simultaneously. Processes one source fully (read, extract, file entities and concepts, update index) then reports what was created and updated. Use when the user says "ingest all", "batch ingest", or…

eliransu/digital-brain · 156 tokens

obsidian-vault

The single, integrated handler for everything in the user's Obsidian vault: ADDING, CHANGING, and DELETING vault data, automatically recording Claude Code sessions, and organizing the vault — all through one unified agent. Use PROACTIVELY for any operation that adds, updates, deletes, reads, searches, organizes, or…

takashito/claude-obsidian-chronicle · 266 tokens

memory-analyzer

Analyze memory patterns from patterntracker.json and suggest skill/agent promotion. Use this agent when analyzing memory patterns, detecting frequent patterns, or suggesting knowledge base promotion.

h315uk3/symbiosis · 36 tokens