ClaudeCodeMod

All shelves / Mods / Usage

automode

By mralexivy

automode is a Claude Code usage mod by mralexivy.

Picks the model and effort for each prompt, draws a bar above the prompt with context, cache countdown, cost, and savings, and denies git writes from subagents.

DrawsHolds a command

Install

The marketplace name is automode.

In Claude Code
/plugin marketplace add mralexivy/AutoMode
/plugin install automode@automode
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
0.10.0
License
MIT
Repo stars
8
Last change
2026-11-06

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Holds a command
  • Sees tool calls
  • Calls another program on this machine

Claude Code 2.1.287 or later in the terminal; the Desktop app needs 2.1.286 or later and the VS Code extension 2.1.299 or later. The bar is not drawn in the VS Code chat panel or under claude -p, where /automode gives the same facts as text. Run /reload-plugins, or restart Claude Code, after the install. /automode off turns routing off for one session, and AUTOMODE_UI=off hides the bar. On a machine with managed settings, or in a Team or Enterprise login, a built-in guard skips some hooks of a user-installed mod, so plan mode detection and Haiku compaction are limited. The README also gives a shell form: claude plugin marketplace add mralexivy/AutoMode; claude plugin install automode@automode.

The marketplace, automode, holds only this plugin. Choosing the model and effort for each prompt, with the cost and cache on the bar, is why this page files it under usage. effortless draws a bar above the prompt with the reasoning effort it picked for this prompt, how full the chat is, and how long the prompt cache stays warm. claude-router picks a model and effort for each turn from a classifier, and draws the tier above the prompt. This one has a judge, one short Haiku call on your own Claude login, that sets the model and effort for each prompt in about a second, with a risk floor that gives security, migrations, and payments work an independent review. The bar also shows the saving against the model the session started on, and a Settings button. Open-ended work can run a plan, build, verify, and review workflow with six small agents. The guardian can pause a risky turn, redact secret-shaped text, and shorten large tool results. It denies git writes and rm -rf from subagents, and the main session can still commit when you ask.

Demo

The author's recording of AutoMode in a terminal: a bar above the prompt shows the model, effort, context, cache countdown and cost, with a switch at the right. A one-line question about cp -r gets Haiku 5.5 at low effort and $0.00; a request to outline a JWT migration plan moves to Opus 5.5 at medium effort, with the reason "floor T3: haiku low is ruled out for this task" and $0.14, and the line below the prompt reads "automode: AutoMode · opus medium · review pending". The prompts and prices are the author's samples.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • prompt.submitWhen you send a prompt
  • turn.stepAt each step of a turn
  • session.compactWhen the context is compacted
  • tool.callAround a tool call, where it can hold oneBashmcp__automode__extract
  • turn.completeWhen a turn ends
  • agent.spawnWhen a subagent starts
  • prompt.attachmentA Claude Code event
  • session.appendWhen an entry is written to the transcript
  • command.runWhen you run its slash command/model/effort
  • classic.StopA Claude Code event
  • session.endWhen a session ends
  • turn.startWhen Claude starts a turn

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, 5 files. They load when you open them.

Facts

Author
mralexivy
Category
Usage
Marketplace
automode
Repo
mralexivy/AutoMode
Version
0.10.0
License
MIT
Repo stars
8
Last change
2026-11-06
Language
TypeScript
Files
941

Other mods in Usage

agent-tracekrika2810Draws a pane beside the chat that lists every step after a prompt: each model request, tool call, and subagent, with time, tokens, context, and API-rate cost.idle-compactdavidarCompacts an idle session after 50 minutes, while the prompt cache is still warm, and pins a status line under the prompt with the before and after sizes.compact-timinglbzepoqoLets the model mark task boundaries and compacts at the end of a turn once the context passes 200k tokens, then resumes the work; a toast shows each compaction.context-metervumichienDraws a band above the prompt with what fills the context window by category, a countdown to when the prompt cache expires, and a Compact button.usage-meterhamzaferDraws the 5-hour and 7-day plan limits as small bars above the prompt, with the reset countdown and what this session cost.context-barhamzaferDraws the context window as one stacked bar, a color per category, with token counts and the compaction point.token-weatherAnthropicDraws a one-line forecast of the context window above the prompt. Fuller goes from clear toward a storm.token-weatherhamzaferDraws the context-window forecast above the prompt, plus how long the prompt cache has left.cache-clockhamzaferDraws a prompt-cache line under the status line: time left while warm, hits and misses, and how many tokens the next message re-caches once it goes cold.openai-balancehamzaferDraws your OpenAI API credit above the prompt: an estimated balance, today's spend, where the money went, and the last call.cost-meterSingh-APHolds a commandDraws session cost, context fill, and the 5-hour and 7-day windows on the status line, plus each turn's cost. An optional budget asks before the next tool call.session-meterarasovicDraws a pane of context by category, the 5-hour and 7-day windows and their pace, and the last 30 tool calls and model requests.
All 183 in Usage