Sourcegraph

8 tools available

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

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.

Common workflows with Sourcegraph

01

Triage incoming issues

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

Auto-review PRs

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

Failing-build alerts

  1. CI sends a failure event
  2. Agent inspects logs and stack trace
  3. Drops a debug summary in Slack
04

Release notes from commits

  1. Read commits since last tag
  2. Group by type with the model
  3. Post to a changelog channel

Sourcegraph actions 8

Every Sourcegraph action below is a callable tool any Definable persona can invoke.

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.

Frequently asked questions

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.

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.

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.

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.

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.

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.

Ready to automate with Sourcegraph?

Wire it up in minutes. No coding required.

← All integrations