GS
//
AGENTIC WORKFLOW TRAINING & REPO AUDITS

CONTEXT WINDOW
SANITATION & SANITY

I don't just work with kids—I also do trainings for grown-ups.

If your engineering team is spending money on AI tools and not seeing the productivity gains you keep hearing about, the problem usually isn't the model—it's the classroom you put it in.

Most software teams adopt AI coding tools backwards: they hand Cursor, Claude Code, or Copilot an untested, undocumented repository full of 3,000-line monoliths and tell the model to "build feature X." Because Large Language Models have addition bias on steroids, they happily bolt wrappers around wrappers onto the mess—turning senior engineers into exhausted copy-paste routers debugging AI slop.

Underneath the mystique, coding agents behave practically like teenagers:

  • Good Vibes Only: They are sycophantic yes-men trained to make you feel smart, and without deterministic tools they can't tell an authoritative source from a Reddit shitpost.
  • Short Attention Span: Dump 50 files into their context window and they immediately forget Rule #1. You have to make it structurally impossible to skip reading the directions.
  • Never Cleans Their Room: Just like the 2021 Nature Lego study, LLMs systematically overlook subtractive changes—defaulting to adding more code unless you explicitly force them to clean up.

You don't fix a teenager by yelling harder at the prompt; you prevent mutiny the same way a teacher runs a classroom: Design Your Course (deterministic self-assessment tools), Prepare Your Materials (an isolated sandbox and curated context window), and Keep the Commons Clean (continuous Socratic red-teaming).

"LLMs aren't magic—they're high-speed pattern matchers. When writing code takes three minutes, the bottleneck is no longer typing: it is designing fast self-assessment loops, curating the context window, and keeping the commons clean."

THE 4-SESSION TEAM TRAINING PROGRAM

Designed as a 4-part, month-long training sprint (four half-day working sessions with your entire engineering team working live on your production codebase), or adaptable into a single half-day intensive clinic.

01
WEEK 1

Self-Assessment Tools & The Test Blitz

LLMs aren't magic: just like high school students, they need good exemplars, descriptive feedback, and self-assessment tools so they can grade their own homework. Before LLMs, writing thorough unit and end-to-end (E2E) tests took months—so teams skipped it. In Session 1, your whole team works simultaneously with agents for a single half-day blitz to build fast in-memory mocks and critical-path E2E test suites across your codebase, verifying real behavior before touching a single architectural wire.

02
WEEK 2

End-to-End Autonomy & IaC Guardrails

Agents cannot reason about infrastructure that only exists in someone's head or an AWS console click-ops history. We give your agents their own safe home: codifying your stack into 100% declarative Infrastructure as Code (CloudFormation / CDK / Terraform), isolating sandbox environments, wiring up real agent test inboxes, and building automated stack-failure diagnostics so agents can deploy, verify, and self-heal deterministically.

03
WEEK 3

Protect the Context Window & Data Contracts

Don't dump 50 random books on a teenager's desk. We curate your repo's syllabus so an agent never has to guess: generating a single-read CODEBASE_MAP.md and SCHEMA_DICTIONARY.md, enforcing <1,000-line file ceilings, extracting static data into declarative JSON manifests, and wiring up AST-based context packing (pack_context.py) and compiler-tree refactoring (ast-grep) alongside hard cloud/LLM budget kill-switches.

04
WEEK 4

Subtractive Engineering & Socratic Red-Teaming

With tests, IaC, and context maps locked in, we install your permanent AGENTS.md harness and flip how your team prompts—moving from imperative feature requests to continuous Socratic Red-Teaming that fights addition bias head-on: "What is the worst part of this repo?", "Does this solution represent a 'gold standard' implementation?", and "Do you see any opportunities to make the codebase more DRY or reduce redundancy?"—while your Week 1 test suite verifies every subtractive cleanup PR in seconds.

TRAINING FORMATS

  • The 4-Week Transformation Sprint (Flagship): Four weekly half-day live training & implementation sessions on your codebase + asynchronous PR/harness review between sessions. Your team exits the month with comprehensive E2E/unit coverage, deterministic IaC guardrails, documented schemas, and a self-cleaning agentic workflow.
  • The Half-Day Sanitation Clinic: A single 3-hour intensive team training session + pre-session repository smell-test focused on installing AGENTS.md, AST context packing, and Socratic red-teaming on your existing stack.
// BOOK A DIAGNOSTIC CALL

Ready to clean up your team's context window?

Send a quick note with your team size and current stack, and let's grab 15 minutes to look at your repo.

BOOK A 15-MIN REPO CHAT → VIEW WATERLOO.DEV SLIDE DECK →