"Most agents re-read your entire codebase every time they start a task — the same files, the same functions, the same slow discovery loop. Terrain indexes it once into a knowledge graph, and every session after that already knows where everything is."
— observed on real repos. not marketed.One person runs terrain index. Everyone else links the result — no redundant build, no copied artifacts. On a 3M-line monorepo, your teammates are ready in milliseconds.
terrain index -i reads the git diff and re-parses only what changed. Commit your feature, the graph is up-to-date before your AI finishes reading the error.
These are actual questions. The answers come back already structured — function names, file:line, call chains. No more "let me grep around."
refresh_access_token get called?"
SESSION_STORE global?"
No daemon to babysit, no cloud account, no API key required for the base install. Just a CLI and an MCP server.
Installs the Python engine, registers Terrain as an MCP server, and (optionally) asks for your LLM / embedding keys.
$ npx terrain-ai@latest --setup
Add this block to Claude Code / Cursor / Windsurf MCP settings. That's it — your AI can now read the graph.
{ "mcpServers": { "terrain-ai": { "command": "npx", "args": ["-y", "terrain-ai@latest", "--server"] } } }