Borrowing it
Nothing to install: this file belongs to slowww-ai/second-brain. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/slowww-ai/second-brain/main/.claude/commands/ingest.mdgit clone --depth 1 https://github.com/slowww-ai/second-brainWrote 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.
[](https://agentmods.dev/commands/slowww-ai/second-brain/ingest)<a href="https://agentmods.dev/commands/slowww-ai/second-brain/ingest"><img src="https://agentmods.dev/badge/commands/slowww-ai/second-brain/ingest/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.
<a href="https://agentmods.dev/commands/slowww-ai/second-brain/ingest"><img src="https://agentmods.dev/badge/commands/slowww-ai/second-brain/ingest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00015 | $0.00966 |
| Opus 5.5 | $0.00006 | $0.00386 |
| Sonnet 5.5 | $0.00003 | $0.00193 |
| Haiku 4.5 | $0.00002 | $0.00097 |
Grade A, and why
ingest 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.
What it actually says
Your job is to turn new raw captures into clean, linked wiki notes.
Steps:
- Run
python scripts/ingest.py list-newto find raw files not yet referenced by any note. Also list any images or PDFs inwiki/raw/that don't yet have a companion.mdfile — those need to be processed too. - Non-text captures first. For every image or PDF in
raw/without a companion.md:- Read the file directly (Claude can see images and PDFs natively).
- Create
raw/<same-name>.mdwith frontmatter, a description, a full transcription of any visible text/tables, and animage:orpdf:reference line. - Do NOT modify or delete the original binary file.
- Treat the new companion
.mdas a raw capture and continue with the normal flow below.
- For each new raw markdown file (including companions just created):
a. Read it according to its length. First check line count (
wc -l <path>or the file header from Read). Then:- Under 500 lines — read the entire file in one pass. No shortcuts.
- 500–2000 lines — read the entire file, in sequential chunks if needed. Distill aggressively into short notes, but do not skip sections.
- Over 2000 lines — read the first ~200 lines to get structure and thesis, scan the table of contents / headers, then read in full the sections most relevant for distillation and linking. It's fine to skip appendices, repetitive examples, or sections clearly tangential to the core concepts.
- Always report read-coverage in your final summary as
read X/Y lines of <file>so shallow reads are never silent. If coverage is under 100%, note which sections you skipped and why, so the user can request a follow-up deep pass. b. Runpython scripts/ingest.py stamp <path>if it has no frontmatter yet. c. Identify the 1–3 core concepts in the file. d. For each concept, decide: does a matching note already exist inwiki/notes/? Usepython scripts/search.py "<concept>"to check. e. If yes → append a distilled paragraph to that note and cite the raw file (see raw/<filename>). f. If no → create a new note inwiki/notes/<slug>.mdwith proper frontmatter, a short summary, and[[wikilinks]]to any related existing notes. If the source was an image or PDF, embed it inline with. g. Tag framework notes. If the note captures a reusable mental model / analytical lens / decision tool you'd apply across many topics (e.g.strategy-vs-planning,revenue-models) — not just facts about one thing — makeframeworkits first tag so it joins the framework library (queryable via the tag). This is only for knowledge frameworks, which stay searchable. Production frameworks (templates / rubrics / playbooks that a content skill applies when generating — e.g. the SNS hook playbook) do NOT belong inwiki/notes/; they live in.claude/skills/_shared/so they stay out of semantic search and are referenced by skills.
- Add backlinks: if note A now references note B, make sure B has an entry pointing back to A when it's meaningful.
- Never modify or delete original files in
wiki/raw/(companion.mdfiles you just created are fine to edit). - Record each processed raw file in the ledger. After you finish distilling a raw file, run:
where the second argument is a comma-separated list of note IDs (filenames withoutpython scripts/ingest.py record <raw-filename> <note1,note2,...>.md) produced or updated from that raw file. This is how the ledger tracks what's been ingested — without it, the file will show up as "new" on every run. - At the end, print a short summary: how many raw files processed, how many notes created, how many notes updated, and which decisions you're least sure about so the user can correct you.
Remember: small, focused notes are better than big ones. Split when in doubt.
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.
- 1mo ago Changed · +1 lines f79d5b536f43
- 2mo ago First seen · 36 lines · 15 tokens per session scan A f1373ae27032
ingest is a command published in the GitHub repository slowww-ai/second-brain (10 stars, last pushed 1mo ago), licensed MIT. It adds 15 tokens to every session and 966 once invoked, about $0.0001 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-31.
ingest compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ingestslowww-ai/second-brain | Command | 10 | 1mo ago | MIT | A | 15 | Claude Code |
| brand-generateferdinandobons/brand-docs | Command | 291 | 3mo ago | MIT | A | 0 | Claude Code |
| cti-report7onez/cti-expert | Command | 622 | 15d ago | none | A | 45 | Claude Code |
| render-figuresbraininahat/brains-in-a-hat | Command | 4 | 18d ago | MIT | A | 17 | Claude Code |
| ppt-image2-editable-rebuildwwe-dog/ppt-image2-editable-rebuild | Command | 204 | 5mo ago | Unlicense | A | 15 | Claude Code |
| publish-api-docsnavraj007in/architecture-cowork-plugin | Command | 3 | 4mo ago | Apache-2.0 | A | 17 | Claude Code |
| write-patentjiutuhky/my-super-capsule | Command | 11 | 8mo ago | MIT | A | 48 | Claude Code |