insights

insights is a command for Claude Code from mnthe/hardworker-marketplace. It costs 11 tokens per session (712 once invoked), scanned A, original, MIT.

A command for viewing, extracting, or deleting notes collected from the current Claude session. Extraction turns those notes into reusable components.

In plain words
What is it for?
Use it to show collected insights, start their conversion into reusable material, or clear the current session’s insights.
Why use it?
It lets you inspect session learnings and decide whether to preserve them, instead of losing useful knowledge when the session ends.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Part of the knowledge-extraction plugin — 1 skill, 1 command, 2 hooks shipped together

Good fit Use it to show collected insights, start their conversion into reusable material, or clear the current session’s insights.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mnthe/hardworker-marketplace/insights
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.

Clone the repo
git clone --depth 1 https://github.com/mnthe/hardworker-marketplace

Made for: Claude Code.

Or install knowledge-extraction, the plugin that ships this one along with the rest of its 1 skill, 1 command, 2 hooks.

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 insights

README.md
[![agentmods](https://agentmods.dev/badge/commands/mnthe/hardworker-marketplace/insights/github.svg)](https://agentmods.dev/commands/mnthe/hardworker-marketplace/insights)
Your own site
<a href="https://agentmods.dev/commands/mnthe/hardworker-marketplace/insights"><img src="https://agentmods.dev/badge/commands/mnthe/hardworker-marketplace/insights/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 insights

Your own site · 80×15
<a href="https://agentmods.dev/commands/mnthe/hardworker-marketplace/insights"><img src="https://agentmods.dev/badge/commands/mnthe/hardworker-marketplace/insights.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 712 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.
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.00011 $0.00712
Opus 5 $0.00005 $0.00356
Sonnet 5 $0.00002 $0.00142
Haiku 4.5 $0.00001 $0.00071

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

Security

Grade A, and why

insights 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 9d 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.

plugins/knowledge-extraction/commands/insights.md · 107 lines

How it starts

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

Manage insights collected from the current session.

Determine Action

Parse the argument to determine which action to perform:

Argument Action
(none) Show current session's insights
extract Launch insight-extractor agent to convert insights
clear Delete current session's insights

Argument provided: $ARGUMENTS

Action: Show Current Session Insights (default)

If no argument provided or argument is empty:

  1. Get current session ID from CLAUDE_SESSION_ID environment variable
  2. Check if insights file exists at ~/.claude/knowledge-extraction/{session-id}/insights.md
  3. If exists, read and display the contents
  4. If not exists, inform that no insights have been collected this session

Display format:

📝 Insights for session {session-id}

{content of insights file}

Total: {count} insight(s)

Tip: Run `/insights extract` to convert these into reusable components.

Action: Extract (/insights extract)

If argument is "extract":

  1. Check if insights file exists at ~/.claude/knowledge-extraction/{session-id}/insights.md
  2. If no insights, inform user
  3. If insights exist, launch the insight-extractor agent using Task tool:
    • Agent analyzes collected insights
    • Proposes extraction targets (Skill, Command, Agent, CLAUDE.md)
    • Presents proposals for user approval
    • Creates approved components
    • Cleans up session directory after successful extraction

Action: Clear (/insights clear)

If argument is "clear":

  1. Get current session ID
  2. Check if session directory exists at ~/.claude/knowledge-extraction/{session-id}/
  3. If exists:
    • Count insights in insights.md
    • Delete the entire session directory (insights.md + state.json)
    • Confirm deletion
  4. If not exists, inform no insights to clear

Output:

🗑️ Cleared {count} insight(s) from session {session-id}.

Storage Structure

All insights are stored in a centralized location in the home directory:

Read the full file on GitHub · 107 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. 9d ago First seen · 107 lines · 11 tokens per session scan A 43cce1289d03

Subscribe to this mod's changes

insights is a command published in the GitHub repository mnthe/hardworker-marketplace (4 stars, last pushed 4mo ago), licensed MIT. It adds 11 tokens to every session and 712 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-31.