grepai-search-advanced
Structured code search with JSON, TOON, and compact output formats optimized for AI agents.
- Supports three output formats: standard JSON, compact JSON (80% fewer tokens), and TOON notation (50% more compact than JSON)
- Includes
--limit,--json,--toon, and--compactcommand-line options for controlling result volume and token usage - Integrates with MCP servers and AI agents (Claude, GPT) through format selection parameters
- Works with scripting tools (jq, Python, Node.js) and supports piping results to files or other commands
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) |
More from yoanbernabeu/grepai-skills
grepai-search-basics
Basic semantic code search with GrepAI. Use this skill to learn fundamental search commands and concepts.
617grepai-ollama-setup
Install and configure Ollama for local embeddings with GrepAI. Use this skill when setting up private, local embedding generation.
541grepai-trace-graph
Build complete call graphs with GrepAI trace. Use this skill for recursive dependency analysis.
524grepai-search-tips
Tips and best practices for effective GrepAI searches. Use this skill to improve search result quality.
524grepai-trace-callees
Find function callees with GrepAI trace. Use this skill to discover what functions a specific function calls.
507grepai-trace-callers
Find function callers with GrepAI trace. Use this skill to discover what code calls a specific function.
507