ClaudeMod
ModsAutomationWrites / Shell

Suggest

Clickable suggested replies for Claude Code. When Claude finishes a reply, the answers you'd most likely give show as buttons under it. Click one to send it.

Install· Claude Code 2.1.330+
$claude plugin marketplace add dophamine/claude-suggest
$claude plugin install suggest@claude-suggest
Run claude plugin validate to auditGuide →
Access & PermissionsWrites / Shell

Writes files, executes local shell processes, or programmatically drives Claude.

Changes configDrives ClaudeModifies promptReads promptReads mod stateDraws UI

Statically scanned from hooks & source. Learn how to audit

dophamine2 starsAdded 1 months ago

Claude Suggest

Clickable suggested replies for Claude Code.
When Claude finishes a reply, the answers you'd most likely give show as buttons under it. Click one to send it.

Version CI Claude Code mod validates License: MIT

Suggested replies as buttons under Claude's last message; clicking one sends it
Watch a real recording
Screen recording of Suggest in a Claude Code session

Why

Most of what you type to Claude between turns is short and predictable: "yes, go ahead", "run the tests", "option 2", /compact. Claude Code already shows one grey guess in the prompt, which Tab accepts. Suggest is a mod that turns that guess, plus a couple more, into buttons under Claude's last message, so answering takes one click.

Install

Needs Claude Code 2.1.287 or later, the release that brought mods; tested on 2.1.309. Mods are early access: their API may change between releases.

/plugin marketplace add dophamine/claude-suggest
/plugin install suggest@claude-suggest
From a terminal instead
claude plugin marketplace add dophamine/claude-suggest
claude plugin install suggest@claude-suggest

If a session is already open, run /reload-plugins in it.

The buttons show in the terminal and in the Desktop app's Code tab. Under Remote Control they show in the terminal on your machine, not in claude.ai or the mobile app.

How it works

  1. It remembers the last few messages. It keeps the 8 most recent messages in total, your prompts and Claude's final answers counted together. In a normal back-and-forth that is about 4 of each. A message longer than 2,500 characters keeps only its last 2,500. Subagent replies, task notifications, scheduled prompts and messages from other sessions are left out. This lives in the session's memory only and is never written to disk.
  2. Claude finishes a turn. The first button is Claude Code's own grey prompt suggestion, the one Tab accepts, marked with a faint ✻. It comes from Claude Code itself and costs nothing extra. If it arrives after the model's buttons are already showing, it still moves to the top.
  3. It decides whether to ask a model for more. In smart mode (the default) it does so only when the end of Claude's reply asks something or offers something: a ?, or phrases like "should I", "want me to", "would you like", "let me know". In auto mode it asks after every reply, in manual mode never on its own.
  4. A small model writes the rest. Claude Haiku (by default, at low effort) reads the recent messages, newest first, up to 6,000 characters, and returns up to 3 replies written as you would write them. Claude Code's own suggestion goes first and the list is cut to 3, so when Claude Code has none, or repeats one of the model's, every button is still filled. When the next reply isn't clear the model returns none, and you keep the one free button. While it works, a dim "more suggestions…" line shows. It runs in the background, so the session never waits for it.
  5. The replies are cleaned up. "Run /compact" becomes the bare /compact, so clicking it runs it. Duplicates, including ones that differ only in case or punctuation, and bare numbers are dropped. If Claude Code had no grey suggestion of its own, the model's first reply becomes that grey suggestion, so Tab accepts it too.
  6. You click. A plain reply is sent as your next prompt. A slash command is run, and one that doesn't exist is put in the input instead. A ! shell command is put in the input without its !, with a dim tip: add ! at the beginning to run it in your shell, or press Enter to ask Claude. Type ! first and then click, and it goes straight into the shell prompt, so Enter runs it. The dim ✎ next to a reply puts it in the input to edit before you press Enter.
  7. The buttons go away as soon as you send any prompt, and a late model answer never lands on a newer reply.

