Compounding — Agents That Get Better Every Session

Time to read: 14 minutes Time to apply: Ongoing — this pattern emerges from the other 9 Prerequisites: Patterns 1-9


What This Pattern Is

Patterns 1-9 are techniques. Compounding is the system they create together. It's what happens when your agent:

And then — this is the compounding part — saves what it learned so next session is better.


The Feedback Loop

Every agent session produces three types of value:

  1. The task output — the code, the research, the deployment. The visible result.
  2. The corrections — things you fixed: "use python3.11," "tests are in tests/," "don't commit to main." These become memory (Pattern 3).
  3. The discoveries — procedures that worked, errors that were fixed, patterns that emerged. These become skills (Pattern 2).

Most people only get the task output. The corrections and discoveries evaporate when the session ends. Compounding captures all three.

The Loop in Action


Session 1: Agent sets up a new Python project. 45 minutes. 6 corrections.
  → Corrections saved to memory (Python path, test command, test directory)
  → Procedure saved as skill (python-project-bootstrap)

Session 2: Agent sets up a new Python project. Loads skill. Uses correct paths from memory. 10 minutes. 0 corrections.
  → Agent discovers a faster way to configure CI. Patches the skill.

Session 3: Agent sets up a new Python project. Updated skill. Still 10 minutes. 0 corrections.
  → Agent notices 3 errors that took 5 minutes to debug. Adds pitfalls to skill.

Session 12: Agent sets up a new Python project. Skill now has 8 steps, 6 pitfalls, CI config, and release checklist. 3 minutes. 0 errors. 0 corrections.
  → Sessions 2-12 each made the skill better. The 3-minute project setup is the accumulation of 12 sessions of improvements.

This is compounding. The task didn't change. The agent's capability did. Every session adds to the skill, the memory, and the protocols — and every future session benefits from every past improvement.

The Compounding Maths

Conservative estimate: each session saves 1 piece of knowledge (a correction, a pitfall, a faster approach). That knowledge is available in every future session.


Month 1: 20 sessions × 1 saved discovery = 20 pieces of knowledge
Month 2: 20 sessions × 1 saved discovery = 20 more (40 total available)
Month 3: 20 sessions × 1 saved discovery = 20 more (60 total available)

After 5 months: 100 pieces of cumulative knowledge. The agent isn't starting from zero — it's starting from 100 things it already knows, and it adds one more every session.

This is why my skill library reached 153 in 5 months. Not through discipline — through compounding. Every session added something. Most additions were small (a single pitfall, a single trigger keyword). But they accumulated.


The Compounding System

The 9 patterns create a system where compounding is automatic:

PatternWhat it compoundsHow BootProject contextAGENTS.md stays current, agent always knows the environment SkillsProceduresSkills grow with new steps and pitfalls every use MemoryFacts and preferencesEvery correction added, never repeated Decision ProtocolsTrust and autonomyGreen zone expands as trust is earned Tool CompositionEfficiencyRight tool choices become automatic OrchestrationThroughputSpecialists get better at their domains PipelinesAutomationMore pipelines = less manual triggers ResilienceReliabilitySelf-healing catalogue grows with each fixed error VerifyQualityReview feedback tightens protocols and skills

Each pattern feeds the others. A correction (Memory) becomes a pitfall in a skill (Skills). A skill that handles a task reliably earns Green zone status (Decision Protocols). A Green zone task gets automated as a pipeline (Pipelines). The pipeline that self-heals (Resilience) and verifies its output (Verify) creates a fully autonomous workflow — and when it discovers a new edge case, it patches the skill, and the loop continues.


What Compounding Looks Like Over Time

Week 1

Month 1

Month 2

Month 3

Month 5

This isn't a projection — it's what actually happened building 111 SPFx web parts and 5 backend services over 5 months. The first month was slow. By month 3, the agent was doing more work than I was. By month 5, I was mostly reviewing, not building.


Anti-Patterns That Kill Compounding

Anti-patternWhat it doesFix "I'll document it later"Discovery lost. Next session, same problem.Save immediately. 10 seconds now = 2 minutes later. Starting fresh every sessionAll cumulative knowledge inaccessibleBoot, Memory, and Skills make knowledge persistent. Use them. Skipping the post-task patchSkill stays stale. Agent follows outdated procedure.60 seconds after every complex task: does the skill need updating? Not reviewing agent outputQuality degrades slowly. Errors compound.Pattern 9: review cadence keeps quality trending up. Treating agents as tools, not collaboratorsYou do the thinking, agent does the typing. No compounding possible.The agent can save its own discoveries if you let it. Encourage it.

Try It Now

  1. End your next session with this question: "What did you learn in this session that should be saved?" The agent will list: corrections that should become memory, procedures that should become skills, pitfalls that should be patched.
  1. One save per session. Every session, save at least one thing — a memory entry, a skill patch, a decision protocol update. At 20 sessions per month, that's 20 improvements per month.
  1. Look back after 2 weeks. Compare your first sessions to now. Count the corrections. Measure the task completion time. The improvement is invisible day-to-day but undeniable over weeks.

Time investment: 2 minutes per session to save what was learned. Return: exponential capability growth over months.


The 10 Patterns — Complete

You now have the full methodology. A quick review of every pattern and its role:

  1. Boot — Project context the agent reads automatically
  2. Skills — Reusable procedures loaded on demand
  3. Memory — Durable facts, preferences, and corrections
  4. Decision Protocols — Autonomy boundaries: what to do, what to ask
  5. Tool Composition — Right tool for each job
  6. Orchestration — Parallel work across specialist agents
  7. Pipelines — Scheduled autonomous work
  8. Resilience — Retry, self-heal, never quit on transient failures
  9. Verify — Automated gates + human review
  10. Compounding — The system: each session makes the next better

The patterns build on each other. Start with Boot and Skills. Add Memory and Protocols. Then Orchestration and Pipelines. Resilience and Verify complete the safety net. And Compounding — that's not a thing you implement. It's what happens when the other 9 are in place.


Pattern 10 of 10. From the Works With Agents methodology — 111 SPFx web parts, 5 backend services, 153 skills, built over 5 months by one developer and an agent that got better every session.

← Pattern 9: Verify

← Back to all patterns

Spotted something?

Suggest an improvement, report an error, or just say hi.