The argument in one line.
The harness — the CLAUDE.md files, hooks, skills, LSP, MCP servers, and sub agents wrapped around your coding agent — determines your results in large codebases more than the underlying model does.
Read if. Skip if.
- A developer or team lead who already uses Claude Code on a codebase with 20k+ lines and keeps hitting context or navigation limits.
- An AI tooling champion at a company who's been asked to standardize how engineers use coding agents across teams.
- A solo builder who started with a simple app and now finds that the prompting tricks that worked at 5k lines fall flat at 50k.
- An engineer comfortable with CLAUDE.md basics who wants to add hooks, path-scoped skills, LSP, and sub-agents to their setup.
- You're new to Claude Code entirely — this assumes you already know how to run it and have written at least a basic CLAUDE.md.
- Your codebase is small and self-contained; the harness overhead Cole describes pays off at scale, not for a 2k-line side project.
- You work in Python or a language where LSP tooling is already mature and you've already wired it into your editor workflow — the LSP section won't add much.
The full version, fast.
The harness around a coding agent matters as much as the model itself — and building that harness deliberately is the difference between Claude flailing in a large codebase and navigating it like a senior engineer. The framework has seven components: lean, layered CLAUDE.md files that load conventions only where they apply; self-improving stop hooks that propose rule updates after every session; path-scoped skills that inject workflows only when relevant; a language server protocol wrapped as an MCP server for symbol-level search; exploration subagents that offload discovery to a separate context window; and a plugin that bundles the whole setup. The practical conclusion is that teams should designate an owner to build and standardize the AI layer before rolling it out broadly, so engineers get consistent results from day one.
Chat with this breakdown.
Modern Creator members can chat with any breakdown — ask for the hook, quote a framework, find the exact transcript moment. Unlocks at T2: refer 3 friends + add your own API key.
Create a free account →Where the time goes.

01 · AI Coding in Large Codebases
Pattern-interrupt cold open: tutorials are a dime a dozen, but nobody covers large codebases. Names Anthropic's post and promises a demo repo + plugin.

02 · What We're Covering
Table of contents: seven AI-Layer components Cole will walk through. Each maps to one Anthropic strategy and one concrete demo.

03 · How Claude Code Navigates Today
Claude Code uses agentic search — grep + folder walking, no embedding index. The tradeoff: works best when starting context is curated.

04 · The AI Layer
The thesis: the harness matters as much as the model. Codebase now has three parts — code, tests, AI Layer (CLAUDE.md hierarchy, hooks, skills, plugins, LSP, MCP, subagents).

05 · Lean & Layered Global Rules
Keep CLAUDE.md short — long rule files degrade performance. Use subdirectory CLAUDE.md files that load progressively as Claude walks into folders. You can also init Claude inside a subdirectory to scope the working tree.

06 · Sponsor: JetBrains Academy
Mid-roll sponsor read for JetBrains Academy AWS skill paths — learn in PyCharm, deploy in prepaid AWS sandboxes.

07 · Self-Improving Hooks
Hooks aren't just guardrails. A Stop hook can run a separate headless Claude session at end-of-turn to inspect the diff and propose CLAUDE.md updates while context is fresh. A SessionStart hook can pull per-team context (git state, Confluence docs).

