rn search

Search across your pushed sessions and plans by keyword. Results are ranked by relevance using SQLite FTS5 with Porter stemming.

rn search <query> [flags]

Flags

Flag Short Type Default Description
--type -t string Filter by type: session, plan, skill
--scope -s string Content scope: user, assistant, agent, tool
--project string Filter by project nanoid
--limit -n int 20 Max results

Scopes

By default, search matches across all content. Use --scope to narrow the search to a specific part of the conversation:

Scope Searches
user Your prompts
assistant Claude or Copilot responses
agent Sub-agent messages
tool Tool call outputs (file contents, command results)

Output

Each result shows:

  • Type badge ([session], [plan], or [skill])
  • Title (or nanoid if untitled)
  • Matching snippet with context
  • Metadata: nanoid, git branch, provider (if not Claude)
  • URL to the shared page

Examples

Search for a keyword:

rn search "auth middleware"

Show only plans:

rn search "database schema" --type plan

Show only skills:

rn search "lint" --type skill

Search within your prompts:

rn search "fix the bug" --scope user

Search within a specific project:

rn search "migration" --project pRj_Xm9kQ2w1

Limit results:

rn search "error handling" -n 5