Sourcegraph
for LuumenAI

Read code, commits, and diffs from Sourcegraph while you work an incident

Connect Sourcegraph and the agent can answer code questions during an incident. List repositories, walk a repository path, pull file contents from the default branch, read commit details, and compare two commits to see what changed. It reads only — there are no write tools here. Authentication is by API key.

The Sourcegraph toolbox

8 tools, all read-only. They answer instantly, and every call is logged.

  • ReadCheck Site Settings Edit PermissionCheck whether site settings can be edited through the API.
  • ReadCompare CommitsCompare two commits in a repository and retrieve their file diffs.
  • ReadGet Commit DetailsGet detailed information about a specific commit in a repository.
  • ReadGet Current UserRetrieve information about the currently authenticated user.
  • ReadGet File ContentsFetch the contents of a specified file on the default branch.
  • ReadList RepositoriesList repositories on the Sourcegraph instance.
  • ReadList Repository FilesList all files and directories in a repository path.
  • ReadList repository languagesList languages used in a repository.

Questions

How does LuumenAI connect to Sourcegraph?

Authorize once with API token. Luumen lists the scopes each action needs before you approve the connection, and credentials never appear in the chat.

Can LuumenAI change things in Sourcegraph on its own?

No. Every one of the 8 tools LuumenAI has for Sourcegraph is read-only, so it can answer questions from Sourcegraph but cannot change anything in it. Reads are not gated — they answer immediately, and each one is recorded on the audit trail with the actor and the result.

Who gets access to the integration?

You decide. Access is granted per agent, skill, and team, and per environment — production is not staging.

Is there an audit trail?

Every call to Sourcegraph is recorded with the actor, the input, and the result, and can be linked to the ticket or change record.

Put Sourcegraph to work with Luumen

Connect in minutes. Every action scoped, approved, and audited from day one.