learn

learn is a skill for Claude Code from ShreyPaharia/octomux. It costs 54 tokens per session (875 once invoked), scanned A, original, MIT.

A command for recording an observed lesson so future octomux tasks can use it as context.

In plain words
What is it for?
Saving a trigger, an actionable lesson, and evidence such as a file, command, or error message.
Why use it?
It preserves practical fixes, conventions, and hard-to-find details that would otherwise disappear when a task ends.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the octomux plugin — 20 skills, 1 agent shipped together

Good fit Saving a trigger, an actionable lesson, and evidence such as a file, command, or error message.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shreypaharia/octomux/learn
Install

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.

Any agent
npx skills add ShreyPaharia/octomux --skill learn
Clone the repo
git clone --depth 1 https://github.com/ShreyPaharia/octomux

Made for: Claude Code.

Or install octomux, the plugin that ships this one along with the rest of its 20 skills, 1 agent.

Wrote 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.

agentmods badge for learn

README.md
[![agentmods](https://agentmods.dev/badge/skills/shreypaharia/octomux/learn/github.svg)](https://agentmods.dev/skills/shreypaharia/octomux/learn)
Your own site
<a href="https://agentmods.dev/skills/shreypaharia/octomux/learn"><img src="https://agentmods.dev/badge/skills/shreypaharia/octomux/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.

agentmods 80×15 button for learn

Your own site · 80×15
<a href="https://agentmods.dev/skills/shreypaharia/octomux/learn"><img src="https://agentmods.dev/badge/skills/shreypaharia/octomux/learn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 875 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.00875
Opus 5 $0.00027 $0.00438
Sonnet 5 $0.00011 $0.00175
Haiku 4.5 $0.00005 $0.00088

Measured 11d ago against content hash 37c8abbb8b00, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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 11d 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.

plugin/skills/learn/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Record a learning

Save a durable, evidenced lesson for future runs on this repo/task via the octomux learn CLI. There is no per-add human gate — what you write here goes straight into the pool that gets seeded into future prompts, so the bar is on you.

When to use

  • You just fixed something that wasn't obvious from the code alone (a flaky mock, a required env var, a gotcha in a build step, a convention you only found by trial and error).
  • You're about to end your turn and you have context (your reasoning, not just the outcome) that the transcript will not carry forward — the next fresh-context iteration only sees the prompt, not your chain of thought.

The schema

octomux learn --trigger "<when this applies>" --lesson "<the durable fact or action>" \
  --evidence "<file / command / error that proves it>" [--private]
  • --trigger — the situation this applies to (so a future run knows when to recall it).
  • --lesson — the durable fact or action itself. State it as something actionable, not a vague reminder.
  • --evidence — the file path, command, or error text that backs it up. No evidence, no save — if you can't point at something concrete, it isn't a learning yet, it's a guess.
  • --private — use for a quirk specific to this job (a one-off env, a task-specific workaround). Omit it (shared, repo-general) for anything a different task in this repo would also benefit from.

The bar: save the why, not just the what

The transcript is gone once your context resets. The lesson is your only chance to hand your reasoning forward — write it like you're leaving a note for an agent with none of your context.

Good (durable, evidenced, actionable):

  • "When bun test hangs on launch.test.ts, the fs mock needs default: mocked — server/task-engine/setup"
  • "The hedging retry lives in server/retry.ts; jitter was missing and caused thundering-herd retries under load — server/retry.ts:42"

Bad (vague, no evidence, not a lesson):

Read the full file on GitHub · 77 lines

Changes

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.

  1. 11d ago First seen · 77 lines · 54 tokens per session scan A 37c8abbb8b00

Subscribe to this mod's changes

learn is a skill published in the GitHub repository ShreyPaharia/octomux (22 stars, last pushed 10d ago), licensed MIT. It adds 54 tokens to every session and 875 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

orcast

Use when orchestrating multiple agents in Orca: fan out parallel workers, pipeline work across stages, adversarially verify findings, run judge panels or loop-until-dry sweeps, or delegate a task and get the result back. You write a Plan definition in real JavaScript — a worker-workflow graph of worker, action, and…

RubinCarter/orcast · 139 tokens

muster

Coordinate with other coding-agent sessions — any machine, any vendor — on this repo via the muster CLI. Use when the user says /muster, asks to join or check a fleet, mentions muster, or wants to coordinate work with other sessions/machines on this repo.

SamSnead85/muster · 58 tokens

mission-control

Interact with Mission Control — AI agent orchestration dashboard. Use when registering agents, managing tasks, syncing skills, or querying agent/task status via MC APIs.

builderz-labs/mission-control · 34 tokens

after-sales

Use when managing post-purchase experience, building customer loyalty, or increasing repeat purchases.

aAAaqwq/AGI-Super-Team · 19 tokens

bankr

AI-powered crypto trading agent and LLM gateway via natural language. Use when the user wants to trade crypto, check portfolio balances, view token prices, transfer crypto, manage NFTs, use leverage, bet on Polymarket, deploy tokens, set up automated trading, sign and submit raw transactions, or access LLM models…

aAAaqwq/AGI-Super-Team · 96 tokens

bankr-signals

Transaction-verified trading signals on Base blockchain. Agents publish trades.

aAAaqwq/AGI-Super-Team · 0 tokens