Sourcegraph, Greptile, Zoekt: What Is Left of AI Code Search in 2026
Описание и применение
Небольшой, воспроизводимый рабочий процесс с Zoekt позволяет быстро индексировать большие репозитории и выполнять быстрые регулярные запросы. Если нужна более глубокая кросс‑репозиторная аналитика, можно подключить платные агенты Sourcegraph Deep Search или бесплатный Sourcebot.
Задача
Engineers need to locate code across multiple repositories and services, but IDE assistants only see the current checkout, limiting scope for multi-service bugs.
Результат
A lightweight, reproducible workflow using Zoekt allows teams to quickly index large repos and answer regex queries locally. If deeper cross‑repo context is needed, paid agents like Sourcegraph Deep Search or free self‑hosted Sourcebot can be integrated into coding agents.
Рабочий процесс
- 1. Clone the target repository (e.g., kubernetes/kubernetes) shallowly.
2. Install Zoekt binaries.
3. Run
zoekt-git-indexto build the index. 4. Query the index with a regex and file filter. 5. Evaluate results: if regex answers the question, no paid AI layer is needed. 6. If deeper behavior tracing is required, use Sourcegraph Deep Search or Ask Sourcebot. 7. Wire the chosen MCP server into your coding agent (Claude Code, Cursor, VS Code) for future queries.
Доказательства
I indexed a shallow clone of kubernetes/kubernetes, 31,300 files, with Zoekt on a laptop. 6.03 seconds to index, 193ms for a filtered regex query across the whole thing.
Sourcegraph’s 2026 pitch is Deep Search, an agent that investigates across every repo in your org, follows code and its commit history, and cites the files and diffs behind each answer.
- Дата записи: 2026-09-05T23:51:52.308Z