Default search context for all Code Search users
April 30, 2025
We’ve added a new option for site admins to set a default search context for all users on their instance. Previously users could set their own default context used when searching their codebase, but this update now allows admins to set this globally.
This helps teams improve onboarding and search quality by focusing searches on the most relevant parts of the codebase, rather than the entire indexed set of repositories.

Key details:
- If a user already has a personal default search context set, it will not be overridden.
- If a user only uses the global context, the admin-set default will apply automatically.
- Individual users can see what the instance-wide default is and can override it with their own default if they choose.
This update is available for Code Search customers who upgrade to the latest Sourcegraph release (v6.3).
Read more about default search context in our docs.