Install
openclaw skills install greptileQuery, search, and manage repositories indexed by Greptile (AI codebase intelligence). Use when asking questions about a codebase, searching for code pattern...
openclaw skills install greptileQuery and manage Greptile-indexed repositories via the REST API.
Required environment variables:
GREPTILE_TOKEN — Greptile API token (from https://app.greptile.com)GITHUB_TOKEN — GitHub PAT with repo access (alternatively set GREPTILE_GITHUB_TOKEN, or authenticate via gh auth login — the script falls back to gh auth token)All commands use scripts/greptile.sh (resolve path relative to this skill directory).
scripts/greptile.sh index owner/repo [branch] [--remote github|gitlab] [--no-reload] [--no-notify]
Default branch: main. Use --no-reload to skip re-indexing if already processed.
scripts/greptile.sh status owner/repo [branch] [--remote github|gitlab]
Returns: status (completed/processing/failed), filesProcessed, numFiles.
scripts/greptile.sh query owner/repo [branch] "How does auth work?" [--genius] [--remote github|gitlab]
--genius — slower but smarter analysis (good for PR reviews, architecture questions)scripts/greptile.sh search owner/repo [branch] "payment processing" [--remote github|gitlab]
Returns: ranked list of relevant files, functions, and snippets with line numbers.
index a repo before querying/searching it. Check status to confirm indexing is complete.query --genius for complex questions (architecture, PR review context, cross-file analysis).search when you just need file locations without an AI explanation.--remote gitlab.jq for formatting: scripts/greptile.sh query ... | jq .