Model Online / On-Site
Duration
Modules 5 modules

Course Objective & Scope

AI coding tools that shine on greenfield demos often fail in hundred-thousand-line enterprise monorepos—putting code in the wrong architectural layer, reinventing existing utilities or forgetting constraints as the context window fills up. This course covers repository-scale context engineering so coding agents navigate and modify large codebases accurately.

Hierarchical memory files (AGENTS.md, CLAUDE.md, .cursor/rules), AST (tree-sitter) and LSP symbol indexing, hybrid lexical + semantic code search, explicit module boundaries, MCP context providers and context compaction/handoff patterns are practised on a multi-package repository.

Who Should Attend?

  • Senior and staff software engineers and software architects
  • Platform, DevEx and developer-tooling engineers
  • Tech leads managing large or monorepo codebases
  • Prerequisite: hands-on experience with large codebases and AI coding tools

Key Takeaways

  • Structure repositories so agents locate the right modules and patterns with minimal token spend
  • Design hierarchical, path-scoped instruction files from repo root down to individual packages
  • Combine AST chunking, symbol graphs and hybrid search for high-precision code retrieval
  • Prevent context poisoning and context bloat through structured compaction and subagent isolation
  • Expose live database schemas, design tokens and internal SDK docs via MCP context servers

Curriculum

The Context Challenge in Large Repos and Context Rot
  • Why giant context windows are not enough: lost-in-the-middle effects and attention dilution
  • Token budget economics across static instructions, dynamic retrieval and tool outputs
Agent-Navigable Repository Structure and Naming
  • Predictable directory layouts, explicit public module APIs and expressive type signatures
  • Making shared utilities and canonical patterns easy for agents to discover
Hierarchical Memory: AGENTS.md, CLAUDE.md and Scoped Rules
  • Progressive context disclosure across root, service and package-level files
  • Path-scoped rule activation and pointing agents to canonical golden examples
Code Indexing: ASTs, LSPs and Hybrid Retrieval
  • Tree-sitter AST chunking and generating compact repository symbol maps
  • Combining lexical search (ripgrep), LSP call/reference graphs and vector embeddings
Dynamic MCP Context Providers and Session Compaction
  • Serving internal library docs, DB schemas and API contracts through MCP resources
  • Isolating exploration from implementation and handing off state via structured artifacts

Other Courses in This Category

Get in touch