Connect Sourcegraph with Hookshot™ and your stack

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

Tools and triggers

What Agents can do in Sourcegraph

Available tools and events after Sourcegraph is connected.

  • 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.

Setup

Connect Sourcegraph in Hookshot™

Pick a scope, then confirm what can start a Protege and what it can do.

Trigger Access

What can start a Protege from this app.

Tool Access

What a Protege can do after it starts.

Connection scope

Prefer team for production.

Team

Shared credential for production and unattended runs.

Personal

Tied to one user—only when the workflow needs their account.

Chat

Team-scoped for supported chat surfaces.

Full setup guide

Build with us

See Hookshot™ in your stack.

Request early access or book a live walkthrough with the team.

Request Demo
Hookshot™ setup screen — AI agent workflow configuration with model selection, trigger status, and governance controls.