lore-sweep

lore-sweep is a skill for Claude Code from osteele/agent-lore. It costs 165 tokens per session (1,600 once invoked), scanned A, original, MIT.

A skill for processing lore's recorded-gap queue, which contains searches that previously found no answer.

In plain words
What is it for?
It is for reviewing missed searches, checking whether gaps are already resolved, finding answers in available sources, and updating the knowledge base.
Why use it?
It helps turn repeated unanswered searches into documented knowledge gaps and resolve them when the answer can be recovered.

Skill for Claude Code

Written for Claude Code: SessionStart hook event.

Good fit It is for reviewing missed searches, checking whether gaps are already resolved, finding answers in available sources, and updating the knowledge base.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/osteele/agent-lore/lore-sweep
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.

Any agent
npx skills add osteele/agent-lore --skill lore-sweep
Clone the repo
git clone --depth 1 https://github.com/osteele/agent-lore

Made for: Claude Code.

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 lore-sweep

README.md
[![agentmods](https://agentmods.dev/badge/skills/osteele/agent-lore/lore-sweep/github.svg)](https://agentmods.dev/skills/osteele/agent-lore/lore-sweep)
Your own site
<a href="https://agentmods.dev/skills/osteele/agent-lore/lore-sweep"><img src="https://agentmods.dev/badge/skills/osteele/agent-lore/lore-sweep/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 lore-sweep

Your own site · 80×15
<a href="https://agentmods.dev/skills/osteele/agent-lore/lore-sweep"><img src="https://agentmods.dev/badge/skills/osteele/agent-lore/lore-sweep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 165 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,600 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.00165 $0.01600
Opus 5.5 $0.00066 $0.00640
Sonnet 5.5 $0.00033 $0.00320
Haiku 4.5 $0.00016 $0.00160

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

Security

Grade A, and why

lore-sweep 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 14d 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.

skills/lore-sweep/SKILL.md · 115 lines

How it starts

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

Sweeping lore's recorded gaps

A zero-result search is a topic gap stated in an agent's own words, at the moment it cost somebody something. lore misses turns those into a queue. This skill works the queue.

The queue is self-cleaning: every candidate is replayed against the current repo before it is listed, so a gap someone has already filled drops off and is counted under resolved. You never have to prune it by hand, and you should never "close" a row by editing the log.

Sessions also leave a second queue: ## Untried and ## Open question sections on topic pages, recording an approach set aside or a general question nobody settled. Sections 1–5 work the miss queue; section 6 works this one. Do either alone when asked for one.

1. Read the queue

lore misses --json           # for working through programmatically
lore misses                  # human-readable
lore misses --since 30d --min-count 2   # only gaps that cost more than one session

Each row carries the query verbatim, how many times it was hit, which sessions hit it, the directory each was working in, and a suggested path.

2. Triage before you write

Not every row is a missing page. Sort each into one of four:

  • Answerable now. The fact is recoverable from this machine — a man page, --help, the source, a quick experiment. Most rows. Go to step 3.
  • Answerable only from the session that hit it. The session worked the problem out and the resolution is in its transcript. Use the ctx-agent-history-search skill, scoped to the cwd the row gives you. This is where the highest-value facts live, because a gap someone had to solve the hard way is exactly the gap worth recording.
  • Not a gap — a category error. The session was addressing lore as if it were something else. A row like lore_read plans/backlog/2026-07-26-….md is a session looking for its own project's lab notebook; lore holds what outlives a single project. Do not write a page. Leave the row; it costs nothing and it is evidence about how sessions misread the tool.
  • Still unknown. Nobody knows the answer yet. Leave it. A row that sits is honest.

Read the full file on GitHub · 115 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. 14d ago Changed · +34 lines · +55 tokens per session bbe25c83d372
  2. 3mo ago First seen · 81 lines · 110 tokens per session scan A 6e69a1c6feea

Subscribe to this mod's changes

lore-sweep is a skill published in the GitHub repository osteele/agent-lore (0 stars, last pushed 15d ago), licensed MIT. It adds 165 tokens to every session and 1,600 once invoked, about $0.0007 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.

Related

lore-sweep compared with skills from other repositories

lore-sweep next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lore-sweeposteele/agent-loreSkill015d agoMITA165Claude Code
sceneproofReyJ94/SceneProofSkill4329d agoMITA66Claude Code, Codex
knownpathnasyx-rakeeb/knownpathSkill39d agoApache-2.0A86Claude Code, Codex
kbhraness/kbSkill132mo agoMITA155Codex
setup-manascollindjohnson/manasSkill01mo agoMITA63Codex
release-notesynfra/ybrainSkill021d agoMITA20Claude Code, Codex
manas-capturecollindjohnson/manasSkill01mo agoMITA25Claude Code, Codex