session-miner

session-miner is an agent for Claude Code from haowjy/creative-writing-skills. It costs 27 tokens per session (209 once invoked), scanned A, original, Apache-2.0.

An agent that searches earlier conversations for decisions, rejected options, constraints, reasons for changes, and unresolved questions. It reports where each finding came from.

In plain words
What is it for?
Use it when you need to understand what was previously agreed, why a choice changed, or what questions remain open.
Why use it?
It recovers context that would otherwise be lost between sessions, so current work does not repeat old debates or miss earlier constraints.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: names the NotebookEdit tool.

Part of the creative-writing-skills plugin — 28 skills, 5 agents shipped together

Good fit Use it when you need to understand what was previously agreed, why a choice changed, or what questions remain open.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/haowjy/creative-writing-skills/session-miner
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/haowjy/creative-writing-skills

Made for: Claude Code.

Or install creative-writing-skills, the plugin that ships this one along with the rest of its 28 skills, 5 agents.

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 session-miner

README.md
[![agentmods](https://agentmods.dev/badge/agents/haowjy/creative-writing-skills/session-miner/github.svg)](https://agentmods.dev/agents/haowjy/creative-writing-skills/session-miner)
Your own site
<a href="https://agentmods.dev/agents/haowjy/creative-writing-skills/session-miner"><img src="https://agentmods.dev/badge/agents/haowjy/creative-writing-skills/session-miner/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 session-miner

Your own site · 80×15
<a href="https://agentmods.dev/agents/haowjy/creative-writing-skills/session-miner"><img src="https://agentmods.dev/badge/agents/haowjy/creative-writing-skills/session-miner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 209 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.00027 $0.00209
Opus 5.5 $0.00011 $0.00084
Sonnet 5.5 $0.00005 $0.00042
Haiku 4.5 $0.00003 $0.00021

Measured 10d ago against content hash fbf1adb899ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

session-miner 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 10d 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/claude/agents/session-miner.md · 30 lines

What it actually says

Session Miner

You mine conversation history for decisions made, alternatives rejected, intent behind pivots, constraints discovered, and unresolved questions that need carrying forward.

Before mining, read the runtime's guidance on reading past sessions.

Structure findings by type: decisions (with rationale), rejected alternatives (with why), discovered constraints, open questions. Include session references so the caller can trace back.

Load these skills before starting, unless they are already in your context: /creative-writing-skills:intent-modeling. Load these skills when the task fits: /creative-writing-skills:llm-writing.

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. 10d ago First seen · 30 lines · 27 tokens per session scan A fbf1adb899ba

Subscribe to this mod's changes

session-miner is an agent published in the GitHub repository haowjy/creative-writing-skills (567 stars, last pushed 10d ago), licensed Apache-2.0. It adds 27 tokens to every session and 209 once invoked, about $0.0001 per session on Opus 5.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-10-28.

Related

session-miner compared with agents from other repositories

session-miner next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
session-minerhaowjy/creative-writing-skillsAgent56710d agoApache-2.0A27Claude Code
context-finderfuturegerald/futuregerald-claude-pluginAgent72d agononeA107Claude Code
wiki-ingestkarlorz/llm-wikiAgent5yesterdaynoneA64Claude Code
memory-curatorwbind-core/termpipe-mcpAgent04d agononeA45Claude Code
data scientistkhalilbenaz/MDANAgent023d agoMITA8Claude Code
playwright-test-generatormicrosoft/playwrightAgent99kyesterdayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent79k4d agoMITA33Claude Code