agent-mode

agent-mode is a command for Claude Code from kardebadas/claude-plugin. It costs 53 tokens per session (1,498 once invoked), scanned A, original, Apache-2.0.

A session setting that chooses which coding agents do the work, such as Codex, Claude, or DeepSeek, while the main session coordinates them.

In plain words
What is it for?
Use it to turn agent selection prompts on or off, choose saved agent combinations, or set different choices for different projects.
Why use it?
It avoids repeatedly choosing agents at the start of a session and can save the choice globally or for one project.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool; mentions Codex.

Part of the superb plugin — 8 skills, 1 command, 5 agents shipped together

Good fit Use it to turn agent selection prompts on or off, choose saved agent combinations, or set different choices for different projects.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kardebadas/claude-plugin/agent-mode
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/kardebadas/claude-plugin

Made for: Claude Code.

Or install superb, the plugin that ships this one along with the rest of its 8 skills, 1 command, 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 agent-mode

README.md
[![agentmods](https://agentmods.dev/badge/commands/kardebadas/claude-plugin/agent-mode/github.svg)](https://agentmods.dev/commands/kardebadas/claude-plugin/agent-mode)
Your own site
<a href="https://agentmods.dev/commands/kardebadas/claude-plugin/agent-mode"><img src="https://agentmods.dev/badge/commands/kardebadas/claude-plugin/agent-mode/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 agent-mode

Your own site · 80×15
<a href="https://agentmods.dev/commands/kardebadas/claude-plugin/agent-mode"><img src="https://agentmods.dev/badge/commands/kardebadas/claude-plugin/agent-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,498 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.00053 $0.01498
Opus 5.5 $0.00021 $0.00599
Sonnet 5.5 $0.00011 $0.00300
Haiku 4.5 $0.00005 $0.00150

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

Security

Grade A, and why

agent-mode 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 12d 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/superb/commands/agent-mode.md · 122 lines

How it starts

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

Agent mode

Arguments: $ARGUMENTS

superb's SessionStart hook reads two switch files at every session start, after /clear and after compaction:

  • Global: ${CLAUDE_CONFIG_DIR:-$HOME/.claude}/.superb-agent-mode, for every project.
  • Project: .claude/superb-agent-mode in the repo's main checkout, so every git worktree of the repo shares it. The main checkout is the directory that holds the path git rev-parse --path-format=absolute --git-common-dir prints (strip the trailing /.git); outside a git repo, use the current directory.

When the project file exists it wins, whatever the global file says. A file's first line decides what happens:

  • empty: ask the question below at every session start;
  • off: agent mode is off (only meaningful in the project file; turning the global one off deletes it);
  • saved picks such as Codex code · Claude UI · DeepSeek + Claude reviews: the hook has you run use with them and nothing is asked. Any other content counts as empty.

Whenever you write the project file inside a git repo, keep it out of git: append the line .claude/superb-agent-mode to info/exclude in the git common directory, unless that file already has it. Create .claude/ and info/ if missing.

Act on the arguments:

  • on: create the global file if missing, keeping any saved picks in it. Tell the user "Agent mode is on for every project until /superb:agent-mode off." If the project file says off, add that it stays off in this repo until /superb:agent-mode on project. Otherwise continue as for the file that wins: use its saved picks, or ask the question.
  • on project: create the project file empty, unless it already holds saved picks (a file that says off is emptied). Tell the user "Agent mode is on for this project until /superb:agent-mode off project.", then use its saved picks or ask the question.
  • off: delete the global file. Tell the user "Agent mode is off." If the project file exists and is not off, add that it stays on in this repo until /superb:agent-mode off project, and keep the current mode. Otherwise drop any mode chosen earlier in this session and work normally.
  • off project: write off to the project file. Tell the user "Agent mode is off for this project. Delete <project file> to follow the global setting again." Drop any mode chosen earlier in this session and work normally.
  • use <picks>: do not ask. Take the picks as this session's mode, confirm in one line (Mode: <picks>) and orchestrate.
  • nothing: ask the question.
  • anything else: say the arguments are on, off, on project, off project, use <picks> or nothing, and stop.

The user saying "agent mode off" or "stop agent mode" counts as off, and "for this project" adds project.

Read the full file on GitHub · 122 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. 12d ago First seen · 122 lines · 53 tokens per session scan A b5edb4008b66

Subscribe to this mod's changes

agent-mode is a command published in the GitHub repository kardebadas/claude-plugin (3 stars, last pushed 13d ago), licensed Apache-2.0. It adds 53 tokens to every session and 1,498 once invoked, about $0.0002 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-11-18.

Related

agent-mode compared with commands from other repositories

agent-mode next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-modekardebadas/claude-pluginCommand313d agoApache-2.0A53Claude Code
triagenunoamorim99/agile-ledgerCommand11mo agoMITA25Claude Code
done-usnunoamorim99/agile-ledgerCommand11mo agoMITA17Claude Code
ideanunoamorim99/agile-ledgerCommand11mo agoMITA19Claude Code
qec-demGuillaumeLessard/qector-claude-pluginCommand1yesterdaynoneA19Claude Code
statuslineegorus1/ask-a-seniorCommand23mo agoMITB13Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code