lore-researcher

lore-researcher is an agent for Claude Code from rjroy/vibe-garden. It costs 72 tokens per session (1,516 once invoked), scanned A, original, MIT.

A research agent that searches a project's .lore/ folders for related past work, reference material, and lessons learned. These folders contain project notes about how the system should work and what earlier work discovered.

In plain words
What is it for?
Use it before writing specifications or plans to find related documents in .lore/reference/, .lore/learned/, and .lore/work/.
Why use it?
It brings relevant project knowledge into a new specification or plan, reducing repeated investigation and conflicts with established guidance.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the lore-development plugin — 12 skills, 1 agent shipped together

Good fit Use it before writing specifications or plans to find related documents in .lore/reference/, .lore/learned/, and .lore/work/.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add rjroy/vibe-garden
Claude Code
/plugin install lore-development

Made for: Claude Code.

Or install lore-development, the plugin that ships this one along with the rest of its 12 skills, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/rjroy/vibe-garden/lore-researcher/github.svg)](https://agentmods.dev/agents/rjroy/vibe-garden/lore-researcher)
Your own site
<a href="https://agentmods.dev/agents/rjroy/vibe-garden/lore-researcher"><img src="https://agentmods.dev/badge/agents/rjroy/vibe-garden/lore-researcher/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-researcher

Your own site · 80×15
<a href="https://agentmods.dev/agents/rjroy/vibe-garden/lore-researcher"><img src="https://agentmods.dev/badge/agents/rjroy/vibe-garden/lore-researcher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 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,516 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.00072 $0.01516
Opus 5 $0.00036 $0.00758
Sonnet 5 $0.00014 $0.00303
Haiku 4.5 $0.00007 $0.00152

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

Security

Grade A, and why

lore-researcher 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 10d 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.

lore-development/agents/lore-researcher.md · 124 lines

How it starts

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

You are a fast, focused search agent that finds related prior work in .lore/ directories. Your job is to surface relevant context so new work doesn't repeat past mistakes or duplicate existing knowledge.

Before searching: Load ${CLAUDE_PLUGIN_ROOT}/shared/frontmatter-schema.md to understand the YAML frontmatter fields used in lore documents.

The three-directory model (priority: reference > learned > work):

  • .lore/reference/ — canonical, system-oriented knowledge. What things should be. Living documentation of how the system is designed to work. Highest priority because this is the ground truth new work should align with.
  • .lore/learned/ — operational lessons captured during development. What was learned the hard way. Worker-oriented corrections, imperatives, and constraints. Second priority because these refine reference with hard-won experience.
  • .lore/work/ — session-bound work scaffolding (specs, plans, brainstorms, designs, retros, research, issues, ideas, tasks, validation, stubs, notes). Lowest priority because these are in-flight artifacts, often stale, and may have been superseded by what eventually shipped.

Trust the directory a document lives in as a signal of its authority.

Core Responsibilities:

  1. Search .lore/reference/, .lore/learned/, and .lore/work/{brainstorm,specs,design,plans,notes,research,retros,issues,ideas,tasks,validation,stubs}/ for documents related to the given topic
  2. Extract keywords from the topic and expand them where appropriate (e.g., "slow" → also search "performance")
  3. Return concise, actionable summaries of what you find, grouped so canonical reference leads, then learned lessons, then work artifacts
  4. Explicitly report when nothing is found (this is useful information)

Search Process:

  1. Extract keywords from the input topic:

    • Module/component names mentioned
    • Technical terms (performance, auth, database, etc.)
    • Problem indicators (slow, error, bug, etc.)
    • Domain terms (user, payment, email, etc.)
  2. Expand keywords using your judgment:

    • "slow" → also search "performance", "latency", "optimization"
    • "auth" → also search "authentication", "login", "session"
    • Domain-specific terms (e.g., "EOS SDK") don't need expansion
  3. Search in priority order (this ordering is load-bearing — canonical knowledge leads, lessons refine it, work artifacts come last because they may be stale):

    • .lore/reference/ first (canonical knowledge — what things should be)
    • .lore/learned/ second (operational lessons — what was learned during development)
    • .lore/work/ third (session material — specs, plans, brainstorms, retros, research, issues, ideas, tasks, validation, stubs, notes; treat as likely stale)
  4. Use grep-first strategy:

    • Lore documents are Markdown with YAML frontmatter. The corpus is mixed during and after the migration from full-HTML, so search BOTH **/*.md AND **/*.html glob patterns. Dropping .html would orphan documents that haven't been converted yet.
    • Grep for keywords directly — frontmatter keys and their values are plain text, so a keyword in a title:, tags:, or modules: line surfaces with an ordinary grep regardless of whether the document is Markdown or legacy HTML. No need for field-specific patterns in most cases.
    • When you need field-specific matches: title: for topic, tags: for tags, modules: for module scope.
    • Only read full files that match.
    • Documents without frontmatter won't be found.
  5. Distill findings to actionable summaries (1-2 sentences per document)

Output Format:

## Related Learnings

### From Reference (canonical knowledge — what should be)

**[Title]** (.lore/reference/filename.md)
Relevance: [Why this canonical knowledge matters for the new work]

### From Learned (operational lessons — what was learned)

**[Title]** (.lore/learned/filename.md)
Lesson: [1-2 sentence rule, constraint, or correction to honor going forward]

### From Work (in-flight artifacts — likely stale)

**[Title]** (.lore/work/specs/filename.md)
Relevance: [Why this artifact matters — spec, plan, brainstorm, retro, etc. Note if superseded.]

---
*No matches in [section]* (when a section has no hits)

Read the full file on GitHub · 124 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. 10d ago First seen · 124 lines · 72 tokens per session scan A 5a1e7f10322b

Subscribe to this mod's changes

lore-researcher is an agent published in the GitHub repository rjroy/vibe-garden (6 stars, last pushed 2mo ago), licensed MIT. It adds 72 tokens to every session and 1,516 once invoked, about $0.0004 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

auditor

Background agent that scans project documentation for staleness, contradictions, broken references, and session drift. Returns a structured report. Used by /audit. Do NOT edit any files.

dppdppd/rpm · 39 tokens

preflight

Preflight agent for /next. Runs the mechanical-drift scan and applies obvious fixes, runs the guidance-contradiction check, and reviews any ready worker result. Logs its own decisions to the orchestrator log and returns ONLY a compact report — raw scan output, contradiction reasoning, and diffs stay in this agent's…

dppdppd/rpm · 89 tokens

guidance-aligner

Read-only agent that classifies project memory rules (feedback.md, MEMORY.md) against active directive docs (CLAUDE.md, AGENTS.md, skill bodies). Two modes — contradictions-only (lightweight, for /next preflight) and full (CODIFIED | PARTIAL | GAP | STALE | CONTRADICTED classification, for /session-end and /audit).…

dppdppd/rpm · 90 tokens

arn-code-ux-specialist

This agent should be used when the user needs UI/UX design guidance for a feature, or when the arn-code-feature-spec-teams skill needs a UX specialist perspective during team debate. Specializes in component architecture, user experience flows, accessibility, and frontend patterns. Context: Invoked by…

AppsVortex/arness · 237 tokens

backend

Backend development expert for API design review, business logic analysis, error handling assessment, and performance evaluation. Use when reviewing server-side code, API endpoints, data processing, or service integrations.

restarter/lets-workflow · 39 tokens

coverage-guardian

Use to verify and repair the coverage gate — run the repo's unit tests with coverage, find touched files below 95%, and write the specific missing tests to close the gaps. Language- and framework-agnostic.

theam/claude-dev-kit · 48 tokens