Skip to content
Agentmart
Submit a tool

text-search

Search indexed text corpora with qmd.

Skill by w-winter

IndexedMIT★ 139
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/w-winter-text-search

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Search indexed text corpora with qmd. For indexed content, prefer qmd over grep.

Use cases: writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/text-search
  • ~/.claude/projects
  • Your home directory (~)
  • ~/.codex/sessions
  • ~/.pi/agent/sessions
  • ~/.pi/sessions

What's inside

Skill name
text-search
Description
Search indexed text corpora with qmd. For indexed content, prefer qmd over grep.
License
MIT
Instructions
373 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (8)

  • SKILL.md
  • analyze-sessions.sh · scripts/
  • claude-session-extract-with-tools.py · scripts/
  • codex-session-extract-with-tools.py · scripts/
  • pi-session-extract-with-tools.py · scripts/
  • rebuild-qmd-sessions-rendered.sh · scripts/
  • repoprompt-agent-session-extract.py · scripts/
  • session-view · scripts/

SKILL.md (first lines)

# text-search

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:

```bash
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

```bash
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.

```bash
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.

- `lex:` exact terms, phrases, identifiers, JSON fields
- `vec:` natural-language meaning
- `hyde:` what the answer likely looked like
- `intent:` optional steering context

```bash
qmd query $'intent: agent sessions about RepoPrompt edits and patch failures
lex: apply_edits rp_exec "search block not found"
vec: debugging failed file edits in agent sessions
hyde: The agent tried to edit a file several times, the edit did not match, and it switched to a narrower or different approach'
```

Operational details:
- The first typed query gets 2x fusion weight, so put the strongest signal first
- `expand:` must stand alone; do not mix it with typed lines
- lex queries support quoted phrases and exclusions such as `-sports` or `-"test data"`

### Useful output and tuning flags

```bash
qmd query --files -n 20 "agent session about flaky tests"
qmd query --json -n 10 "session where we redesigned the search flow"
qmd query --json --explain -c sessions "apply_edits error"
qmd query -C 20 --min-score 0.3 -c sessions "OAuth redirect flow"
```

Use:
- `--files` for compact discovery output and path-based follow-up
- `--json` for structured inspection when you need scores/snippets
- `--explain` when ranking looks wrong
- `-C, --candidate-limit` to reduce reranking work
- `--min-score` to drop weak matches
- `-c, --collection` to scope the search

For session hunting, `--files` is usually the best first output mode.

## Retrieval commands

```bash
qmd get "#abc123"
qmd multi-get "docs/*.md" --json
qmd ls sessions
qmd ls sessions/claude
```

Use `get`, `multi-get`, and `ls` to retrieve or browse content after discovery.

For session discovery, use this inspection path:

```bash
# 1. Discover a session transcript
qmd search -c sessions --files 'apply_edits' -n 5

# 2. Read the session transcript directly
qmd get "qmd://sessions/path/to/session-transcript.md" --full
```

From w-winter/dot314, MIT.

Signals

Stars
139
Forks
18
Open issues
0
Last commit (this folder)
May 5, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from w-winter

Cite this page

text-search skill. Agent Mart. https://agentmart.dev/skills/w-winter-text-search (last updated 2026-10-24)