Claude Code at Scale: How Agentic Search Avoids RAG Failure Modes in Large Codebases

Claude Code is running in production across multi-million-line monorepos, decades-old legacy systems (C, C++, C#, Java, PHP), and distributed architectures with thousands of developers. Rather than relying on RAG-based retrieval — which fails because embedding pipelines can't keep up with active teams, returning functions renamed two weeks ago or deleted modules — Claude Code navigates codebases like a software engineer: it traverses the file system, reads files, uses grep, and follows references locally without requiring a centralized index to be built, maintained, or uploaded to a server.
The harness matters more than the model
Claude Code's performance is determined less by model benchmarks and more by the harness — five extension points that build on each other:
- CLAUDE.md files — context files loaded automatically at every session start: a root file for the big picture, subdirectory files for local conventions. Keeping them focused on broadly applicable information prevents context-window waste.
- Hooks — not detailed beyond being listed as an extension point.
- Skills — not detailed beyond being listed as an extension point.
- Plugins — not detailed beyond being listed as an extension point.
- MCP servers — not detailed beyond being listed as an extension point.
Two additional capabilities — LSP integrations and subagents — round out the setup. The article advises building these layers in the order listed, as each layer builds on what came before.
Tradeoff: starting context quality
Agentic search works best when Claude has enough starting context to know where to look. Asking it to find all instances of a vague pattern across a billion-line codebase will hit context-window limits before work begins. Teams that invest in codebase setup through CLAUDE.md files see better results.
📖 Read the full source: HN AI Agents
👀 See Also

Claude Code v2.1.76 System Prompt Updates: Security Monitor Refinements and New Hook Event
Claude Code v2.1.76 includes updates to system prompts with 43 new tokens, featuring refinements to the security monitor for autonomous agents and the addition of a PostCompact hook event. Changes include clarified sensitive data detection, expanded code deserialization examples, and improved formatting for irreversible local destruction guidance.

Slate: Open-Source macOS AI Chat App with Built-in Browser
Slate is a native macOS app that combines AI chat and web browsing in a single window, supporting Anthropic, OpenAI, Gemini, and Ollama models. It's built with SwiftUI and WebKit, runs light on resources, and is MIT licensed.

NPCterm: Full PTY Terminal Emulator for AI Agents via MCP
NPCterm provides AI agents with full terminal access through a headless, in-memory PTY terminal emulator exposed via MCP. It includes 15 MCP tools for terminal control, process state detection, and support for TUI applications.

NexQuant: Rust-native 3-bit KV-cache engine for edge deployment
NexQuant is a production-hardened Rust engine that enables running high-context models on consumer hardware with 3-5x memory reduction. It supports Metal, CUDA, Vulkan, and CPU backends.