Skip to main content
youtubeFebruary 10, 2026

How to Make Claude Code Better Every Time You Use It

The simplest form of compound engineering is telling Claude to update CLAUDE.md after every mistake — but the full four-step loop (Plan, Work, Assess, Compound) with specialized sub-agents turns each development cycle into a training run for the next.

Kieran Klaassen walks through a 50-minute live demo of compound-engineering-plugin, his open-source plugin for Claude Code that structures AI-assisted development into a repeatable loop. The core idea: engineering work should make future work easier, not harder.

The Compound Engineering Loop

Every development cycle follows four steps:

  1. Plan — Research-heavy phase with parallel sub-agents (code analyzer, best practices researcher, framework researcher) grounding the plan in the existing codebase
  2. Work — Execute the plan in a fresh context to avoid polluting implementation with planning artifacts
  3. Assess — Multi-perspective reviews from specialized agents (security, architecture, simplicity, DHH-style critique)
  4. Compound — Codify learnings into CLAUDE.md, docs, or skill files so the next cycle starts smarter

Key Takeaways

  • Planning gets 80% of the investment. The plugin spawns three parallel sub-agents during planning, then runs a "spec flow analyzer" that simulates user personas walking through the plan to catch gaps before implementation begins.
  • Fresh context matters. The work phase starts a new session so implementation isn't cluttered with research artifacts from planning. The plan document bridges the two phases.
  • Playwright + Opus 4.5 closes the QA gap. The model controls Chrome, takes screenshots, reads console logs, and fixes bugs in a tight loop — functioning as an autonomous QA team.
  • The LFG command chains everything. A single slash command runs the entire loop end-to-end: plan, work, test via Playwright, multi-perspective review, triage, resolve, generate feature video, and create a PR.

Slash Commands, Sub-Agents, and Skills

Kieran draws a clear distinction between the three extension mechanisms in claude-code-skills:

MechanismWhen to Use
Slash commandsUser-triggered actions — the "business logic" of your workflow
Sub-agentsParallel or isolated work with a focused result (research, review)
SkillsJust-in-time context documents loaded only when relevant

The Minimum Viable Version

For developers who don't want the full plugin system, Kieran's advice is dead simple: when Claude makes a mistake, tell it to add the lesson to CLAUDE.md. Since CLAUDE.md loads into every prompt, this creates a persistent learning loop with zero infrastructure.

Notable Quotes

"If you invest time to have the AI learn what you like and learn what it does wrong, it won't do it the next time. So that's the seed for compound engineering."

"The skills you need are tech lead skills and management skills, because you're managing these agents."

Connections