DocsReference

Learn Pass

.claude/commands

The Learn loop as a command: capture discoveries fast, then consolidate.

What it is

The Learn Pass is C²'s third compaction mechanism, expressed as a command you run with your agent — not a package you install. It keeps the contextbase, and the Router's index, current without sprawl.

When to write it

Two modes. Capture: the moment you discover something reusable, mid-session. Consolidate: periodically (end of week, before a big push), have the agent merge and dedupe what was captured.

What goes in it

  • Capture: classify a discovery (gotcha / pattern / ADR) and write it to 03-knowledge/
  • Consolidate: merge duplicates into canonical docs, archive stale ones
  • Refresh the Router's knowledge index
  • Wire it as a slash command if your agent supports it

How it fits

Connects the Session Brief and the knowledge artefacts into a loop. It's a practice + a prompt template, deliberately not code.

Get the templatestarter/.claude/commands/learn.md