text-search

text-search is a skill for Claude Code, Codex from w-winter/dot314. It costs 22 tokens per session (3,059 once invoked), scanned A, original, MIT.

A search tool for finding exact words or related ideas in indexed text such as notes, documents, logs, and session records.

In plain words
What is it for?
Use it to find tool names, error messages, repository names, JSON fields, literal phrases, or concepts across indexed content.
Why use it?
It helps you search large text collections without manually inspecting noisy files or using the wrong search method.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/w-winter/dot314/text-search
Any agent
npx skills add w-winter/dot314 --skill text-search
Clone the repo
git clone --depth 1 https://github.com/w-winter/dot314

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/w-winter/dot314/text-search.svg)](https://agentmods.dev/skills/w-winter/dot314/text-search)
Your own site
<a href="https://agentmods.dev/skills/w-winter/dot314/text-search"><img src="https://agentmods.dev/badge/skills/w-winter/dot314/text-search.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,059 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 $0.00022 $0.03059
Opus 5 $0.00011 $0.01529
Sonnet 5 $0.00004 $0.00612
Haiku 4.5 $0.00002 $0.00306

Measured 5d ago against content hash 18c1502440dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

text-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 5d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/analyze-sessions.sh, scripts/claude-session-extract-with-tools.py, scripts/codex-session-extract-with-tools.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/text-search/SKILL.md · 378 lines

How it starts

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

Use qmd to search indexed text corpora such as session logs, notes, docs, and logs. For indexed content, use qmd for discovery instead of raw grep.

First checks

Before searching, confirm what is indexed:

qmd status
qmd collection list
qmd context list

Do not assume collection names, paths, or contexts.

Core rule

For indexed corpora, use qmd for discovery.

Do not use grep/find/jq/cat directly on indexed files to search for meaning. This is especially important for session JSONL, which is noisy and hard to interpret raw.

Shell usage is still fine for:

  • filtering tool output after discovery
  • housekeeping and file targeting
  • non-indexed content
  • helper scripts in this skill

Choose the right qmd command

For exact clues, start with qmd search.

  • Use qmd search for exact clues: tool names, error strings, repo names, JSON fields, literal phrases
  • Use qmd query when lexical search is weak, the request is conceptual, or you want hybrid retrieval + reranking
  • Use qmd vsearch only when you specifically want pure semantic similarity
qmd search '"toolName":"rp_exec"'
qmd search 'apply_edits'
qmd query "OAuth redirect flow"
qmd vsearch "the session where we changed direction"

Operational notes:

  • qmd query may trigger local model startup or model downloads, so it is not always the fastest first step
  • For session discovery, prefer --files first so you get compact path output instead of long snippets

Build better queries

Use --intent when the request is ambiguous

intent is a steering hint. Use it when the same words could refer to multiple things or when the user remembers the topic better than the exact wording.

qmd query --intent "Pi/Codex/Claude agent sessions about repo editing failures" \
  -c sessions \
  "apply_edits error"

Use structured query documents for important searches

Multi-line query documents are useful when you have both exact clues and fuzzy memory.

Read the full file on GitHub · 378 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. 5d ago First seen · 378 lines · 22 tokens per session scan A 18c1502440dd

Subscribe to this mod's changes

text-search is a skill published in the GitHub repository w-winter/dot314 (125 stars, last pushed 10d ago), licensed MIT. It adds 22 tokens to every session and 3,059 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.