Greptile
/install greptile
Greptile Skill
Query and manage Greptile-indexed repositories via the REST API.
Setup
Required environment variables:
GREPTILE_TOKEN— Greptile API token (from https://app.greptile.com)GITHUB_TOKEN— GitHub PAT with repo access (alternatively setGREPTILE_GITHUB_TOKEN, or authenticate viagh auth login— the script falls back togh auth token)
Commands
All commands use scripts/greptile.sh (resolve path relative to this skill directory).
Index a repository
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.
Check index status
scripts/greptile.sh status owner/repo [branch] [--remote github|gitlab]
Returns: status (completed/processing/failed), filesProcessed, numFiles.
Query a codebase (AI answer + sources)
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)- Returns: AI-generated answer + source file references with line numbers
Search a codebase (sources only, no AI answer)
scripts/greptile.sh search owner/repo [branch] "payment processing" [--remote github|gitlab]
Returns: ranked list of relevant files, functions, and snippets with line numbers.
Tips
- Always
indexa repo before querying/searching it. Checkstatusto confirm indexing is complete. - Use
query --geniusfor complex questions (architecture, PR review context, cross-file analysis). - Use
searchwhen you just need file locations without an AI explanation. - For GitLab repos, pass
--remote gitlab. - Pipe output through
jqfor formatting:scripts/greptile.sh query ... | jq . - Multi-repo queries: not supported by the wrapper; use the API directly with multiple repositories in the body.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install greptile - 安装完成后,直接呼叫该 Skill 的名称或使用
/greptile触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Greptile 是什么?
Query, search, and manage repositories indexed by Greptile (AI codebase intelligence). Use when asking questions about a codebase, searching for code pattern... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 723 次。
如何安装 Greptile?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install greptile」即可一键安装,无需额外配置。
Greptile 是免费的吗?
是的,Greptile 完全免费(开源免费),可自由下载、安装和使用。
Greptile 支持哪些平台?
Greptile 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Greptile?
由 iAhmadZain(@iahmadzain)开发并维护,当前版本 v1.0.1。