Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add greppable/greppable-cc-plugin/plugin install greppableWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/greppable/greppable-cc-plugin/discover)<a href="https://agentmods.dev/commands/greppable/greppable-cc-plugin/discover"><img src="https://agentmods.dev/badge/commands/greppable/greppable-cc-plugin/discover/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/greppable/greppable-cc-plugin/discover"><img src="https://agentmods.dev/badge/commands/greppable/greppable-cc-plugin/discover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00028 | $0.01884 |
| Opus 5.5 | $0.00011 | $0.00754 |
| Sonnet 5.5 | $0.00006 | $0.00377 |
| Haiku 4.5 | $0.00003 | $0.00188 |
Grade A, and why
discover scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/greppable:discover — Full Codebase Scan
Scan the project structure and generate GDL artifacts that document the codebase.
Arguments
$ARGUMENTS contains optional path or focus area:
- Empty: scan entire codebase
- Path (e.g.,
src/auth/): focus scan on that directory - Description (e.g., "authentication layer"): focus scan contextually
Pre-Flight
-
Read config from
.claude/greppable.local.mdto determine active layers andgdl_root. If no config, use defaults: all layers enabled,gdl_root=docs/gdl. -
Run bridge detection pre-scanner:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/gdl-prescan.sh" <target_dir> --jsonThis detects which bridge tools can generate skeletons automatically (code maps via src2gdlc, schema maps via sql2gdls/prisma2gdls/db2gdls).
-
Report scope and bridge plan:
Scanning project structure... Bridge detection found: - TypeScript: 142 files → src2gdlc (automatic code maps) - Python: 24 files → src2gdlc (automatic code maps) - SQL migrations: 3 files → sql2gdls (automatic schema maps) - OpenAPI specs: 2 files → openapi2gdla (automatic API contracts) - GraphQL schemas: 1 file → graphql2gdla (automatic API contracts) Discover will: 1. Run bridge tools for automatic skeleton generation (fast, scripted) 2. Agent enriches skeletons with descriptions and relationships 3. Generate architecture diagrams (.gdld) from codebase understanding 4. Synthesize: concept anchors, overview diagram, and proposed coding rules This is a token-intensive process. Proceed? [yes / cancel] -
Run bridge tools (scripted, fast): For each bridge detected by prescan, execute the recommended command with actual paths substituted:
# Example: Code maps bash "${CLAUDE_PLUGIN_ROOT}/scripts/src2gdlc.sh" <target_dir> --output=<gdl_root>/code --recursive --lang=typescript bash "${CLAUDE_PLUGIN_ROOT}/scripts/src2gdlc.sh" <target_dir> --output=<gdl_root>/code --recursive --lang=python # Example: Schema maps (iterate over individual files) for f in <migrations_dir>/*.sql; do bash "${CLAUDE_PLUGIN_ROOT}/scripts/sql2gdls.sh" "$f" --output=<gdl_root>/schema; done for f in <schema_dir>/*.prisma; do bash "${CLAUDE_PLUGIN_ROOT}/scripts/prisma2gdls.sh" "$f" --output=<gdl_root>/schema; done # Example: API contracts for f in <api_dir>/*.json <api_dir>/*.yaml; do bash "${CLAUDE_PLUGIN_ROOT}/scripts/openapi2gdla.sh" "$f" --output=<gdl_root>/api; done for f in <schema_dir>/*.graphql; do bash "${CLAUDE_PLUGIN_ROOT}/scripts/graphql2gdla.sh" "$f" --output=<gdl_root>/api; doneTrack failures: if a bridge fails, log warning and continue with remaining bridges. Report both successful and failed bridges before proceeding.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 165 lines · 28 tokens per session scan A bd8cc559cd75
discover is a command published in the GitHub repository greppable/greppable-cc-plugin (3 stars, last pushed 7mo ago), licensed MIT. It adds 28 tokens to every session and 1,884 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
discover compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| discovergreppable/greppable-cc-plugin | Command | 3 | 7mo ago | MIT | A | 28 | Claude Code |
| describeskymanbp/rag-your-code | Command | 1 | 2mo ago | MIT | A | 27 | Claude Code |
| searchskymanbp/rag-your-code | Command | 1 | 2mo ago | MIT | A | 29 | Claude Code |
| indexskymanbp/rag-your-code | Command | 1 | 2mo ago | MIT | A | 31 | Claude Code |
| statusskymanbp/rag-your-code | Command | 1 | 2mo ago | MIT | A | 31 | Claude Code |
| gov-code-searchtractorjuice/arckit-claude | Command | 8 | 6d ago | none | A | 13 | Claude Code |
| ccc-reindexiliaal/ccc-plugin | Command | 1 | 7mo ago | MIT | A | 27 | Claude Code |