review-learnings

review-learnings is a skill for Claude Code from ShreyPaharia/octomux. It costs 41 tokens per session (2,275 once invoked), scanned B, original, MIT.

A tool for finding reusable lessons from finished octomux coding-agent tasks and saving them in the repository’s learnings file.

In plain words
What is it for?
Reviewing closed tasks for lessons or appending a specific learning to .claude/rules/learnings.md.
Why use it?
It prevents useful discoveries and fixes from being lost between tasks, while also allowing a lesson to be added manually.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/alice/repos/myapp/.worktrees/abc123.

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

Good fit Reviewing closed tasks for lessons or appending a specific learning to .claude/rules/learnings.md.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ShreyPaharia/octomux
Claude Code
/plugin install 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 review-learnings

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/shreypaharia/octomux/review-learnings"><img src="https://agentmods.dev/badge/skills/shreypaharia/octomux/review-learnings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,275 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00041 $0.02275
Opus 5 $0.00020 $0.01137
Sonnet 5 $0.00008 $0.00455
Haiku 4.5 $0.00004 $0.00228

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

Security

Grade B, and why

review-learnings scanned grade B with 2 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 12d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat ~/.claude/projects/<project-key>/<session-id>.jsonl

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://localhost:7777/api/tasks | jq .
plugin/skills/review-learnings/SKILL.md · 264 lines

How it starts

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

Review Learnings

Extract reusable learnings from closed octomux-agents tasks and add them to the repo's .claude/rules/learnings.md so future agents (and human sessions) benefit automatically.

Usage

  • /review-learnings — review all unreviewed closed tasks
  • /review-learnings <task-id> — review a specific task
  • /review-learnings add "..." — manually add a learning to current repo

Manual Add Mode

If the argument starts with add, extract the quoted text and append it as a bullet to .claude/rules/learnings.md in the target repo:

  1. Determine target repo:

    • If --repo <path> is provided, use that path
    • Otherwise, run git rev-parse --show-toplevel to get the current repo root
  2. Read <repo>/.claude/rules/learnings.md (if it exists)

  3. If the file doesn't exist, create it:

    mkdir -p <repo>/.claude/rules
    

    Then write the file with:

    # Learnings
    
    - <the learning text>
    
  4. If the file exists, append - <the learning text> on a new line at the end

  5. Confirm: Added learning to <repo>/.claude/rules/learnings.md

Then stop. Manual add does not run extraction or review.

Extraction Mode

Step 1: Fetch closed, unreviewed tasks

curl -s http://localhost:7777/api/tasks | jq .

Parse the JSON response. Filter to tasks where:

  • status === "closed"
  • If a specific <task-id> argument was provided, also filter to that task

For each closed task, check if it has already been reviewed:

  • If task.worktree is null or the worktree directory doesn't exist on disk, skip this task silently (worktree was deleted, nothing to review)
  • The task's worktree field gives the worktree path (e.g., /Users/alice/repos/myapp/.worktrees/abc123)
  • Check if <worktree>/.learnings-reviewed exists:
    stat <worktree>/.learnings-reviewed
    
  • If the marker file exists, compare its mtime against the task's updated_at:
    • If updated_at is AFTER the marker's mtime → treat as unreviewed (task was resumed)
    • If updated_at is BEFORE or equal → already reviewed, skip
  • If the marker file doesn't exist → unreviewed

Read the full file on GitHub · 264 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. 12d ago First seen · 264 lines · 41 tokens per session scan B 1b5718803813

Subscribe to this mod's changes

review-learnings is a skill published in the GitHub repository ShreyPaharia/octomux (22 stars, last pushed 11d ago), licensed MIT. It adds 41 tokens to every session and 2,275 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.