This is the “team” page for Agents, intended to be read by internal teammates working on agents.

For user installation docs, see Sourcegraph Agents (EAP).

Background

We announced “AI Agents” on January 29th as part of our Sourcegraph 6.0 release

https://sourcegraph.com/blog/introducing-enterprise-ai-agents

The scope of this Notion page is to aggregate various internal docs on Agents in one place.

Exploratory notes

Quinn wrote the following notes during the early phases of Agents

Agent API notes

Running Agents locally

First, read the customer-facing installation docs Sourcegraph Agents (EAP). This section describes the additional steps you need to make the installed GitHub App work with your locally running https://sourcegraph.test:3443 instance.

# update this to the webhook URL that the GitHub App had originally configured
SOURCEGRAPH_INCOMING_WEBHOOK_URL=https://sourcegraph.test:3443/.api/webhooks/7014f1c2-ce26-4d34-b0fd-fd8e7ac5413d
# update this to the webhook.site token that you updated GitHub to send webhooks to
WEBHOOK_SITE_TOKEN=4ab4cbb5-3072-47bd-bdd2-599f77758a0e
# Start forwarding webhooks to your locally running Sourcegraph instance
NODE_TLS_REJECT_UNAUTHORIZED=0 whcli forward --token=$WEBHOOK_SITE_TOKEN --target=$SOURCEGRAPH_INCOMING_WEBHOOK_URL

API Docs

Our internal API docs document several agent-related API endpoints