Sourcegraph logo
ConnectorSourcegraph

Sourcegraph integration for Claude and Codex

Create a Sourcegraph connection, then control which Spaces can use its approved tools and data without pasting credentials into prompts or threads.

Use Sourcegraph from Claude

Add the Sourcegraph connection to a Space that runs Claude, then use it from every channel in that Space.

Use Sourcegraph from Codex

Add the Sourcegraph connection to a Space that runs Codex, then use it from every channel in that Space.

Use Sourcegraph from Sidekick

Connect your own OpenClaw to Sidekick while type.com provides the conversations, permissions, connections, skills, and automations.

Developer Tools & IT

What the Sourcegraph connector can do

Sourcegraph is a code intelligence platform for searching and understanding code across large codebases. A type.com Space connected to Sourcegraph can have Claude fetch a file's contents, compare two commits, or look up details on a specific commit, straight from a thread.

One connection, many Spaces

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

What teams do with Sourcegraph in type.com

Pull a file without cloning the repo

Fetch the raw contents of a file on the default branch when you need to inspect code without checking out the repository.

Try asking
Get the contents of the config file from our main repo using Sourcegraph.

See exactly what changed between commits

Compare two commits and retrieve their file diffs to understand a change before reviewing or discussing it.

Try asking
Compare these two commit SHAs in our API repo using Sourcegraph and summarize the diff.

Look up commit context quickly

Get detailed information about a specific commit when a teammate references it without further context.

Try asking
Get the commit details for this SHA someone mentioned in our standup.

Representative actions

  • Check Site Settings Edit Permission

    Checks in advance whether a configuration change to site settings is permitted through the API.

  • Compare Commits

    Compares two commits in a repository and retrieves their file diffs.

  • Get Commit Details

    Looks up the full metadata and message for one commit by its SHA in a repository.

  • Get Current User

    Confirms the currently authenticated user's identity via the Sourcegraph GraphQL API.

  • Get File Contents

    Fetches the raw contents of a file on the default branch without cloning the repo.

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

What can Claude do with Sourcegraph in type.com?

With a Sourcegraph connection, Claude can fetch file contents, compare commits, and pull commit details, all from a shared type.com thread.

How do I connect Sourcegraph to type.com?

Sourcegraph uses an API key, sometimes called a token. An admin adds it once to the connection and controls which Spaces can use it.

Can type.com monitor code changes on a schedule?

Yes. Turn a commit comparison into a type.com automation, such as a daily diff summary for a key repo, and the agent posts it to a channel.

Is this the same as a Sourcegraph MCP server?

Not exactly. type.com uses connectors and connections to give selected Spaces access to approved app tools and data. Some connectors use hosted MCP, while others use OAuth, API keys, service accounts, or custom APIs.

More developer tools & it connectors

All Developer Tools & IT integrations