
Grepai Search Advanced
If you're hooking GrepAI up to Claude or another AI agent, this is the skill you need. It covers JSON and TOON output formats, plus compact mode that strips out code content and uses abbreviated keys to cut tokens by around 80%. The TOON format goes even further, getting you down to roughly 150 tokens for five results versus 1,500 for standard JSON. The examples show exactly what the output looks like in each mode, plus MCP integration details and scripting patterns for bash, Python, and Node. Honestly, the compact formats feel purpose-built for keeping AI context windows sane when you're searching large codebases.
- skills.sh installs
- 855
- GitHub stars
- 20
- last updated
- Aug 21, 2026
Install
$ npx -y skills add yoanbernabeu/grepai-skills --skill grepai-search-advanced --agent claude-codeInstalls into .claude/skills of the current project.
Files
GrepAI Advanced Search Options
This skill covers advanced search options including JSON output, compact mode, and integration with AI agents.
When to Use This Skill
- Integrating GrepAI with scripts or tools
- Using GrepAI with AI agents (Claude, GPT)
- Processing search results programmatically
- Reducing token usage in AI contexts
Command-Line Options
| Option | Description |
|---|---|
--limit N | Number of results (default: 10) |
--json / -j | JSON output format |
--toon / -t | TOON output format (~50% fewer tokens than JSON) |
--compact / -c | Compact output (no content, works with --json or --toon) |
Note:
--jsonand--toonare mutually exclusive.
JSON Output
Standard JSON
grepai search "authentication" --json
Sponsors
Details
- Repository
- github.com/yoanbernabeu/grepai-skills
- Category
- AI & Agent Building
- First seen
- May 16, 2026
More from yoanbernabeu/grepai-skills
All 27- Grepai Trace Graph831
- Grepai Trace Callers812
- Grepai Ollama Setup808
- Grepai Search Tips807
- Grepai Trace Callees790
- Grepai Search Boosting778
- Grepai Embeddings Ollama770
- Grepai Mcp Tools744
- Grepai Languages732
- Grepai Chunking729
- Grepai Init724
- Grepai Watch Daemon723
- Grepai Config Reference717
- Grepai Troubleshooting717
- Grepai Workspaces711
- Grepai Ignore Patterns703
- Grepai Storage Gob692
- Grepai Mcp Claude618
- Grepai Mcp Cursor601
- Grepai Quickstart600
- Grepai Installation598
- Grepai Storage Qdrant570
- Grepai Embeddings Lmstudio568
- Grepai Embeddings Openai560