Greptile

Greptile é uma ferramenta de desenvolvedor com IA para buscar e consultar código-fonte em um ou mais repositórios. O Greptile permite que engenheiros respondam rapidamente a perguntas complexas sobre a codebase em linguagem natural, localizem arquivos ou símbolos relevantes e obtenham insights sobre código desconhecido ou legado.

Com o Greptile, você pode:

  • Fazer perguntas complexas sobre sua codebase em linguagem natural: Obtenha respostas geradas por IA sobre arquitetura, padrões de uso ou implementações específicas.
  • Encontrar código, arquivos ou funções relevantes instantaneamente: Pesquise com palavras-chave ou consultas em linguagem natural e vá direto para linhas, arquivos ou blocos de código correspondentes.
  • Entender dependências e relacionamentos: Descubra onde funções são chamadas, como módulos se relacionam ou onde APIs são usadas em codebases grandes.
  • Acelerar onboarding e exploração de código: Familiarize-se rapidamente com novos projetos ou depure problemas difíceis sem precisar de contexto prévio profundo.

A integração Greptile do Zoen permite que seus agentes de IA:

  • Consultem e pesquisem repositórios privados e públicos usando os modelos de linguagem avançados do Greptile.
  • Recuperem trechos de código, referências de arquivos e explicações contextualmente relevantes para apoiar code review, documentação e fluxos de desenvolvimento.
  • Disparem automações em fluxos de trabalho Zoen com base em resultados de busca/consulta ou incorporem inteligência de código diretamente nos seus processos.

Seja para acelerar a produtividade dos desenvolvedores, automatizar documentação ou potencializar o entendimento da equipe sobre uma codebase complexa, Greptile e Zoen oferecem acesso seamless à inteligência e busca de código — exatamente onde você precisa.

Usage Instructions

Query and search codebases using natural language with Greptile. Get AI-generated answers about your code, find relevant files, and understand complex codebases.

Actions

greptile_query

Query repositories in natural language and get answers with relevant code references. Greptile uses AI to understand your codebase and answer questions.

Input

ParameterTypeRequiredDescription
querystringYesNatural language question about the codebase. Example: "How does authentication work?" or "Where is the payment processing logic?"
repositoriesstringYesComma-separated list of repositories. Format: "github:branch:owner/repo" or just "owner/repo" (defaults to github:main). Example: "facebook/react" or "github:main:facebook/react,github:main:facebook/relay"
sessionIdstringNoSession ID for conversation continuity. Use the same sessionId across multiple queries to maintain context. Example: "session-abc123"
geniusbooleanNoEnable genius mode for more thorough analysis (slower but more accurate)
apiKeystringYesGreptile API key
githubTokenstringYesGitHub Personal Access Token with repo read access

Output

ParameterTypeDescription
messagestringAI-generated answer to the query
sourcesarrayRelevant code references that support the answer
repositorystringRepository name (owner/repo)
remotestringGit remote (github/gitlab)
branchstringBranch name
filepathstringPath to the file
linestartnumberStarting line number
lineendnumberEnding line number
summarystringSummary of the code section
distancenumberSimilarity score (lower = more relevant)

Search repositories in natural language and get relevant code references without generating an answer. Useful for finding specific code locations.

Input

ParameterTypeRequiredDescription
querystringYesNatural language search query to find relevant code. Example: "authentication middleware" or "database connection handling"
repositoriesstringYesComma-separated list of repositories. Format: "github:branch:owner/repo" or just "owner/repo" (defaults to github:main). Example: "facebook/react" or "github:main:facebook/react,github:main:facebook/relay"
sessionIdstringNoSession ID for conversation continuity. Use the same sessionId across multiple searches to maintain context. Example: "session-abc123"
geniusbooleanNoEnable genius mode for more thorough search (slower but more accurate)
apiKeystringYesGreptile API key
githubTokenstringYesGitHub Personal Access Token with repo read access

Output

ParameterTypeDescription
sourcesarrayRelevant code references matching the search query
repositorystringRepository name (owner/repo)
remotestringGit remote (github/gitlab)
branchstringBranch name
filepathstringPath to the file
linestartnumberStarting line number
lineendnumberEnding line number
summarystringSummary of the code section
distancenumberSimilarity score (lower = more relevant)

greptile_index_repo

Submit a repository to be indexed by Greptile. Indexing must complete before the repository can be queried. Small repos take 3-5 minutes, larger ones can take over an hour.

Input

ParameterTypeRequiredDescription
remotestringYesGit remote type: github or gitlab
repositorystringYesRepository in owner/repo format. Example: "facebook/react" or "vercel/next.js"
branchstringYesBranch to index (e.g., "main" or "master")
reloadbooleanNoForce re-indexing even if already indexed
notifybooleanNoSend email notification when indexing completes
apiKeystringYesGreptile API key
githubTokenstringYesGitHub Personal Access Token with repo read access

Output

ParameterTypeDescription
repositoryIdstringUnique identifier for the indexed repository (format: remote:branch:owner/repo)
statusEndpointstringURL endpoint to check indexing status
messagestringStatus message about the indexing operation

greptile_status

Check the indexing status of a repository. Use this to verify if a repository is ready to be queried or to monitor indexing progress.

Input

ParameterTypeRequiredDescription
remotestringYesGit remote type: github or gitlab
repositorystringYesRepository in owner/repo format. Example: "facebook/react" or "vercel/next.js"
branchstringYesBranch name (e.g., "main" or "master")
apiKeystringYesGreptile API key
githubTokenstringYesGitHub Personal Access Token with repo read access

Output

ParameterTypeDescription
repositorystringRepository name (owner/repo)
remotestringGit remote (github/gitlab)
branchstringBranch name
privatebooleanWhether the repository is private
statusstringIndexing status: submitted, cloning, processing, completed, or failed
filesProcessednumberNumber of files processed so far
numFilesnumberTotal number of files in the repository
sampleQuestionsarraySample questions for the indexed repository
shastringGit commit SHA of the indexed version

On this page