rc-search

rc-search is a skill for Claude Code, Codex from lhl/realitycheck. It costs 23 tokens per session (480 once invoked), scanned A, original, Apache-2.0.

A natural-language search tool for finding related claims and their sources in a reality-checking database. Semantic search matches the meaning of a query, not only its exact words.

In plain words
What is it for?
Use it to search for claims or sources, limit results by topic area or record type, and retrieve a set number of matches.
Why use it?
It helps locate relevant research or analysis when you do not know the exact wording used in the database.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is # or: uv run python scripts/db.py search "query" --limit 10.

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/lhl/realitycheck
agentmods
npx agentmods add skills/lhl/realitycheck/rc-search

Made for: Claude Code, Codex.

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 rc-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/lhl/realitycheck/rc-search.svg)](https://agentmods.dev/skills/lhl/realitycheck/rc-search)
Your own site
<a href="https://agentmods.dev/skills/lhl/realitycheck/rc-search"><img src="https://agentmods.dev/badge/skills/lhl/realitycheck/rc-search.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 480 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.1 $0.00023 $0.00480
Opus 5 $0.00012 $0.00240
Sonnet 5 $0.00005 $0.00096
Haiku 4.5 $0.00002 $0.00048

Measured 6d ago against content hash 9997994de714, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

rc-search 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 6d 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.

integrations/amp/skills/rc-search/SKILL.md · 71 lines

What it actually says

Search claims and sources using natural language queries. Use when looking for related claims or finding existing analysis.

When This Skill Activates

  • "Search for claims about"
  • "Find related claims"
  • "Look up claims"

Search claims and sources using natural language queries.

Usage

rc-db search "query" --limit 10
# or: uv run python scripts/db.py search "query" --limit 10

Note: Semantic search requires embeddings. If search fails with embedding errors:

  • Ensure sentence-transformers is installed (included in realitycheck dependencies)
  • Check embedding status: rc-db embed status or uv run python scripts/embed.py status
  • Generate missing embeddings: rc-db embed generate or uv run python scripts/embed.py generate
  • Do not set REALITYCHECK_EMBED_SKIP=1 unless you explicitly want to disable embeddings (used for CI/testing)

Options

  • --domain: Filter by domain (TECH/LABOR/ECON/GOV/SOC/RESOURCE/TRANS/GEO/INST/RISK/META)
  • --limit: Maximum results to return (default: 10)
  • --format: Output format - json (default) or text
  • --type: Filter by record type (claim or source)

How It Works

  1. Convert query to embedding using sentence-transformers
  2. Find nearest neighbors in the claims/sources vector index
  3. Return ranked results with similarity scores

Output

Results include:

  • Claim/Source ID
  • Text (truncated)
  • Type, Domain, Evidence Level
  • Credence score
  • Similarity score

Examples

rc-db search "AI automation labor displacement"
rc-db search "training costs" --domain TECH --limit 5
rc-db search "economic transition" --type claim

  • rc-stats
  • rc-validate
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. 6d ago First seen · 71 lines · 23 tokens per session scan A 9997994de714

Subscribe to this mod's changes

rc-search is a skill published in the GitHub repository lhl/realitycheck (41 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 23 tokens to every session and 480 once invoked, about $0.0001 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-30.