Sourcegraph: API Design & Integration Surface
Docs-backedThe GraphQL API covers code search (with Sourcegraph's query language), repository management, code intelligence (definitions, references, hover information), and batch changes (automated PRs across repositories). The search API is the primary agent integration surface — agents submit structured search queries and receive matching code locations, file contents, and repository context. Batch Changes enables agents to programmatically generate and track multi-repository code modifications.