search

search is a command for Claude Code from cwensel/arcaneum. It costs 11 tokens per session (945 once invoked), scanned A, original, MIT.

A command that searches content collections by meaning or by exact keywords.

In plain words
What is it for?
Use semantic search for concepts such as authentication logic, or full-text search for an exact term or code fragment.
Why use it?
It helps find relevant information across indexed documents and code without opening files one by one.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code.

Part of the arc plugin — 5 skills, 10 commands shipped together

Good fit Use semantic search for concepts such as authentication logic, or full-text search for an exact term or code fragment.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/cwensel/arcaneum/search
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.

Clone the repo
git clone --depth 1 https://github.com/cwensel/arcaneum

Made for: Claude Code.

Or install arc, the plugin that ships this one along with the rest of its 5 skills, 10 commands.

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 search

README.md
[![agentmods](https://agentmods.dev/badge/commands/cwensel/arcaneum/search/github.svg)](https://agentmods.dev/commands/cwensel/arcaneum/search)
Your own site
<a href="https://agentmods.dev/commands/cwensel/arcaneum/search"><img src="https://agentmods.dev/badge/commands/cwensel/arcaneum/search/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 search

Your own site · 80×15
<a href="https://agentmods.dev/commands/cwensel/arcaneum/search"><img src="https://agentmods.dev/badge/commands/cwensel/arcaneum/search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 945 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.00011 $0.00945
Opus 5.5 $0.00004 $0.00378
Sonnet 5.5 $0.00002 $0.00189
Haiku 4.5 $0.00001 $0.00094

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

Security

Grade A, and why

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.

plugin/commands/search.md · 115 lines

What it actually says

Search indexed content using semantic or full-text search. Both modes are first-class: choose the one that matches the query, and use both when unsure.

Quick Start:

# Conceptual or paraphrased query
arc search semantic "your query here" --corpus CorpusName

# Exact phrase (the inner quotes are part of the query)
arc search text '"def authenticate"' --corpus CorpusName

IMPORTANT: The subcommand (semantic or text) comes BEFORE the query.

Subcommands (required):

  • semantic: Vector-based semantic search (Qdrant)
  • text: Keyword-based full-text search (Qdrant text index by default; MeiliSearch on a meili corpus)

Examples:

# Conceptual search
/arc:search semantic "identity proofing" --corpus Standards

# Exact identifier
/arc:search text "authenticate_user" --corpus MyCode

# Exact phrase
/arc:search text '"def authenticate"' --corpus MyCode

# Unsure: run both and combine the useful results
/arc:search semantic "retry backoff" --corpus Docs --limit 5
/arc:search text "retry backoff" --corpus Docs --limit 5

Common Options:

  • --corpus: Corpus/collection to search (can specify multiple times)
  • --limit: Number of results to return (default: 10)
  • --offset: Number of results to skip for pagination (default: 0)
  • --filter: Metadata filter (key=value, key op value, key:op:value or JSON; see the arc-search skill)
  • --json: Output in JSON format
  • --verbose: Show detailed information

Semantic Search Options:

  • --vector-name: Vector name (auto-detected if not specified)
  • --score-threshold: Minimum similarity score

Execution:

arc search $ARGUMENTS

When to Use Each:

Semantic Search (vector-based):

  • Finding conceptually similar code/documents
  • Cross-language semantic matching
  • "What does this" or "How to" questions
  • Fuzzy concept matching

Full-Text Search (keyword-based):

  • Keyword and identifier lookup
  • Function/variable name search
  • Quoted phrase search
  • Typo-tolerant keyword retrieval

Why use full-text corpus search instead of grep?

  • It searches focused corpora, reducing unrelated matches.
  • Sources may be PDFs, external repositories, or files absent from the local checkout.
  • Results are bounded, ranked, and structure-aware, which is usually more token-efficient than consuming exhaustive matching lines.
  • Use rg or grep instead for regular expressions, exhaustive occurrence enumeration, or the authoritative state of local files that may not have been indexed yet.

Result Format:

Both commands show, for each hit in ranked order:

  • A cite, <corpus>:<path> plus #page=N (PDF), #<heading-slug> (markdown) or #L<start>-<end> (code with a line range), e.g. DevRef:Database-Books/db(31).pdf#page=89. Quote it in backticks to cite a hit.
  • The score: semantic similarity, or the text backend's ranking score for text (text search prints it in compact and JSON output only)
  • A bounded content snippet

--json gives both modes one schema: data.hits[] with corpus, chunk_id, locator, cite, score, snippet and snippet_truncated; --verbose adds the stored metadata. See docs/reference/cli-output-format.md.

Related Commands:

  • /arc:corpus create - Create a corpus for semantic and full-text search (recommended)
  • /arc:corpus sync - Index content into a corpus
  • /arc:corpus list - List available corpora
  • /arc:collection list - See available collections (semantic only)

Implementation:

  • RDR-007: Semantic search via Qdrant
  • RDR-012: Full-text search via MeiliSearch (the optional meili backend)
  • RDR-006: Claude Code integration
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 Changed 7a75ee8d24a2
  2. 8d ago Changed 03d74c09211e
  3. 12d ago Changed · +6 lines 921321075142
  4. 2mo ago Changed · +17 lines · +8 tokens per session 4f6455793b65
  5. 3mo ago First seen · 92 lines · 3 tokens per session scan A e133bcead48c

Subscribe to this mod's changes

search is a command published in the GitHub repository cwensel/arcaneum (8 stars, last pushed 3d ago), licensed MIT. It adds 11 tokens to every session and 945 once invoked, about $0.0000 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

search compared with commands from other repositories

search next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
searchcwensel/arcaneumCommand83d agoMITA11Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
convergegithub/spec-kitCommand153ktodayMITA35Claude Code
implementgithub/spec-kitCommand153ktodayMITA14Claude Code