ClaudeCodeMod

All shelves / Mods / Workflow

context-economy

By script-development

context-economy is a Claude Code workflow mod by script-development.

Answers each compaction with a handoff a fork of the session writes, in place of Claude Code's summary, and hands it to the next prompt after /clear.

Draws

Install

The marketplace name is script-development-plugins.

In Claude Code
/plugin marketplace add script-development/claude
/plugin install context-economy@script-development-plugins
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
2.0.0
Repo stars
3
Last change
2026-10-19

What it can reach

  • Draws in the session
  • Calls another program on this machine

Claude Code 2.1.287 or later; the hooks API is early access. It has no threshold of its own: set the auto-compact threshold with claude --autocompact or /autocompact. It needs a git checkout; outside one, or when the fork returns nothing or the draft breaks the format twice, the toast says why and the compaction falls back to Claude Code's own summary. Subagent compactions are left to Claude Code. A hot reload between a /clear and the next prompt loses that handoff.

The marketplace, script-development-plugins, also holds core-skills and kendo-pm. Saving what a context reset would lose is why this page files it under workflow. handoff-compact, by trytofly94, replaces compaction with a structured handoff that a fork of the session writes, and saves it as a file. compact-keeper, by arasovic, saves a handoff file at each compaction with Claude Code's summary. This one runs each draft through a format gate and retries once, and keeps decisions, dead ends, and traps in words while anything with a path:line becomes a pointer the gate checks. Handoffs live in a machine-local store, one file per repository and branch, never committed. After /clear, the first prompt of the next conversation carries the handoff, marked consumed so it is not shown twice. /handoff writes one by hand, and a gauge you source into your own status line says when a manual reset is worth it.

Demo

The top of the Context economy README: handoffs that survive a context reset, so when a session compacts or you /clear it, the next conversation starts from a short handoff of decisions, dead ends, and traps; it bundles a hooks module, the /handoff skill, and a statusline gauge, and needs Claude Code 2.1.287 or later.
Screenshot of the author's GitHub page.

What it hooks into

  • session.compactWhen the context is compacted
  • session.startWhen a session starts
  • session.endWhen a session ends
  • prompt.submitWhen you send a prompt

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
script-development
Category
Workflow
Marketplace
script-development-plugins
Repo
script-development/claude
Folder
plugins/context-economy
Version
2.0.0
Repo stars
3
Last change
2026-10-19
Language
Shell
Files
31

Other mods in Workflow

agent-flowCharlie0113-TDraws a live tree of the session's subagents and teammates beside the transcript: status, the tool call in flight or a wait for approval, time, and tokens.source-controlbradtraversyDraws a VS Code style Source Control pane beside the chat: changes by group, stage, discard, and commit, a diff for each file, and the commit graph.grillerbengousHides Claude's recommended answer to each interview question until you peek, collects your answers in a Grill pane, and sends them back as your next message.session-cleanupdougcunhaLists the files a session created and the Git items it left in a /cleanup pane, then moves the files you pick to the trash and hands the Git items to Claude.superpowers-progressnextscapeDraws a pane beside the chat for a Superpowers run: the plan's title, the workflow stage, the current task and step, a progress bar, and the ledger's rulings.mazyosMazzeo-MarketingHolds a commandPuts a business's memory files in every session, draws a side panel and a status line for them, and asks before git push --force or git reset --hard.podium-reportereengelkingReports each session's model, context, cost, and failures to a Podium console, and draws a status line under the prompt with the live session count.hivehouseCleveland-RDHolds a commandDraws the hub screen for a team of Claude sessions in tmux, and refuses Edit, Write, and git commands that change a repository in the hub session.better-memoryxobotyiHolds a commandRefuses the agent's writes to the memory folder except through its own save tool, which needs an anchor from the session, and clears stale entries when idle.llx-deskrsaryevOpens browser pages and terminals in a window you watch, draws a pane of its tabs, and sends the comments you make in the window to Claude as messages.scrubjay-uihenba1Draws named rows for scrubjay's archive lookups, live sync steps above the prompt, and its /sj commands in blue, for sessions kept on every machine you own.agentworksmanishiitgDraws incoming AgentWorks messages as a short preview with the sending agent's name, the person's name for a shared sender, and the network it came through.
All 396 in Workflow