08 · Path-Scoped Skills
The skills parameter most people miss: paths. Skills only activate when Claude touches matching files. Demo: api-add-route skill scoped to services/api/**. Clean mental model — global rules are conventions you must follow; skills are workflows you sometimes run.

09 · LSP & MCP for Symbol Search
Wrap a language server as an MCP so Claude can search by symbol (definition / references) instead of grepping strings. Critical once a repo passes ~100K LOC where grep gets slow and token-inefficient.

10 · Subagents for Exploration
Split exploration from editing. Send research/web/codebase-map tasks to subagents with their own context windows — the primary session keeps a clean context for the actual edits.

11 · Claude Plugin & Getting Started
Bundles every component into one install: /plugin marketplace add <path> then /plugin install helpline-ai-layer@helpline-tooling. Ships stop hook, explorer subagent, codebase-search MCP, and an example scoped skill.

12 · AI Layer Ownership
Anthropic's closing advice: identify a small champion team (or a hybrid PM/engineer) to build the AI Layer in a quiet investment period before rolling out org-wide. Cole pitches enterprise training, asks for the like + sub.
Lines worth screenshotting.
- The harness matters as much as the model — the ecosystem built around Claude determines results more than benchmark scores.
- CLAUDE.md files thousands of lines long hurt coding agent performance; studies confirm that overwhelming context degrades output quality.
- Claude Code uses agentic search — no indexing, no RAG — navigating codebases the way an engineer would with grep and directory inspection.
- Subdirectory CLAUDE.md files load automatically when Claude edits files in that folder, giving you layered conventions without bloating the root context.
- Initializing Claude Code inside a subdirectory restricts its scope by default, keeping it focused on the relevant slice of the codebase.
- A stop hook running a headless Claude session after every turn can propose CLAUDE.md updates while the context is still fresh.
- Skills scoped to specific file paths only activate when Claude is working in the relevant directory — a way to enforce workflow conventions at the file-system level.
- Path-scoped skills distinguish workflows from conventions: CLAUDE.md carries the rules, skills carry the repeatable processes for each task type.
- Grep alone becomes slow and token-inefficient in codebases over six figures in lines; an LSP-backed MCP server enables symbol-level search instead.
- Dispatching exploration to sub-agents keeps the primary context window clean — summaries come back, not hundreds of thousands of tokens of raw analysis.
- A start hook can pull team-specific documentation from Confluence at session open, giving every developer the right context without manual setup.
- The AI layer is now a third structural component of every codebase, alongside code and tests — teams that skip it get inconsistent results.
- Building out a shared AI layer before broad rollout prevents the pattern where every developer evolves a separate, incompatible set of conventions.
- An LLM performs best when it has enough starting context to know where to look — the whole AI layer is really about curating that context upfront.
- Stale CLAUDE.md files that don't evolve with the codebase are a real failure mode, not a theoretical one — the stop hook exists specifically to prevent this.
- The plugin marketplace in Claude Code lets you install a full AI layer — hooks, skills, LSP MCP, explorer sub-agents — into any existing repo in two commands.
Build the Harness, Not Just the Prompt
The harness matters as much as the model — a structured AI layer of rules, hooks, skills, and search tools is what separates functional Claude Code use in large codebases from failure.
- Agentic search via grep and folder walking works best when Claude starts with curated context about where to look.
- Seven AI Layer components map one-to-one with Anthropic strategies and concrete implementation demos.
- Claude uses agentic grep-based search with no embedding index, so starting context quality determines navigation quality.
- The harness matters as much as the model — every codebase now has three components: code, tests, and the AI layer.
- The AI layer includes global rules, hooks, skills, MCP servers, LSP, plugins, and subagents.
- Long CLAUDE.md files degrade performance; keep them to core conventions, tech stack overview, and key commands.
- Subdirectory CLAUDE.md files load progressively as Claude moves into folders, scoping rules to where they matter.
- Initializing Claude inside a subdirectory locks its working tree to that area and loads only relevant rules.
- JetBrains Academy skill paths let you code in PyCharm and deploy to real AWS sandboxes without needing your own account.
- A Stop hook runs a separate headless Claude session at end-of-turn to propose CLAUDE.md updates while context is fresh.
- A SessionStart hook can pull per-developer context like git state and team-specific docs before the session begins.
- Treating hooks as continuous improvement tools rather than just guardrails keeps your AI layer from going stale.
- Skills scoped to specific file paths only activate when Claude touches matching files, avoiding irrelevant context load.
- Global rules are conventions you must follow; skills are workflows you sometimes run — the distinction keeps both lean.
- Wrap a language server as an MCP server so Claude can search by symbol definition and reference, not just string grep.
- Once a repo passes roughly 100K lines, grep becomes slow and token-inefficient — symbol-level search is the fix.
- Send exploration and research tasks to subagents with their own context windows to keep the primary session lean.
- Dispatch tasks like web research or codebase mapping to subagents and bring back only the summary you need.
- The plugin bundles a stop hook, explorer subagent, codebase-search MCP, and a scoped skill into two install commands.
- Assign a small champion team or hybrid PM/engineer to build the AI layer in a quiet period before org-wide rollout.
- Standardizing the AI layer prevents developers from building inconsistent setups and prevents early disappointment with the tool.
Terms worth knowing.
- Agent harness
- The ecosystem of rules, tools, and context built around an AI coding model that shapes how it navigates and edits a codebase. The harness is distinct from the model itself and often has more influence on output quality.
- AI layer
- A third structural layer added to a codebase alongside code and tests, consisting of global rules, skills, hooks, MCP servers, sub-agents, and an LSP — everything that gives a coding agent the context and tools it needs to operate effectively.
- CLAUDE.md
- A markdown configuration file placed at the root or in subdirectories of a codebase that loads instructions and conventions into a Claude Code session. Subdirectory files are loaded automatically when Claude works in that part of the project.
- Agentic search
- The method Claude Code uses by default to navigate a codebase — using command-line tools like grep and directory inspection rather than pre-built semantic indexes or embeddings.
- RAG (Retrieval-Augmented Generation)
- A technique where relevant documents or code snippets are retrieved from an index and injected into a model's context before it generates a response. Claude Code's default agentic search is deliberately different from this approach.
- Progressive disclosure
- A design principle where information or capabilities are loaded only when needed rather than all at once. Applied in AI layers by scoping rules and skills to relevant subdirectories instead of loading everything into every session.
- Stop hook
- A script that runs automatically when Claude Code finishes a session. It can trigger a separate background process — such as reviewing what changed and proposing updates to the global rules file.
- Start hook
- A script that runs when a Claude Code session begins, used to inject dynamic context such as recent git history, team-specific documentation, or environment details before the coding agent starts work.
- Headless mode
- Running an AI agent or CLI tool without a visible interactive interface, typically automated as a subprocess or background job. Used here for the stop hook spawning a separate Claude session to review changes silently.
- Skill (Claude Code)
- A reusable prompt or workflow definition stored as a markdown file that can be invoked inside a Claude Code session to handle a specific task type, such as adding an API route. Skills can be scoped to activate only in relevant codebase directories.
- LSP (Language Server Protocol)
- A standard protocol that powers IDE features like jump-to-definition, symbol search, and type hints. Exposing an LSP to Claude Code via an MCP server gives it the same code-navigation capabilities a developer has in their editor.
- MCP server
- A local or remote server that exposes custom tools to Claude Code via the Model Context Protocol. Used here to wrap an LSP and provide intelligent symbol-level code search beyond basic grep.
- Sub-agent
- A separate Claude Code instance dispatched from a primary session to handle a bounded task — such as exploring the codebase or researching a topic — and return only a summary, keeping the main session's context window from bloating.
- Context window
- The total amount of text (code, instructions, conversation history) an AI model can process in a single session. Large exploration tasks that inflate the context window early can degrade the quality of later editing steps.
- Claude Code plugin
- A packaged set of AI layer components (hooks, skills, MCP server) that can be installed into any codebase with two commands via the slash plugin marketplace, providing a baseline harness without manual setup.
Things they pointed at.
Lines you could clip.
“Claude and AI coding tutorials are a dime a dozen, but what people are not really covering nearly enough is how to use these tools to work in large codebases.”
“The harness matters as much as the model.”
“I like to call it the AI Layer. I think that's more descriptive.”
“Most teams think of hooks as scripts that prevent Claude from doing something wrong. But their more valuable use is continuous improvement.”
“Global rules are your conventions. Your skills are the workflows.”
“Once you get like into the six digits for lines of code, you need something like this because grep by itself is gonna be slow and really token inefficient.”
Word for word.
The bait, then the rug-pull.
Anthropic published a high-level playbook for making Claude Code work in massive codebases. It names seven components but never shows you one. Cole built the whole thing — and renamed Anthropic's "harness" to the AI Layer, the third leg of every codebase next to code and tests.
Named ideas worth stealing.
The AI Layer (7 components)
- CLAUDE.md hierarchy (lean & layered)
- Hooks (self-improving)
- Skills (path-scoped, progressive disclosure)
- Plugins (bundle distribution)
- LSP (symbol-level navigation)
- MCP servers (extension)
- Subagents (exploration + editing split)
Cole's rename of Anthropic's 'harness' — the third leg of a codebase next to code and tests. Every component maps 1:1 to an Anthropic strategy.
Rules vs Workflows
Clean distinction for the perennial 'is it a CLAUDE.md or a skill?' question. Global rules are conventions you MUST follow; skills are workflows you sometimes RUN. Same scoping mechanic, different purpose.
Sporadic vs Always-On
Anthropic's diagram shows CLAUDE.md as the only always-on component; everything else fires sporadically. Justifies ruthless trimming of CLAUDE.md and aggressive scoping of everything else.
Three Phases of Claude Code Rollout
- Quiet investment (champion team builds the AI Layer)
- First rollout lands (early adopters)
- Adoption spreads (org-wide standards)
Anthropic's org-adoption advice — small team builds the harness in quiet before rollout, to avoid both 'disappointed on day one' and 'everyone evolving their own separate AI Layers'.
How they asked for the click.
“If you appreciate this video and you're looking forward to more things on AI coding and Claude code, I would really appreciate a like and a subscribe.”
Soft. Real CTA is buried — 'I do offer enterprise trainings... got my email in my bio' lands at ~26:30 before the like+sub close. No mid-roll CTA. Two soft hooks for the GitHub repo throughout.




































































