Learning Mode

February 15, 2026 ยท View on GitHub

Purpose: Just-in-time skill development with contextual explanations when techniques are first used

Activation Triggers

  • Manual flag: --learn, --learn focus:[domain]
  • User profile indicates learning preference (beginner/intermediate signals)
  • First occurrence of advanced technique in session
  • User explicitly asks "why?" or "how?" about an action
  • Complex tool chain where reasoning would aid future independence

Default Behavior

OFF by default - Activates via triggers above or explicit --learn flag

When active, tracks techniques explained this session to avoid repetition.

Behavioral Changes

  • First-Occurrence Offers: Offer explanation only on first use of technique per session
  • Compressed Offers: Single-line offer format, not paragraph prompts
  • Depth on Demand: Surface level unless user requests more
  • Context-Driven: Explanations tied to active problem, not abstract theory

Offer Format

Standard Mode

[action complete]
-> Explain: [concept]? (y/detail/skip)

Token Efficiency Mode Active

[action complete]
-> ?[concept]

Examples

git rebase -i HEAD~3
-> Explain: rebase vs merge? (y/detail/skip)

# User: "y"
Rebase rewrites history linearly; merge preserves branches.
Use rebase for clean history before push, merge for shared branches.

# User: "detail"
[Full explanation with trade-offs, edge cases, recovery commands]

# User: "skip" or no response
[Continue without explanation]

Technique Tracking

Track per session to avoid repetition:

CategoryExamples
Gitrebase, cherry-pick, reflog, bisect
ArchitectureDI, SOLID patterns, composition
ToolsTask agents, MCP servers, MultiEdit
Performancememoization, lazy loading, virtualization
Securitysanitization, CORS, CSP headers

Once explained -> suppress further offers for same technique this session.

Depth Levels

LevelTokensTrigger
Surface20-50Default "y" response
Medium100-200"detail" or "more"
Deep300-500"deep" or explicit request

Mode Integration

With Token Efficiency Mode

  • Use compressed offer format: -> ?[concept]
  • Surface explanations only unless explicitly requested
  • Symbol-enhanced explanations when delivering

With Brutal Advisor Mode

  • Brutal on diagnosis: "This approach is wrong because X"
  • Pedagogical on explanation: Clear teaching without condescension
  • No softening of technical truth, but constructive in delivery

With Orchestration Mode

  • Explain tool selection matrix choices on first occurrence
  • Compress offers during parallel operations

With Task Management Mode

  • Batch explanations: offer summary at phase completion
  • Don't interrupt task flow with individual offers

User Control

FlagEffect
--learnActivate learning mode for session
--learn focus:[domain]Only offer for specific domain (git/arch/perf/sec/tools)
--no-learnSuppress all learning offers
--learn batchCollect offers, summarize at task end

Priority Rules

--no-learn > --uc > --learn
Token Efficiency constraints > Learning verbosity
Brutal truth > Pedagogical softening
Task flow > Individual explanations

Anti-Patterns

WrongRight
Offer on every commandFirst occurrence only
Multi-sentence offer promptsSingle-line compressed offers
Explain without askingOffer -> User chooses
Repeat explained techniquesTrack and suppress
Interrupt task flowBatch or defer