Repository navigation
feat: search without an index, remote reads, tags and token scopes, CLI and skill - #22
Merged
Merged
Conversation
…LI and skill Search and reads - Commits without their own index are searched from the nearest index plus the files changed since (Meta.Hybrid), or by scanning their files (Meta.Unindexed); large repositories index heads at a paced rate and keep older indexes in tiers. - Long-lived git cat-file readers serve file reads; SOURCEGRAPH_GIT_READER_POOL=off turns them off. - Remote reads for checkout-free clients: diff NamesOnly (metadata only), POST /v1/repo/blob and /blobs (raw bytes, framed batches), /v1/repo/scope-availability and /v1/repo/directories, and contents-only preparation (prepare kind content, MCP content_only). - Retrieval reuses a recent authentication for up to 60 seconds; query errors record step timings and caller-side warning levels. Repositories and access - Tags, manual-only updates and a resume for paused updates. - Personal tokens can be narrowed to tagged or non-public repositories. - Command-line sign-in through the website (/auth/cli/*), on MongoDB and SQL. - Site appearance (site name), storage capacity and a GitHub proxy setting. Clients - cli/: the sourcegraph command-line client (search, read, diff, repository and site administration), released as a tarball on GitHub Releases. - skills/sourcegraph: an agent skill; the repository is also a Claude Code plugin marketplace. - MongoDB URIs name their database in the path (default c4a). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Brings the service up to date with the current Source Graph design and adds a command-line client and an agent skill.
Search and reads
Meta.Hybrid), or by scanning their files (Meta.Unindexed). Large repositories index heads at a paced rate and keep older indexes in tiers.git cat-filereaders serve file reads (SOURCEGRAPH_GIT_READER_POOL=offturns them off; they are skipped on a Git without--batch-command -Zand%(objectmode)).docs/interfaces.md#remote-reads):diffNamesOnly,POST /v1/repo/bloband/blobs,/v1/repo/scope-availability,/v1/repo/directories, and contents-only preparation (kind: content, MCPcontent_only). Truncated diff patches now return their leading whole lines.Repositories and access
/auth/cli/*), stored in MongoDB or the SQL document store.Clients
cli/: thesourcegraphCLI, attached to every GitHub Release assourcegraph-cli.tgzby.github/workflows/cli-release.yml(published to npm as well once anNPM_TOKENsecret exists).skills/sourcegraph: an agent skill (npx skills add context4ai/sourcegraph --skill sourcegraph); the repository is also a Claude Code plugin marketplace.Compatibility
c4adatabase is used.Testing
bun run check,go test -p 1 ./...,python3 scripts/audit-public.py.mainimage on the same volume, and a MongoDB backend — registration, sync, index, search, read, list, blob, blobs, directories, scope-availability, names-only diff, MCPtools/list, and the CLI against the running service.🤖 Generated with Claude Code