This guide walks you through connecting Sourcegraph to the OpenAI Agents SDK using the Composio tool router. By the end, you'll have a working Sourcegraph agent that can show all languages used in repo backend-service, compare latest two commits in project web-ui, list all files under src/utils in repo app-core, get file contents of readme.md from repo docs-site through natural language commands.
This guide will help you understand how to give your OpenAI Agents SDK agent real control over a Sourcegraph account through Composio's Sourcegraph MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.








