Sourcegraph self-hosted 7.6.0
Repository Overview
See what's happening in your repository at a glance. [...]
More exhaustive Deep Search, now with downloadable reports
Deep Search can now cross-reference and aggregate larger result sets, and write its findings to downloadable CSV, JSON, and SVG files. [...]
Customize Deep Search with your guidance and skills
Give Deep Search durable instructions and task-specific skills tailored to your organization. [...]
Search Jobs in the Sourcegraph API
Run exhaustive, codebase-wide searches from your own integrations with Search Jobs in the Sourcegraph API. [...]
Code Finder: fast, efficient search for coding agents now in Beta
Our new MCP tool finds relevant code faster with lower token usage. [...]
The new compare page is now generally available
See exactly what changed, at any scale. [...]
Agentic Batch Changes: native rendering for inner-loop coding agents
Making it easier for humans to follow the progress of coding agents. [...]
Details
Improvements
- Deep Search Enforce context filters on the gitserver methods (part2)
- Deep Search Enable evaluator file tools by default
Deep Search can cross-reference and aggregate large result sets for codebase-wide inventories, audits, migration planning, and other structured investigations
- Deep Search Migrate agent guidance setting
Migrated Deep Search guidance setting from experimental features to stable configuration path.
- Deep Search Reconcile recent search contexts against live data
Recent Deep Search contexts are now reconciled against live data when the picker opens, preventing stale or deleted contexts from appearing in the recents list.
- Deep Search Add agent files access audit logs
- Deep Search Add source file reader to evaluator
Added
source.read_filemodule to the evaluator, enabling file search, reading exact repo/path/revision matches, and source context inspection within a single evaluator execution. - Code Intel Add alert for over-runtime SCIP upload processing
Added an alert for SCIP uploads that exceed the configured processing time limit.
- Code Intel Alert when upload processing queue falls behind
- Batch Changes Add Batch Changes Grafana dashboard
Added a Grafana dashboard for monitoring Batch Changes server-side background workers, queue stores, and stalled-job resetters.
- Batch Changes Add indicator for recommended credential method
Added indicator highlighting suggested Batch Changes code host credential method
- Batch Changes Use required GitHub checks for CI status
Batch Changes now uses required GitHub checks when computing changeset CI status, preventing optional check failures from incorrectly marking changesets as failed.
- Agentic Batch Changes Add cancel_workspaces tool
The coordinator agent in Agentic Batch Changes can now cancel workspace execution.
- Agentic Batch Changes Add read_file tool to agent
The Agentic Batch Changes coordinator agent can now read files in repositories directly, cutting down on planning time.
- Agentic Batch Changes Embed bundled coding-agent CLIs for v1 and v2 executors
Bundled coding-agent CLIs (Codex and Claude Code) with checksum-pinned versions at build time, eliminating runtime downloads from public installers. Supported across v1 and v2 executor runtimes with executor version gating.
- Agentic Batch Changes Migrate agent guidance setting
Migrated Agentic Batch Change guidance setting from experimental features to stable configuration path.
- Agentic Batch Changes Live-tick duration for in-flight workspaces
The Duration column in the batch-change-agents workspace list now updates live for in-flight workspaces (queued/processing/canceling), showing elapsed time that ticks up in real time.
- Agentic Batch Changes Upgrade coordinator agent to Opus 5
Agentic Batch Changes' coordinator agent now uses Claude Opus 5.
- Agentic Batch Changes Inject inbox event when changeset CI passes
Agentic batch change agents now wake automatically when a changeset's CI passes, even when no
onCIFailurehook fired. The resume is labelled "Resumed automatically: changeset CI passed" in the thread timeline. - Agentic Batch Changes Read generated Deep Search files
Read files generated from Deep Search in Agentic Batch Changes
- Agentic Batch Changes Add common tools to coding agent base image
The managed coding-agent base image now includes Python 3, ripgrep, and jq by default, avoiding the need to install these tools at execution time.
- Agentic Batch Changes Add placeholder for inaccessible Agentic Batch Changes
Agentic Batch Changes links that you can't access now show a placeholder indicating how to request access
- Agentic Batch Changes Plan/resolve table and layout UI polish
Polished the batch change agent detail page UI: improved table layout consistency, redesigned workspace column display, updated status badges, added missing empty states, and unified toolbar patterns across plan and resolve views.
- Agentic Batch Changes Cross-link and describe executor secrets pages
Batch Changes secrets pages now cross-link between per-user and global secrets. When Agentic Batch Changes is enabled, both pages explain how secret descriptions guide Agentic Batch Changes.
- Agentic Batch Changes Adjust changeset inspector UI
- Fixed flickering in diff UI when switching between tabs and commits
- Improved changeset inspector layout for better space utilization
- Changed diff UI commit navigation to show combined diff by default, with individual commit diffs available when selecting specific commits
- Agentic Batch Changes Add renderer for buildImage step type
- Agentic Batch Changes Audit log resolver mutations for Agentic Batch Changes
Site admins can now audit Agentic Batch Changes activity: tool approval decisions, agent deletion, and read token rotation are recorded in the audit log.
- Agentic Batch Changes Immediately update batch spec upon apply, and fix consistency in showing stale workspaces
Batch change workspaces now display their last-known results (diff, steps, changeset specs, and timing) after re-preparing a spec but before re-executing, with a stale banner indicating the workspace needs to be re-run.
- Agentic Batch Changes Improve batch spec schema answers for agents
Improved the performance and accuracy of agentic batch changes when writing certain batch spec edge cases.
- Agentic Batch Changes Add renderers for inner-loop coding agents
Added UI renderers for inner-loop coding agents to display execution progress and events in a human-readable format instead of raw JSON.
- Agentic Batch Changes Retain logs in UI for cached steps
Logs are retained in the UI for cached batch change executions, improving visibility when the batch change agent automatically updates specs.
- Agentic Batch Changes Move step cache key generation to server-side
Improved step caching for coding agent steps to be independent of agent version and desugaring logic changes, as well as
buildImagesteps. Some cache entries will need to be recomputed when usingmounton a step. - Agentic Batch Changes Render template variables in transformChanges group branches
changesetTemplate template variables are now rendered in transformChanges group branch names.
- Agentic Batch Changes Recommend scoped CI-log token in agent prompt
Recommended a scoped CI-log token in the batch change agent prompt's CI-failure-hook guidance.
- Agents Link guidance sources to repository paths
Agent guidance sources are now clickable links that open their configured repository paths.
- Agents Show transcript timestamps
Deep Search and Agentic Batch Changes now render timestamps in their transcripts.
- API Document proto client generation in api reference
Added a "Generating a ConnectRPC client" section to the API reference intro docs, showing how to download the proto schema (
.binpb) — all services by default, or a comma-separated subset via?service=— and generate typed stubs withbuf. This renders as an always-visible section in the API reference page (built on the proto download added in #14309), so customers can self-serve ConnectRPC/protobuf client generation. The OpenAPI golden snapshot is regenerated to match. - API Add proto schema download to API reference
Added proto schema download to the API reference page. The Download button now offers both OpenAPI schema (
.yaml) and proto schema (.binpb) options, enabling ConnectRPC/protobuf consumers to generate typed clients directly from the external API definition (e.g. viabuf generate sourcegraph-api.binpb). - API Support managing entitlements via the API
- Added support for managing entitlements via the Sourcegraph API
- Added ability to filter users by account type
- Authentication Recommend M2M OAuth credentials for service accounts
Service account access token creation page now displays an informational alert recommending M2M OAuth credentials as an alternative that eliminates manual token rotation.
- Code Finder More thorough Finder prompt + desc tweak
Improved Finder prompt to provide more complete answers with better file references.
- Compare Add labeled chip for file viewed toggle
Added a labeled "Viewed" chip for marking files as viewed in the compare/diff view, replacing the previous unlabeled circle control.
- Compare Make new compare page generally available
The new compare page is now generally available.
- Compare Make compare page Perforce-ready
Improved Perforce compatibility for the compare page.
- Compare Add commit/history panel to diff viewer
Added a commit/history panel to the compare page diff viewer, allowing users to view changes for individual commits within the selected range.
- Executors Make batch-exec the default binary for executor jobs
- Inference Add Claude Opus 5
Added support for Claude Opus 5
- MCP Upgrade go-sdk to v1.7.0
MCP server now supports protocol version
2026-07-28while maintaining backward compatibility with older clients. - MCP General MCP tool blocklist
Introduced a dedicated site config setting for blocking specific MCP tools. The setting is
"mcp.tools.disabled": ["tool_name"]- you supply an array of tool names that should be disabled across all MCP endpoints. - MCP Enable Code Finder MCP by default, gate with AI terms
Enabled Code Finder MCP tool by default for customers who have signed AI terms.
- MCP Add site config mcp.deepSearchTool.enabled
Added the
mcp.deepSearchTool.enabledsite configuration option for controlling the Deep Search tool on general-purpose MCP endpoints. The environment variableSRC_MCP_DISABLE_DEEPSEARCH_TOOLis deprecated and will be removed in a future release. - Observability Support Microsoft Teams notifications
Microsoft Teams is now supported as a notification channel for observability alerts.
- Repositories Support fractional Git rate limits
- Repositories Add GitHub and GitLab request IDs to trace spans
Trace spans for GitHub and GitLab requests now include the upstream request ID (
github.request_idfromX-GitHub-Request-Idfor GitHub,gitlab.request_idfromX-Request-Idfor GitLab) to help correlate requests with code host support teams. - Security Show whether user is service account in audit logs
Audit logs now show whether the user is a service account or not.
- UI Use new diff viewer on commit page
- The commit page now uses the new diff viewer component with improved mobile support
- Commit messages are now rendered as markdown
- On mobile devices, the diff viewer uses a drawer-style sidebar and unified view with merged line numbers
- UI Refine neutral palette and unify popover surface background
- Refined the neutral color scale for clearer surface and elevation separation in dark mode
- Unified floating-surface backgrounds (popovers, dropdowns, tooltips, hover cards) under a new popover background token
- Entitlements Archive entitlement usage windows and export them as telemetry
- Own Don't show ownership tabs for repos that don't have a CODEOWNERS file
Hide Ownership tabs for repositories without a CODEOWNERS file.
- Settings Report migration attempt activity
- Uikit Improve Data Table visual alignment and column highlighting
- Uikit Add scroll-aware edge shadow to DataTable sticky column
Data tables now show an edge shadow on the sticky row-number/checkbox column while horizontally scrolled.
Fixes
- Deep Search Add spacing between error and prompt editor
Fixed spacing between Deep Search prompt editor and error/quota banners
- Deep Search Fix search context picker UI layout shift
Fixed layout shift in the search context picker
- Deep Search Exclude usage limit rejections from question processing error metrics
- Deep Search Use ':' delimiter for @-file mentions to disambiguate repo/path
Fixed ambiguous file mentions by using ':' delimiter between repository name and file path instead of '/', preventing the model from misinterpreting multi-segment repository names as a single repository.
- Deep Search Fix delete popover action overlay
- Code Search Attribute MCP searches to MCP
MCP search tools are now correctly attributed to MCP rather than Deep Search in backend telemetry.
- Code Search Fix off by one space regression
- Code Nav Filter references by location in Explore panel
Fixed filtering references by location in the code navigation Explore panel.
- Code Nav Dedupe paths across uploads in StreamRanges document pass
Fixed a panic in precise code navigation that could occur when a repository had multiple SCIP uploads indexing the same file path.
- Code Intel Prevent executor heartbeat deadlocks
Fixed a deadlock between executor heartbeats and the unknown-commit janitor that could cause code intelligence indexing jobs to stall.
- Code Intel Scroll definition into view on cmd+click go-to-definition
Fixed go-to-definition (cmd/ctrl+click) in the file view not scrolling to the definition when it was off-screen.
- Code Intel Exclude canceled GraphQL requests from RED metrics
Fixed an issue where code navigation request cancellations would incorrectly be counted as errors in SLO statistics.
- Code Intel Commit of UploadID is no longer lost
Fixed pagination of code intelligence data
- Code Intel Tune janitor sub-jobs based on Stripe learnings
Janitor sub-jobs for cleaning up deleted commits (e.g. on force-pushes) have been tuned to reduce unnecessary DB pressure.
- Code Intel Add per-janitor-job interval env var overrides
Added per-janitor-job interval control knobs
CODEINTEL_UPLOADS_CLEANUP_INTERVAL_<job>, which are useful when debugging Sourcegraph in production environments. - Code Intel Default CODEINTEL_COMMITGRAPH_USE_NOT_EXISTS_RECONCILIATION=true
Optimized a precise codeintel commitgraph reconciliation query, reducing commitgraph lag up to ~80% on very large repositories.
- Batch Changes Fix phantom next page in batch spec library pagination
Fixed phantom next page appearing in batch spec library pagination when the number of records is an exact multiple of the page size.
- Batch Changes Fix swallowed marshalling error and dead Gerrit case in the changeset store
Fixed a swallowed marshalling error in batch changes that could lead to downstream inconsistencies
- Batch Changes Propagate changeset spec load errors in reconciler
- Batch Changes Return remote repo error when undrafting a changeset
Fixed an issue where the Batch Changes reconciler would silently mark a changeset as undrafted even when the operation failed to reach the code host due to remote repository resolution errors. The reconciler now properly surfaces these errors and schedules retries, preventing changesets from being incorrectly left in draft state.
- Batch Changes Improve personal credential fallback UI
- Batch Changes Explain when SSH push keys are required
Clarified when SSH push key needs to be configured for Batch Changes
- Batch Changes Surface credential OAuth errors in user settings
Surface OAuth errors when connecting code hosts for Batch Changes
- Batch Changes Avoid transient pending check state before required-check sync
Batch Changes now correctly shows
UNKNOWNCI status instead of transient pending/passed states when required check classification is supported but the initial sync has not yet completed. - Batch Changes Preserve review state after merge
Fixed review state for merged and closed changesets that could incorrectly show as pending approval
- Batch Changes Annotate redacted secrets in logs
Redacted secret values in executor logs are now annotated as
{{ REDACTED secrets.NAME }}instead of${{ secrets.NAME }}to make clear the value was removed. - Batch Changes Fail validation if step files contain invalid characters
Fail validation with a clear error when a hook step's files target path contains invalid characters.
- Batch Changes Ignore superseded cancelled workflow runs
Ignores obsolete cancelled GitHub Actions check suites when a newer run of the same workflow succeeds.
- Batch Changes Restore batch spec IntelliSense
Restored schema-aware suggestions in the batch spec editor.
- Batch Changes Require step files to have absolute paths
Batch spec step files now require absolute paths and cannot be added to /work directory
- Batch Changes Stop scheduling and reap changesets detached by deletion
Fixed scheduled changesets becoming permanently stuck after a batch change or its namespace was deleted.
- Agentic Batch Changes Fix page layout heading alignment and migrate to config heading
- Agentic Batch Changes Don't report a retrying reconciler as a terminal failure
Changesets whose reconciler hit a transient error (e.g. a code-host timeout) are no longer reported to the agent as a terminal failure while they are still being retried automatically.
- Agentic Batch Changes Get rid of forced line breaks in PR descriptions
Changesets created by Agentic Batch Changes no longer include forced line breaks in their descriptions.
- Agentic Batch Changes Fix bca id page data polling
Fixed an issue where workspaces would disappear from the UI when switching between batch specs until the page was refreshed.
- Agentic Batch Changes Complete ask_user on cancel
- Agentic Batch Changes Disable default collapsed persisted state for /new page
Fixed thread panel on the /new page to always start expanded instead of using the previous session's collapsed state.
- Agentic Batch Changes Limit batch change agent message runtime
Batch Change Agent messages now stop after 24 hours if they do not finish, surfacing a recoverable failure instead of remaining active indefinitely.
- Agentic Batch Changes Allow multiple freeform ask_user options
Agentic Batch Changes can now present multiple-choice questions, each allowing free-form input.
- Agentic Batch Changes Fail closed on coding agent entitlement check errors
- Agentic Batch Changes Distinguish no-outcome from not-ready workspaces on publish
The
publish_workspacestool now distinguishes between workspaces that completed with no changes and workspaces that are not ready for publishing. Workspaces that finished execution (COMPLETED/SKIPPED) but produced an empty diff are reported separately asworkspace_ids_no_outcome. The tool now errors immediately when a selected workspace has not successfully finished (still queued/processing, or failed/canceled), preventing silent failures and allowing the agent to wait or retry appropriately. - Agentic Batch Changes Avoid redundant streams while agents run
Avoided redundant SSE streams while BCA agents run, reducing browser connection usage
- Agentic Batch Changes Fix duplicate final message in Claude Code rendering
- Agentic Batch Changes Render multi-file diffs in workspace diff view
Fixed blank multi-file diffs in workspace diff view
- Agentic Batch Changes Improve transcript metadata layout
Transcript step timestamps now adapt to available space: wider layouts show timestamps beside timeline dots on hover, while narrower layouts display them in tooltips.
- Agentic Batch Changes Close paused agent streams
Fixed an issue where paused agent streams could exhaust browser connection limits and stall unrelated requests.
- Agentic Batch Changes Validate buildImage.baseImage against container registry allow/denylist
Validate buildImage.baseImage against container registry allow/denylist to prevent unauthorized base images in Agentic Batch Changes.
- Agentic Batch Changes Let coding agent steps read injected context files
- Agentic Batch Changes Stack approval actions in narrow containers
Fixed approval action buttons overflowing in narrow layouts.
- Agentic Batch Changes Use uikit controls for thread rename UI
Thread rename UI now uses standard UI components and improved navigation icon
- Agents Remove double bottom border on file attachment CSV preview
- Agents Back off message stream retries
Message stream retries now use exponential backoff (2/4/8/16/32 seconds) instead of retrying every 2ms, reducing unnecessary reconnect bursts.
- Code Insights Keep near-coincident chart points from crashing insights
Fixed Code Insights charts failing to load when data points render at nearly identical positions, preserving access to insight edit and delete controls.
- Code Insights Keep errored insights dashboards usable
Fixed Code Insights dashboards failing to load when an errored insight contains chart data that cannot be rendered, allowing the affected insight to be edited or deleted.
- Cody Disable compression for web completion streams
Fixed Cody Web chat failures when browsers advertise zstd compression support.
- Compare Reject markChangedFilesAsViewed files with no blob OID
The
markChangedFilesAsViewedmutation now rejects requests that contain files with bothsrcOIDanddstOIDset to nil. - Diffs Fix preview comparison empty diff handling
- Executors Add Install for batch-exec for single binary install method
- Executor installations now include the
batch-exechelper binary from published artifacts, ensuring version compatibility - Executor validation reports missing
batch-execbinary and provides installation instructions
- Executor installations now include the
- Executors Increase default job runtime to 60 minutes
Executor jobs, including Kubernetes-backed jobs, now have a default maximum runtime of 60 minutes.
- Executors Add Install for batch-exec for single binary install method
- Executor installations now include the
batch-exechelper binary from published artifacts, ensuring version compatibility. - Executor validation reports missing
batch-execbinary and provides installation instructions.
- Executor installations now include the
- Permissions Log GitLab API messages during permissions sync
GitLab API error messages are now logged during permissions sync to aid troubleshooting.
- Permissions Fix slow query when there are many code host connections
Fixed an issue where having a large number of code host connections could cause other pages in Sourcegraph to load extremely slowly.
- Repositories Clarify clone concurrency restart requirement
Clarified that changing the
gitMaxConcurrentClonessite configuration setting requires restarting the worker service or pod to take effect. - Security Update vulnerable JS dependencies
- Security Update vulnerable JS dependencies
- Security Update vulnerable JS dependencies
- Security Update vulnerable JS dependencies
- Security Add upper limit to number of log events that can be sent per batch
Added upper limit to number of log events that can be sent per batch
- Security Update vulnerable JS dependencies
- Security Update vulnerable JS dependencies
- Smart hover summaries Eliminate duplicate hover request; improve timeouts
Fixed smart hover summary bugs that could result in additional codeintel resource consumption.
- UI Fix UI glitches and visual inconsistencies
- Fixed Safari animation glitches in command palette
- Fixed button sizing in file blob panel
- Fixed visual state of file/directory icons
- UI Fix page layout title alignment
Fixed page layout title alignment issue
- UI Restore list item highlight visibility on popover surfaces i…
- UI Prevent browser auto-translation of the web app
Browsers no longer auto-translate the Sourcegraph web app, which could corrupt code and interface text.
- Cody Gateway Forward Anthropic beta headers
- Metering Release entitlement even if context is cancelled
Fixed an edge case where entitlement release could fail if the context was cancelled during the operation.
- Notifications Fix notification badge spacing for double-digit counts
Fixed notification badge spacing for double-digit counts in the sidebar.
- Searcher Decouple hybrid path limit
Hybrid search now has a separately configurable changed-path length limit via
SEARCHER_HYBRID_MAX_TOTAL_PATHS_LENGTH, with a default of 300 KB. - User Settings Fix password creation
Fixed an issue where users who signed in through an external provider could not create a password.
Removed
- Batch Changes Remove Amp batch spec templates
Other
- Chore Add outcome metric to changeset sync handler