sweet-spot

by Patrick Müller · ★ 1 · updated 15 days ago

BandsGuardsCommandsPromptvalidates

0

Waits for a safe pause, then hands your session over or compacts it.

install sweet-spot

Install

/plugin marketplace add muellerei/sweet-spot
/plugin install sweet-spot@muellerei-sweet-spot

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startcommand.runturn.startclassic.SessionStartclassic.PostModelSwitchclassic.PermissionRequestclassic.UserPromptSubmitturn.stepprompt.submittool.callsession.endsession.compactprompt.editui.renderturn.completeclassic.Stop
API calls
$.agent.list$.clock.after$.clock.every$.clock.now$.command.list$.command.register$.command.run$.env.get$.fs.list$.fs.read$.fs.stat$.model.fork$.process.run$.prompt.fill$.prompt.read$.prompt.submit$.session.compact$.session.cwd$.session.id$.session.surfaces$.session.turns$.session.usage$.store.delete$.store.get$.store.set$.ui.invalidate$.ui.log$.ui.resolve$.ui.toast
Draws
AbovePrompt
Can see
classic hooksevery promptevery tool callcompaction
Reach
level 2 of 3 runs processesdrives Claudewrites the prompt boxreads filesreads env varsreads the prompt boxpersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/muellerei/sweet-spot
Path in repo
repository root
Source commit
3377c57 the exact code the scan read
Author
Patrick Müller @muellerei
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

Other mods in Bands, close to this one by stars.