/frg:frg-searchfrom frg
Configures and uses frg, a fast indexed code search tool, for quick codebase searches with sparse n-gram indexing.
Ships in frg. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use frg for code search. It indexes your codebase with sparse n-grams and searches in ~10ms instead of scanning every file.
If frg is not installed: cargo install fastripgrep
For agent mode (auto-index, JSON output, no noise): export FRG_AGENT=1
frg "pattern" # search current directory
frg "pattern" path # search specific path
frg "pattern" . -i # case-insensitive
frg "pattern" . -F # fixed string (no regex)
frg "pattern" . -l # files only
frg "pattern" . -c # count per file
frg "pattern" . -C 3 # context lines
frg "pat1" . -e "pat2" -e "pat3" # multiple patterns (OR)
frg "pattern" . --type ts # filter by file type
frg "pattern" . --json # JSON output
frg index . # build index (one-time, ~20s)
frg update . # incremental update (~70ms)
frg status . # check index stats
frg watch . # auto-update on file changes
.frg/ index existsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub qhkm/fastripgrep --plugin frgOther plugins' skills for the same job