Use

  • Click a reply to send it, or ✎ to edit it first.
  • /suggest shows buttons under Claude's last reply now, in any mode. Nothing is sent to the session.
  • /suggest <hint> steers them, like /suggest shorter or /suggest about testing. All buttons then come from the model.
  • /suggest auto, /suggest smart or /suggest manual switches the mode.

✎ puts a reply in the input, to edit before you send it.

Clicking the pencil fills the input with the reply, which is then extended and sent

A slash command runs when clicked.

Clicking the /compact button runs /compact

A shell command goes in the input, ready for !.

Clicking !npm ci puts npm ci in the input with a tip; typing ! runs it in the shell

/suggest <hint> replaces the buttons with replies about the hint.

Typing /suggest about testing replaces the buttons with replies about testing

Settings

Change them in /config (rows starting with "Suggest ›"). The mod reloads with the new values, no restart needed. In the setup dialog after install, number fields start empty: leave them empty to keep the default.

SettingDefaultWhat it does
modesmartClaude Code's own suggestion always shows (free). auto: extra replies after every reply. smart: only when Claude asks or offers something. manual: only when you run /suggest.
clicksendsend: a click sends (✎ fills the input). fill: a click fills the input, nothing is sent until you press Enter.
maxReplies3Buttons shown, 1 to 5. 1 keeps only Claude Code's own suggestion and makes no model call.
modelhaikuModel for the extra replies: haiku, sonnet or opus
effortlowHow hard that model thinks: low, medium, high, xhigh or max
contextChars6000How much recent conversation the model reads, 500 to 50,000
messageChars2500Longer messages keep only their last part, 200 to 20,000

They're stored in ~/.claude/settings.json under pluginConfigs["suggest"].options.

Cost

Claude Code's own suggestion is free. Each extra set of replies is one small model call (Haiku at low effort by default) on your plan or API key. In smart mode that's only after replies that ask or offer something. Set mode to manual or maxReplies to 1 to make none.

Privacy and safety

To write the extra replies, Suggest sends the recent messages (up to contextChars, 6,000 characters by default) to the model you picked, through Claude Code's own model call, on the same account as your session. Nothing goes anywhere else: it makes no other network requests, starts no processes, and reads or writes no files. A click sends only the text on the button, or runs the slash command it names.

To check this yourself, run claude plugin validate on the folder: its calls: line lists everything the mod asks Claude Code to do.

Develop

git clone https://github.com/dophamine/claude-suggest
cd claude-suggest
claude plugin validate .
claude plugin test .
npx prettier@3.3.3 --write .
claude --plugin-dir .

The animated demos in assets/demo-*.svg are drawn by python3 scripts/demo-svgs.py. Edit the scenes there and run it again to update them.

Claude Code writes the type declarations to .claude-plugin/types/ when it loads the folder. Issues and pull requests are welcome.

License

MIT. Use it freely, adapt it to your workflow.

Star this repo if it helps.

Details

GitHub Stars
2
Sub-category
Automation
License
MIT
Surfaces
terminal
Added
1 months ago
Last synced
3 days ago
Events hooked
session.startcommand.runprompt.submitturn.completeprompt.suggestui.render

Weekly Mods Digest

Top new Claude Code mods and install commands, once a week. No fluff, unsubscribe anytime.

More Mods

Claude Flightdeck
ModsSecurity

Claude Flightdeck

Live agent dashboard pane with context consumption, advisor timeline, permission verdicts, and subagent swimlanes.

Reads Files
by Sam Casella
GitHub
Terminal Browser
ModsInterface

Terminal Browser

Browse documentation, GitHub pull requests, and web pages in a split terminal pane directly beside your Claude Code conversation.

Network
by Zenbu Labs
GitHub
Agent Flow
ModsAutomation

Agent Flow

Interactive visual tree of the active session's subagents, background tasks, and teammates beside the transcript via /flow.

UI Only
by Charlie
GitHub

Command Palette

Search for a command to run...