Sourcegraph logo
AI agent integrationSourcegraph

Sourcegraph integration for multiplayer collaboration with AI agents using Claude Code or Codex

One governed connection your whole team and its AI agents can share, with approved actions and human review, so working in Sourcegraph never means pasting credentials into a prompt.

Use Sourcegraph from Claude Code

Bring Sourcegraph context into engineering work while Type keeps app access attached to the teammate and workspace.

Automate Sourcegraph with Codex

Let coding agents ask for the right app action, preserve conversation context, and keep humans in the approval loop.

Connect open agent workflows

Use Type as the collaboration layer around OpenClaw and other LLM workflows that need app access.

Developer Tools & IT

What the Sourcegraph integration exposes

Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.

One connection, many teammates

Connect Sourcegraph once, then decide which teammates can use it for threads, automations, skills, and coding work.

Representative actions

  • Check Site Settings Edit Permission

    Tool to check whether site settings can be edited through the API. Use when you need to confirm the API allows site settings edits before attempting configuration changes.

  • Compare Commits

    Tool to compare two commits in a repository and retrieve their file diffs. Use after confirming the repository name and commit SHAs to inspect differences.

  • Get Commit Details

    Get detailed information about a specific commit in a repository.

  • Get Current User

    Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.

  • Get File Contents

    Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.

Connection

API and auth details

Sourcegraph integrations can query code search and code intelligence data, automate repository and organization workflows, and use GraphQL/REST APIs for metadata, search, and administrative operations. Public docs cover API access patterns, tokens, and enterprise deployment surfaces.

FAQ

Questions people ask before connecting Sourcegraph

Can Claude Code use Sourcegraph?

Yes. Type lets an AI teammate use connected Sourcegraph actions from a governed workspace context, so Claude Code work can reference the app without copying credentials into a local prompt.

Can Codex work with Sourcegraph through Type?

Yes. Codex can collaborate through Type with app context, skills, and approved actions. The Sourcegraph catalog entry includes public integration details and example capabilities where available.

Is this the same as a Sourcegraph MCP server?

Type exposes connected app capabilities to AI teammates and coding agents through Type's integration layer. Teams use it when they want shared app access, human review, and teammate-level permissions around agent work.

More developer tools & it apps for AI teammates