July 2026 Summaries
13 posts from Sourcegraph
Filter
Month:
Year:
Post Summaries
Back to Blog
In evaluating the effectiveness of Sourcegraph for improving code retrieval and task completion in coding agents, the study highlights that better code retrieval does not necessarily equate to enhanced task completion. The effectiveness of Sourcegraph depends on various factors such as task complexity and codebase structure rather than size. Tests on 288 tasks indicated improvements in file-level F1 and recall but showed no significant change in aggregate task-completion rewards. The cost-effectiveness of Sourcegraph varied, saving costs in broad searches but increasing them in localized tasks. The study emphasizes the importance of classifying tasks based on localization difficulty and adjusting evaluations to focus on tasks that require genuine discovery rather than those easily solvable with basic commands. It proposes a method for assessing Sourcegraph's impact on specific workflows, suggesting that the results should guide decisions on whether Sourcegraph provides efficiency and capability benefits tailored to an organization's coding environment.
Jul 31, 2026
2,670 words in the original blog post.
In regulated environments, the challenge of adopting AI agents for code development lies not in their ability to write code but in proving the context they accessed to make changes. The emphasis is on creating a comprehensive audit trail that shows exactly which files an AI agent read and the reason behind its actions, to ensure accountability and compliance. This is crucial for auditing processes, where accuracy and completeness of evidence are paramount. The Model Context Protocol and agentic tooling have enabled AI to access live repositories, but the focus is now on ensuring transparent, scoped retrieval to provide traceable evidence of an agent's actions. Tools like Sourcegraph's Deep Search offer a solution by generating explicit records of sources consulted by AI agents, turning them into audit-ready workflows. This approach not only satisfies control requirements but also streamlines audits by providing a clear, traceable line of reasoning for changes, which is crucial for compliance in sectors like banking, healthcare, and software development.
Jul 27, 2026
1,603 words in the original blog post.
Code Finder, a search tool available in Beta on the Sourcegraph MCP server, optimizes the process of locating specific files and line ranges in a code repository by running its own search loop and providing concise, relevant results for coding agents. This approach significantly reduces the time and cost compared to traditional methods where coding agents perform their own searches, as Code Finder offers a focused response that allows agents to proceed with their tasks more efficiently. Tests show that Code Finder completes tasks more than twice as fast and up to 40% cheaper than agents using local or other MCP tools, without compromising result quality. The tool's efficiency is attributed to its specialized design for searching, which contrasts with the broader capabilities of general coding agents. Available for free during its Beta phase, Code Finder enhances file discovery within Deep Search and can be integrated with a user's own agent by connecting to the Sourcegraph MCP Server.
Jul 23, 2026
368 words in the original blog post.
The text discusses the challenges and solutions associated with automating dependency upgrades across multiple repositories, particularly in large-scale environments where dependencies may be spread across hundreds of services owned by different teams. It highlights the limitations of per-repo automation tools like Dependabot and Renovate, which are effective for managing dependencies within a single repository but fall short when coordinating upgrades across multiple repositories. The solution proposed involves using Sourcegraph's Batch Changes, which allows for a coordinated rollout of dependency upgrades by finding every affected version using Code Search and applying changes across all relevant repositories in a single operation. This approach not only streamlines the upgrade process but also offers a centralized dashboard for tracking pull requests and ensuring that all changes are merged efficiently, addressing both routine updates and urgent security patches. The importance of having a coordinated workflow for emergency upgrades, especially in response to disclosed vulnerabilities, is emphasized, with tools like Batch Changes providing the necessary infrastructure for managing large-scale code changes effectively.
Jul 21, 2026
2,318 words in the original blog post.
In 2026, AI coding tools have evolved from simple auto-complete functionalities to comprehensive agents capable of autonomously managing the software development lifecycle (SDLC) with minimal human intervention. Adoption among developers is high, with 84% reportedly using or planning to use such tools. However, as codebases scale to hundreds of thousands of lines and span multiple repositories, many tools struggle due to their reliance on local context retrieval, which limits their effectiveness. The most promising tools, such as Claude Code, GitHub Copilot, and Cursor, excel by providing deep reasoning and extensive IDE support. They face challenges in grounding their responses in the correct code context, particularly across large codebases. Effective usage of these tools hinges not on their intelligence but on their ability to retrieve and ground relevant code, with Sourcegraph's context layer emerging as a solution to enhance tool performance by providing accurate code retrieval and integration across repositories. The key to success in selecting AI tools lies in understanding the team's existing environment and constraints, ensuring the chosen tool can effectively access and process the relevant code.
Jul 21, 2026
3,832 words in the original blog post.
AI developer tools in 2026 span coding and completion, code review, testing, observability, security, and code search, with products such as GitHub Copilot, Cursor, Claude Code, Qodo, Snyk, and Sourcegraph serving different stages of the software development lifecycle. The guide argues that tool selection should focus on assembling a coordinated workflow rather than choosing a single best product, since AI systems increasingly depend on accurate access to repository-wide code context. Coding assistants range from inline suggestions to autonomous agents, while review and testing tools can speed first-pass analysis and test creation but still require human oversight to validate intent, correctness, and merge decisions. AI observability tools can help correlate alerts and incidents, and security scanners can identify vulnerabilities, but both face challenges tracing issues across services and dependencies. The guide presents code search and intelligence as an underlying context layer, citing its CodeScaleBench benchmark to argue that local search methods become less reliable on codebases above roughly 400,000 lines, whereas indexed retrieval can substantially improve agent performance. It also highlights the Model Context Protocol as a way to connect coding, review, and security tools to shared code intelligence without committing teams to one vendor, while emphasizing that AI tools remain fallible and should not operate without human review for production changes.
Jul 21, 2026
3,028 words in the original blog post.
Large-scale code changes, distinct from typical code modifications, involve making logically related edits across numerous repositories that cannot be submitted as a single atomic unit due to practical constraints like tooling limitations and potential merge conflicts. The complexity lies not in the coding itself but in coordinating the process across multiple teams and repositories, requiring comprehensive enumeration, consistent application, and meticulous tracking of changes. Companies like Google have developed processes that shard a master change into smaller, independently manageable pieces, ensuring each can be reviewed, tested, and merged separately. Tools like Sourcegraph's Batch Changes streamline this process by allowing engineers to apply a single declarative change specification across multiple repositories, track the progress of each changeset, and manage the rollout systematically. This approach has proven effective for organizations like Workiva and Quantcast, significantly reducing the time needed to implement large-scale changes and increasing confidence in the completeness and consistency of these modifications.
Jul 21, 2026
3,022 words in the original blog post.
The playbook outlines a comprehensive strategy for migrating from AngularJS to React, emphasizing the importance of addressing both technical and organizational challenges in the process. AngularJS, which is no longer supported as of January 2022, presents security and maintenance risks that drive the need for migration. The guide highlights the conceptual shift from AngularJS’s two-way data binding to React’s one-way data flow, requiring a detailed inventory of every AngularJS component, directive, and dependency using tools like Sourcegraph Code Search. It discusses various migration strategies, recommending incremental or hybrid approaches over a risky big-bang rewrite, and suggests leveraging react2angular for hybrid coexistence during the transition. Codemods and Sourcegraph Batch Changes are recommended for efficient execution of repetitive code transformations across multiple repositories, ensuring consistency and reducing manual effort. Finally, the playbook stresses the importance of comprehensive testing and a phased rollout to ensure the migration’s success, using examples from real-world scenarios like Lyft and Workiva to illustrate the potential for significant time savings and risk mitigation.
Jul 21, 2026
2,808 words in the original blog post.
In 2026, AI software development, primarily driven by large language models (LLMs) and AI agents, spans the entire software development lifecycle (SDLC), from planning to maintenance, transforming raw ideas into structured requirements, suggesting architecture options, and managing CI/CD steps. While AI excels in automating repetitive tasks and generating code, tests, and documentation, human oversight remains crucial for judgment and accountability, especially as AI output becomes less reliable with larger codebases. The effectiveness of AI is largely determined by the context it operates in, and tools like Sourcegraph's Model Context Protocol (MCP) enhance AI performance by providing precise, cross-repository retrieval, thereby mitigating the challenges of large-codebase navigation. Despite its advancements, AI-generated code carries risks, notably in security, and requires rigorous human review to ensure correctness and compliance, emphasizing the role of developers as orchestrators rather than mere typists. The key to successful AI integration lies in treating context as infrastructure and maintaining a human presence in verification loops, thus enabling AI to support rather than replace human developers in their roles.
Jul 21, 2026
3,005 words in the original blog post.
AI code refactoring involves using AI agents to propose or apply changes to codebases without altering their external behavior, primarily focusing on mechanical, low-level tasks such as renaming variables or extracting methods. While this is efficient for small-scale, single-file refactoring, challenges arise when changes need to be applied consistently across multiple repositories, which is where AI struggles due to its lack of contextual awareness and judgment. The process typically includes identifying code areas for improvement, transforming them while maintaining the logical structure, and reviewing the changes to ensure no new bugs have been introduced. Large-scale refactoring across numerous repositories requires a coordinated approach involving tools like Sourcegraph Code Search for enumeration and Batch Changes for applying and tracking modifications across the organization. While AI can speed up local refactoring, the more complex task of managing the changes across an entire codebase remains a coordination problem, demanding human oversight to ensure consistency and reliability. Examples from companies like Quantcast and Workiva illustrate the benefits of combining AI with strategic coordination, emphasizing the importance of infrastructure in managing large-scale changes effectively.
Jul 21, 2026
2,262 words in the original blog post.
AI coding assistants in 2026 combine inline completion, chat, and increasingly agentic capabilities that can plan changes, edit multiple files, run tests, and iterate, but their usefulness in production depends primarily on how well they retrieve relevant repository context. The comparison ranks GitHub Copilot as the broadest and safest default because of its wide editor support and accessible pricing, Claude Code as a strong terminal-oriented agent for multi-file execution, and Cursor as an AI-native editor for integrated workflows, while Tabnine emphasizes self-hosted and air-gapped deployment, Kiro targets AWS-focused teams, and Devin Desktop succeeds the renamed Codeium/Windsurf products. Although these tools perform well within a single workspace or smaller repository, the analysis argues that local file-search approaches begin to fail systematically in codebases above roughly 400,000 lines or across multiple repositories, where agents can miss dependencies and related services. Citing a CodeScaleBench benchmark, the text contends that indexed code search and structured retrieval can substantially improve agents’ speed, cost, and accuracy by supplying relevant cross-repository context, rather than relying on larger models or context windows alone. It recommends choosing assistants based on existing editors, security requirements, budget, and deployment constraints, then validating candidates with real multi-file and multi-service tasks instead of polished demonstrations.
Jul 20, 2026
3,021 words in the original blog post.
Vulnerability remediation at the codebase scale faces significant challenges due to AI-generated code lacking context, detection coverage gaps, and lengthy fix times across numerous repositories. CISA's Binding Operational Directive 26-04 mandates that federal agencies must remediate high-risk vulnerabilities within three days, highlighting the urgency for faster remediation processes. Current tools are insufficient because they operate within limited scopes, failing to address these issues comprehensively. AI coding agents frequently produce insecure code due to a lack of awareness of existing code patterns and standards, while security programs struggle to verify detection coverage across all owned code, resulting in potential blind spots. Remediation processes are slow and cumbersome, often taking weeks, as they involve manual, fragmented efforts across thousands of repositories. A universal code search that allows for comprehensive coverage, precise identification, and coordinated changes across all repositories is proposed as a solution, enabling faster and more effective vulnerability management.
Jul 13, 2026
2,033 words in the original blog post.
In the evolving landscape of application security, the focus should shift from isolated detection in individual repositories to achieving comprehensive codebase visibility, as this is crucial for prevention, detection, and response. Traditional security tools excel at identifying issues within single repositories but fail to address the broader challenge of assessing vulnerabilities across an entire codebase, especially as AI-generated code increases and dependency sprawl accelerates. Effective security posture requires the ability to quickly identify and address vulnerabilities across all repositories, considering both direct and transitive dependencies. This approach enables teams to understand the full impact of security threats and respond efficiently, preventing breaches that exploit gaps between repository-level detections. The increasing volume and velocity of AI-written code and the rising number of malicious third-party packages emphasize the need for a unified view of the codebase rather than relying solely on more precise detection tools.
Jul 10, 2026
967 words in the original blog post.