NEW Workflow v2 · the multi-agent verification layer is live
All apps

Sourcegraph

developer tools 8 tools available

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

About this integration

Connect Sourcegraph to Definable to triage issues, review pull requests, monitor builds. Personas call Sourcegraph's 8 tools directly from chat or scheduled flows. Wire it into a triage, review, or release-management persona — every action runs scoped, reviewable, and logged.

Connect Sourcegraph to Definable and it becomes a set of typed tools your agents plan with — triggered by events, run on schedules, or invoked mid-conversation. Every write is checked by the verifier before it lands.

Auth OAuth2 · 2 clicks
Tools 8 exposed
Plans All, incl. Free
Data Never trained on

Sourcegraph · in workflows

What teams actually run.

Three patterns teams run with Sourcegraph on day one. Each one is a plain-English prompt — no canvas, no glue code — and you can remix them into anything.

01

Triage incoming issues

Webhook fires on every new issue
Persona summarises and labels it
Assigns the right engineer
02

Auto-review PRs

Pull the diff
Run a code-review persona
Post structured feedback as PR comment
03

Failing-build alerts

CI sends a failure event
Agent inspects logs and stack trace
Drops a debug summary in Slack

8 tools available

The Sourcegraph toolbox.

Every Sourcegraph capability your agents can call, each with a typed schema the planner reads. The router picks the right tool per step; the verifier checks the result.

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.

List Repositories

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

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.

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.

See it run

One prompt, start to finish.

A real prompt, the Sourcegraph tools it calls, and what comes back. This is the whole interface — describe the outcome, agents handle the rest.

Run a real Sourcegraph task end-to-end — plan it, execute across the API, and hand back a verified result.

sourcegraph.check_site_settings_edit_permission Tool to check whether site settings can be edited through the API. Use when you need to co
sourcegraph.compare_commits Tool to compare two commits in a repository and retrieve their file diffs. Use after confi
sourcegraph.get_commit_details Get detailed information about a specific commit in a repository. · verified
done

Done. Sourcegraph responded across 3 calls, the verifier signed off, and the result is logged with every payload.

FAQ · Sourcegraph

Questions, answered.

What teams ask before connecting Sourcegraph.

01 What can I automate with Sourcegraph on Definable?

Anything Sourcegraph exposes through its API. Common developer tools workflows on Definable include triage issues, review pull requests, monitor builds. Personas can call any of the 8 Sourcegraph tools directly, then chain the result into another integration without you writing code.

02 How does Sourcegraph authentication work?

Sourcegraph uses API_KEY on Definable. You connect once from the integrations page, scoped to the permissions you choose, and from then on any persona that has the integration enabled can act on your behalf. Tokens are encrypted at rest and rotated automatically.

03 Is the Sourcegraph integration included in my Definable plan?

Yes — every Definable plan, including Starter, includes access to all 8 Sourcegraph tools. You only need a separate Sourcegraph subscription if Sourcegraph itself charges per seat or per API call.

04 Is using Sourcegraph through Definable secure?

Every call from a persona to Sourcegraph is logged with the user, persona, prompt, and response. Tokens never leave Definable's secrets vault, scopes are configurable per persona, and you can revoke access at any time from the integration page.

05 How do I get started with Sourcegraph on Definable?

Sign up for Definable, open the integrations page, find Sourcegraph, and connect via OAuth or API key. You can immediately attach Sourcegraph to any persona and start running workflows. The free Starter plan includes 5,000 credits/month.

06 What Sourcegraph actions does Definable expose?

Definable exposes all 8 Sourcegraph actions as callable tools — including `Check Site Settings Edit Permission`, `Compare Commits`, `Get Commit Details`, plus 5 more. Each tool gets a typed parameter schema so personas know exactly how to call it.

Put Sourcegraph to work tonight.

Connect in two clicks, describe an outcome, and your first workflow is live in minutes. Free plan included — no card required.

← All apps