Sourcegraph logo

Integrate Sourcegraph with your AI CRM

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

Explore Triggers and 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.

ActionTry it

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.

ActionTry it

Get Commit Details

Get detailed information about a specific commit in a repository.

ActionTry it

Get Current User

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

ActionTry it

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.

ActionTry it

List Repositories

Tool to list repositories on the Sourcegraph instance. Use when you need to paginate through all available repositories.

ActionTry it

List Repository Files

Tool to list all files and directories in a repository path. Use when you need to enumerate files in a repository without cloning.

ActionTry it

List repository languages

Tool to list languages used in a repository. Use when you need to determine the primary and all languages of a given repository; call after you have the repository name.

ActionTry it

How the Sourcegraph integration works

The Sourcegraph integration connects your Dench AI CRM directly to Sourcegraph, so agents can read and act on your Sourcegraph data as part of everyday work — answering questions in chat, keeping your CRM in sync, and running automations without anyone copying data between tools.

8 actions are available for agents to invoke on your behalf. Every call runs through Sourcegraph's own authorization, scoped to the account you connect.

Set up Sourcegraph in Dench

  1. 1

    Sign in to your Dench workspace and open Integrations.

  2. 2

    Find Sourcegraph and click Connect — you'll authorize access through Sourcegraph's own sign-in flow. No API keys or code required.

  3. 3

    Ask an agent to use Sourcegraph in chat, or call it from an automation.

  4. 4

    Manage or disconnect the connection any time from workspace settings.

Frequently asked questions

How does the Sourcegraph integration work with Dench?

The Dench Sourcegraph integration connects your AI CRM to Sourcegraph, so AI agents can work with your Sourcegraph data as part of chats, automations, and CRM workflows. You connect your account once, and every agent in your workspace can use it — governed by your workspace permissions.

What actions can AI agents perform with Sourcegraph via Dench?

The Sourcegraph integration currently exposes 8 actions, including Check Site Settings Edit Permission, Compare Commits, Get Commit Details, Get Current User, Get File Contents, and List Repositories. Agents invoke them on your behalf from chat or from automations.

Do I need to write code to connect Sourcegraph to Dench?

No. You connect Sourcegraph from your Dench workspace using Sourcegraph's own sign-in and authorization flow — no API keys to copy, no glue code to maintain.

Is the Sourcegraph integration secure?

Connections are authorized through Sourcegraph's own authentication flow, and Dench stores only the authorization needed to act on your behalf. You can review and disconnect the Sourcegraph connection from your workspace settings at any time.

Sourcegraph | Dench AI CRM