explaingit

nagisanzenin/effortmining

Analysis updated 2026-05-18

32PythonAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

A Claude Code plugin that gives each helper AI agent only as much reasoning effort as its task actually needs, cutting token usage.

Mindmap

mindmap
  root((effortmining))
    What it does
      Right-sizes effort
      Classifies subtasks
      Cuts token spend
    Tech stack
      Python
      Claude Code
      Plugin
    Use cases
      Ambient dispatch
      Precise task splitting
      Benchmark and refit
    Evidence
      Measured token savings
      Equal pass rate
    Audience
      Claude Code developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically reduce token spend by matching each Claude Code subagent's reasoning effort to its task difficulty.

USE CASE 2

Classify a multi-part task and dispatch each part to the cheapest effort tier proven sufficient for it.

USE CASE 3

Re-run the benchmark suite to measure token savings on your own account.

USE CASE 4

Refit the effort lookup table for a different Claude model.

What is it built with?

PythonClaude CodeClaude Code Plugin

How does it compare?

nagisanzenin/effortminingautolearnmem/automembilly-ellis/exr-imageio-poc
Stars323232
LanguagePythonPythonPython
Setup difficultyeasyhardmoderate
Complexity2/55/53/5
Audiencedeveloperresearcherresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires Claude Code and Python 3 with only the standard library.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

This project is a plugin for Claude Code, the AI coding assistant, that changes how hard the helper AI agents it spawns have to think. Normally, when Claude Code creates a helper agent to do a small job, that helper copies the same reasoning effort setting as the main session, even if the job is something simple like reading a file or reformatting a list. Thinking harder costs more in AI usage, called tokens, so this wastes resources on easy tasks. The tool works by first classifying each subtask into a category, such as mechanical extraction, simple transformation, moderate reasoning, or hard reasoning, and then looking up the cheapest effort level that has been shown through testing to still produce correct results for that category. It then dispatches the helper agent at that specific effort level instead of the default. Because Claude Code does not let a user set effort per individual helper directly, the project works around this by shipping five nearly identical helper agent definitions, one for each effort level, and picking which one to use based on the classification. A lookup table stores which task category maps to which effort level, and that table was built from measured benchmark runs rather than guesswork. The project reports that in its own testing, using this calibrated approach used about 65 percent fewer output tokens than letting every helper inherit the main session's effort level, while getting correct answers just as often. It also includes tools to re-run these benchmarks and refit the lookup table for different AI models. Installing it requires Python 3 with no extra libraries, and it is added to Claude Code as a plugin from a marketplace command. Once installed, it works automatically from a new session without further setup. This is aimed at developers already using Claude Code who want to reduce their AI usage costs.

Copy-paste prompts

Prompt 1
Install effortmining as a Claude Code plugin and explain how ambient dispatch works after that.
Prompt 2
Show me how to use /effortmine to split a multi-part task across different effort tiers.
Prompt 3
Explain how effortmining classifies a subtask into T1 through T4, R, and C categories.
Prompt 4
Walk me through refitting effortmining's calibration table for a different Claude model.
Prompt 5
What does the benchmark data in this repo say about when high or max effort is actually worth it?

Frequently asked questions

What is effortmining?

A Claude Code plugin that gives each helper AI agent only as much reasoning effort as its task actually needs, cutting token usage.

What language is effortmining written in?

Mainly Python. The stack also includes Python, Claude Code, Claude Code Plugin.

What license does effortmining use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is effortmining to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is effortmining for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.