toggle-speak-mode

toggle-speak-mode is a command for Claude Code from JosephScript/claude-speak. It costs 24 tokens per session (198 once invoked), scanned B, original, MIT.

A command that switches the saved default for spoken responses between local speech and language-model summaries.

In plain words
What is it for?
Use it to make future calls use either direct mechanical speech or an LLM-generated summary, while individual calls can still override the setting.
Why use it?
It avoids having to specify the preferred speech mode every time you use the speak command.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the claude-speak plugin — 6 commands, 1 hook shipped together

Good fit Use it to make future calls use either direct mechanical speech or an LLM-generated summary, while individual calls can still override the setting.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/josephscript/claude-speak/toggle-speak-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/JosephScript/claude-speak

Made for: Claude Code.

Or install claude-speak, the plugin that ships this one along with the rest of its 6 commands, 1 hook.

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 toggle-speak-mode

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/josephscript/claude-speak/toggle-speak-mode"><img src="https://agentmods.dev/badge/commands/josephscript/claude-speak/toggle-speak-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 198 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00024 $0.00198
Opus 5.5 $0.00010 $0.00079
Sonnet 5.5 $0.00005 $0.00040
Haiku 4.5 $0.00002 $0.00020

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

Security

Grade B, and why

toggle-speak-mode scanned grade B with 1 finding 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 1mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

mkdir -p ~/.claude/claude-speak; CUR=$(cat ~/.claude/claude-speak/mode 2>/dev/null); if [ "$CUR" = "llm" ]; then echo local > ~/.claude/claude-speak/mode && echo "speak-mode: local"; else echo llm > ~/.claude/claude-spea
commands/toggle-speak-mode.md · 12 lines

What it actually says

Run this exact command via Bash and report the result to the user in one short sentence:

mkdir -p ~/.claude/claude-speak; CUR=$(cat ~/.claude/claude-speak/mode 2>/dev/null); if [ "$CUR" = "llm" ]; then echo local > ~/.claude/claude-speak/mode && echo "speak-mode: local"; else echo llm > ~/.claude/claude-speak/mode && echo "speak-mode: llm"; fi

Do not do anything else — just run the command and relay whether speak-mode is now local or llm. This only changes the default /speak uses when called with no argument; /speak local or /speak llm still overrides per-call regardless of this setting.

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. 1mo ago First seen · 12 lines · 24 tokens per session scan B f9807f106514

Subscribe to this mod's changes

toggle-speak-mode is a command published in the GitHub repository JosephScript/claude-speak (4 stars, last pushed 2mo ago), licensed MIT. It adds 24 tokens to every session and 198 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other commands, from other repositories

run

A command that starts a planned, isolated Windows computer-use task. It follows prepared steps, checks the computer setup, uses screenshots when needed, and reports what was actually verified.

Plocr/Reasonix-computer-use · 12 tokens

doctor

A command that diagnoses the Computer Use plugin, its environment, and its mapped capabilities. Computer Use lets an agent interact with a computer through supported actions.

Plocr/Reasonix-computer-use · 14 tokens

trace

A command for viewing or exporting privacy-filtered Computer Use activity traces. A trace is a record of actions taken during a computer-use session, and the command supports status, listing recent traces, and confirmed export.

Plocr/Reasonix-computer-use · 11 tokens

benchmark

A command that produces a report measuring Computer Use capabilities, such as task completion and tool activity. Computer Use means controlling applications through an interactive computer interface.

Plocr/Reasonix-computer-use · 7 tokens

test

A command for running general capability tests for computer-use features, which let an agent interact with supported computer applications. It uses a quick test by default and does not operate real user applications.

Plocr/Reasonix-computer-use · 7 tokens

anti-slop-designer

Use when a UI looks machine-made rather than decided. Violet gradients, glassmorphism everywhere, identical cards in a grid, untouched shadcn or Material defaults, emoji bullets, or copy stuffed with seamless and unlock.

imsaif/design-with-claude · 44 tokens