lore-sweep

lore-sweep is a skill for Claude Code from osteele/agent-lore. It costs 110 tokens per session (1,026 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 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,026 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.00110 $0.01026
Opus 5.5 $0.00044 $0.00410
Sonnet 5.5 $0.00022 $0.00205
Haiku 4.5 $0.00011 $0.00103

Measured 1mo ago against content hash 6e69a1c6feea, 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 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.

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

How it starts

The opening of the file, as written. The whole thing — 81 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.

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.

Say which bucket each row went into. Do not silently skip a row.

3. Search lore before you write

Read the full file on GitHub · 81 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 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 1mo ago), licensed MIT. It adds 110 tokens to every session and 1,026 once invoked, about $0.0004 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

Other skills, from other repositories

kb

Set up, evolve, or operate a hraness/kb local-first Markdown knowledge base for coding-agent memory. Use when a user asks to design KB conventions or a recurring KB ritual; search or query a KB or Obsidian vault; load or recover repository context, plans, decisions, concepts, backlinks, semantic search, or Git…

hraness/kb · 155 tokens

sceneproof

Visual reasoning discipline for verifying UI and Three.js work with the SceneProof CLI. Use whenever a change can alter rendered output — components, styles, layout, SVG, canvas, scenes, cameras, lights, materials, animation — or whenever about to claim that something "looks right", "is visible", or "renders…

ReyJ94/SceneProof · 89 tokens

knownpath

Consult KnownPath for evidence-grounded prior solutions to non-trivial debugging, unfamiliar or recurring technical errors, framework migrations, dependency conflicts, build failures, environment or version mismatches, native configuration problems, and tooling quirks. Use before spending significant time…

nasyx-rakeeb/knownpath · 86 tokens

setup-manas

Set up local Manas chat synchronization for Codex, Claude Code, Pi, Cursor, Grok, and other supported coding agents. Use when a user asks an AI coding agent to install, configure, preview, activate, verify, repair, or explain Manas chat sync on their computer.

collindjohnson/manas · 63 tokens

gbrain-ingest

Ingest meetings, articles, docs, and conversations into the brain. Updates existing pages with new info, creates pages for new entities, maintains cross-references.

imphillip/gbrain-openclaw · 37 tokens

gbrain-enrich

Enrich person and company pages from external sources (Crustdata, Happenstance, Exa). Validation rules enforced.

imphillip/gbrain-openclaw · 30 tokens