Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/smart-ai-memory/empathy-framework/learninggit clone --depth 1 https://github.com/Smart-AI-Memory/empathy-frameworkWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00013 | $0.00963 |
| Opus 5 | $0.00006 | $0.00481 |
| Sonnet 5 | $0.00003 | $0.00193 |
| Haiku 4.5 | $0.00001 | $0.00096 |
Grade A, and why
learning scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 156 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Learning Management
Aliases: /learn-hub
IMPORTANT: This command operates on the CURRENT conversation. Do NOT start a new conversation or clear context. You have full access to the conversation history above this point.
Manage continuous learning, pattern extraction, and preferences.
Quick Examples
/learning # Interactive menu
/learning "evaluate session" # Analyze for patterns
/learning "show patterns" # View learned patterns
Discovery
Question:
header: "Action"
question: "What would you like to do with learning?"
options:
- label: "Evaluate session"
description: "Analyze current session for learning opportunities"
- label: "View patterns"
description: "See patterns learned from previous sessions"
- label: "Teach something"
description: "Manually teach a preference or pattern"
Evaluate Session
Analyze the CURRENT session for learning opportunities.
Context: You have access to ALL messages in this conversation above this command. Use that history to identify patterns.
I will:
- Review the conversation history IN THIS SESSION (all messages above)
- Identify:
- Corrections you made to my responses
- Preferences you expressed (coding style, verbosity, etc.)
- Effective approaches that worked well
- Workarounds we discovered together
- Extract patterns with confidence scores
- Store valuable patterns to patterns/ or .claude/rules/
- Report what was learned
Best after:
- Productive debugging sessions
- When you corrected my approach
- Discovering project conventions
- Finding effective solutions
Note: If invoked at the start of a session with no history, will report "no patterns to evaluate".
View Patterns
See patterns learned from previous sessions.
I will:
- Load pattern storage
- Display patterns by category:
- Preferences
- Corrections
- Workarounds
- Project conventions
- Error solutions
- Show confidence and usage stats
- Allow filtering and search
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 156 lines · 13 tokens per session scan A 12b9bbe8a38f
learning is a command published in the GitHub repository Smart-AI-Memory/empathy-framework (13 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 13 tokens to every session and 963 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
OPSX: Onboard
Guided onboarding - walk through a complete OpenSpec workflow cycle with narration.
potpie-record
Record durable Potpie learnings after useful work.
advise
Pre-work command that queries past learnings and leverages MCPs before starting a new task.
retro
Post-work command that extracts learnings and updates the learning registry.
dashboard
Launch the learning dashboard web UI to view and edit plans, progress, and spaced repetition data.
learn
Start learning a new topic — asks clarifying questions, researches resources, and creates a structured learning plan.