/ml-pro:learnfrom ml-pro
End-of-session learning. Saves what happened, updates knowledge confidence, surfaces items for review. Run this when your work session is complete.
Claude never picks this command on its own
Claude Code cannot parse its frontmatter, so it ignores every field there: the description on this page is for you to read, but Claude never sees it. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /ml-pro:learn still runs it.
You are the epistemic learning agent. When the user runs /learn,
execute these four phases in order.
Write a session summary to knowledge/session_log/. Create a file
named with the current timestamp (YYYYMMDDTHHmmSS.jsonl).
Write one JSON line per event. Include:
{"event":"session_start","timestamp":"...","project":"..."}
{"event":"agent_invoked","agent":"training-engineer","trigger":"building training loop for GNN"}
{"event":"claim_consulted","claim_id":"claim-007","relevance_score":0.85}
{"event":"suggestion","suggestion_id":"sug-001","file":"train.py","claim_refs":["claim-007"]}
{"event":"suggestion_outcome","suggestion_id":"sug-001","outcome":"accepted"}
{"event":"candidate_claim","description":"AdamW with weight_decay=0.01 outperforms Adam for GNN link prediction tasks"}
{"event":"auto_capture","claims_added":["a1b2c3d4e5f6"],"solution_file":"knowledge/solutions/ml-training-2026-03-30.md","domain":"ml.training","project":"myproject"}
{"event":"session_end","timestamp":"...","duration_minutes":25,"files_changed":["train.py","model.py"]}
Reconstruct this from your memory of the session. Include:
candidate_claim events)Run the fast learning script:
python -m scripts.epistemic.learn --plugin ml-pro
Read the JSON output from stdout. This is the review queue.
Present the review queue items to the user. Handle each type:
Report them. No action needed from the user.
Format:
Knowledge updates:
claim-007 strengthened: 0.71 -> 0.79 (suggestion accepted)
claim-012 weakened: 0.65 -> 0.52 (suggestion rejected)
Show the tension and ask the user to resolve it.
Format:
Tension detected:
"claim-003 says always use cosine annealing scheduler, but this session
used linear warmup + decay for the same training setup"
Related claims: claim-003, claim-018
Options:
1. Update claim-003
2. Keep both (context-dependent)
3. Dismiss (one-off exception)
Wait for the user's response. If they choose to update a claim,
edit the claim in knowledge/claims.jsonl.
Show proposed claims and ask if they should be added.
Format:
Observed pattern:
"AdamW with weight_decay=0.01 outperforms Adam for GNN link prediction tasks"
Add to knowledge? [yes / no / edit first]
If yes, append to knowledge/claims.jsonl as a new claim with
status "active" and default confidence (0.67).
Check knowledge/claims.jsonl for claims with "source": "auto-capture"
and first_seen matching today's date. These were captured during the
session by the compound learning layer.
For each, present:
Auto-captured this session:
[1] "AdamW with weight_decay=0.01 outperforms Adam for GNN link prediction"
Domain: ml.training | Confidence: 0.67
Source: knowledge/solutions/ml-training-2026-03-30.md
Actions: [keep / edit / retire]
If the user edits a claim, update it in claims.jsonl. If they retire it, set status to "retired". If they keep it, no action needed.
Show claims that need human judgment.
Format:
Needs attention:
claim-012 (confidence 0.38): "Always use gradient checkpointing for models > 1B params"
This claim has been rejected more often than accepted.
Options: [keep / retire / edit]
If retire, set the claim's status to "retired" in claims.jsonl.
Print a one-line summary at the end:
[ml-pro]: N active claims, avg confidence X.XX, M items reviewed
If there were no review items, just print:
[ml-pro]: N active claims, avg confidence X.XX, session saved
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
5 commands in this plugin
npx claudepluginhub travis-gilbert/claude-marketplace --plugin ml-proOther plugins' commands for the same job