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.
git clone --depth 1 https://github.com/komluk/scaffoldingWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/komluk/scaffolding/learn)<a href="https://agentmods.dev/commands/komluk/scaffolding/learn"><img src="https://agentmods.dev/badge/commands/komluk/scaffolding/learn/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/komluk/scaffolding/learn"><img src="https://agentmods.dev/badge/commands/komluk/scaffolding/learn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What 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.1 | $0.00000 | $0.01452 |
| Opus 5.5 | $0.00000 | $0.00581 |
| Sonnet 5.5 | $0.00000 | $0.00290 |
| Haiku 4.5 | $0.00000 | $0.00145 |
Grade A, and why
learn 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 1mo ago.
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 — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/learn Command
Distill a finished conversation into classified knowledge candidates and propose (never auto-apply) memory writes or a new-skill hand-off. Closes the loop between a completed agent chain and the persistent memory system.
Usage
/learn [conversation_id]
conversation_id is optional — when omitted, the session's own conversation_id
(from the task/session context) is used; only if none is known does it fall back to
the most recently modified directory (conversations are shared across machines, so
the newest mtime may belong to another machine's session). It MUST be a UUID
(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
What It Does
- Resolves the
conversation_id - Locates
context.md, the design## Decisionssection, and drains any low-confidence candidates queued in.scaffolding/.ingest-queue - Exits cleanly if there is nothing to distill
- Distills the conversation into knowledge candidates
- Classifies each candidate: memory entry vs new-skill proposal
- Dry-run proposes the changes; applies only on explicit confirmation
Apply the distill skill (Conversation-Scoped Distillation + Skill Promotion
Criterion) and the agent-memory skill (Learning Loop) throughout.
Steps
Follow these steps exactly.
1. Resolve the conversation_id
CONV_ID="$1"
# Prefer the session's conversation_id (from the task/session context) when the
# caller passed none. SESSION_CONV_ID stands for that value; leave it empty if unknown.
[ -z "$CONV_ID" ] && CONV_ID="${SESSION_CONV_ID:-}"
if [ -z "$CONV_ID" ]; then
# Fallback only: most recently modified conversation directory. The trailing
# slash makes the glob follow the conversations symlink.
CONV_ID=$(ls -1dt .scaffolding/conversations/*/ 2>/dev/null | head -1 | xargs -r basename)
fi
UUID_RE='^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$'
if ! echo "$CONV_ID" | grep -qE "$UUID_RE"; then
echo "ABORT: '$CONV_ID' is not a valid conversation UUID."
exit 1
fi
echo "Conversation: $CONV_ID"
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.
- 1mo ago Changed · +8 lines 60bc8383b1de
- 3mo ago First seen · 149 lines · 0 tokens per session scan A 24c9253d0f6c
learn is a command published in the GitHub repository komluk/scaffolding (16 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,452 tokens. 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.
learn compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| learnkomluk/scaffolding | Command | 16 | 8d ago | MIT | A | 0 | Claude Code |
| set-contextabinauv/business-consulting | Command | 48 | 1mo ago | MIT | A | 25 | Claude Code |
| resumelongthread/claude-plugins | Command | 1 | 6d ago | MIT | C | 7 | Claude Code |
| brain-initfebradc-github/turnstile | Command | 1 | 4mo ago | MIT | A | 49 | Claude Code |
| pickupfebradc-github/turnstile | Command | 1 | 4mo ago | MIT | A | 57 | Claude Code |
| rememberfebradc-github/turnstile | Command | 1 | 4mo ago | MIT | A | 32 | Claude Code |
| obsidian-graphfebradc-github/turnstile | Command | 1 | 4mo ago | MIT | A | 28 | Claude Code |