glhf

Search Claude Code conversation history and tool logs to find past solutions, recall commands, and discover related work. Use when the user mentions past sessions, asks "have I done this before", "how did I", "what command did I run", or needs to find previous implementations, error resolutions, debugging approaches, or configuration changes. Also use proactively before proposing solutions — check if a similar problem was already solved.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "glhf" with this command: npx skills add trevors/dot-claude/trevors-dot-claude-glhf

glhf — Conversation History Search

Search your Claude Code conversation history using hybrid search (text + semantic).

When invoked as /glhf <query>, run: glhf search "$ARGUMENTS" --mode semantic --compact

Quick Examples

# Find past solutions (semantic search)
glhf search "authentication" --mode semantic --compact

# Find commands you've run
glhf search "docker" -t Bash --compact

# Regex search for exact error messages
glhf search -e "ECONNREFUSED|ETIMEDOUT" --compact

# Search with context (like grep -C)
glhf search "panic" -C 2 --compact

# Check recent sessions
glhf recent -l 10

# Get session overview then dive deeper
glhf session abc123 --summary
glhf session abc123 --limit 50

Commands

CommandPurpose
searchFind content across all sessions
sessionView a specific session's content
relatedFind sessions similar to a given one
recentList recent sessions
projectsList all indexed projects
statusShow index stats
indexRebuild the search index

Key Search Flags

FlagPurpose
--compactOne-line output, fewer tokens
--mode semanticConceptual search (how to X, patterns)
--mode textExact keyword matching
-e/--regexRegex pattern matching (like grep -e)
-i/--ignore-caseCase-insensitive (for regex mode)
-A N/-B N/-C NContext lines after/before/around matches
-t BashFilter by tool (Bash, Read, Edit, Grep, etc.)
-p .Filter to current project
-X nameExclude a project by name (repeatable)
--since 1dTime filter (1h, 2d, 1w, or date)
--errorsOnly show error results
--messages-onlyExclude tool calls
--tools-onlyExclude messages
--show-session-idInclude session IDs for follow-up
--jsonMachine-readable JSON output
--scoresShow relevance scores
--oldestReverse sort (oldest first)
--include-this-projectOverride auto-exclusion of current project
--include-this-sessionOverride auto-exclusion of current session
--this-sessionFilter to current session only

Recommended Patterns

Find past solutions:

glhf search "problem description" --mode semantic --compact
glhf search "specific keyword" --show-session-id --compact
glhf session <id> --summary

Recall commands:

glhf search "git rebase" -t Bash --compact
glhf search "cargo" -t Bash --since 1w --compact

Regex search for exact errors:

glhf search -e "thread.*panicked" --compact
glhf search -e "error\[E\d+\]" -i --compact

Find similar work:

glhf recent -l 10
glhf related <session-id> --limit 5

Debug past errors:

glhf search "error" --errors --since 1d --compact

Cross-project search (override auto-exclusion):

glhf search "auth" --include-this-project --compact
glhf search "deploy" -X stable -X dotfiles --compact

Tips

  1. Always use --compact — significantly reduces output tokens
  2. Use --mode semantic for "how to" questions and conceptual searches
  3. Use -e (regex) for exact error messages and patterns
  4. Chain commands: search → get session ID → view summary → get full context
  5. Current project/session auto-excluded when running inside Claude Code — use --include-this-project or --include-this-session to override
  6. Use -p . to filter to current project when you want to include it
  7. Use --json when piping to other tools or processing programmatically
  8. Index with --skip-embeddings for fast text-only reindex

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

maintaining-claude-code

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

claude-code-web-docker

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

github prior art research

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

linear cli

No summary provided by upstream source.

Repository SourceNeeds Review