ttsr-rules

by kzarzycki · ★ 0 · updated 2 days ago

ToastsGuardsCommandswarnings

0

oh-my-pi TTSR rules: a regex rule denies the tool call that would break it, with the rule as the reason; a question rule is judged after each turn.

install ttsr-rules

Install

/plugin marketplace add kzarzycki/claude-mods
/plugin install ttsr-rules@claude-mods

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.starttool.callturn.completecommand.run
API calls
$.command.register$.decision.ask$.env.get$.fs.exists$.fs.list$.fs.read$.prompt.submit$.session.append$.ui.log$.ui.toast
Can see
every tool call
Reach
level 2 of 3 other: $.decision.askdrives Claudereads filesreads env varsdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/kzarzycki/claude-mods
Path in repo
plugins/ttsr-rules
Author
@kzarzycki
License
A license file GitHub could not identify — read it in the repository before reusing code.
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.

More from kzarzycki/claude-mods

agent-hub

kzarzycki/claude-mods

Agent hub: a pane listing this session's subagents with status, model, turns and tokens, and a box to steer a running one.

★ 0PanesGuardsCommands

auto-effort

kzarzycki/claude-mods

Auto effort: the decision model rates each prompt and the turn it starts runs at that effort.

★ 0Status lineCommandsPrompt

compact-methods

kzarzycki/claude-mods

oh-my-pi compaction methods: shake (move old tool output to files, no model call) and handoff (continue from a handoff document). Use /compact shake or /compact handoff [focus].

★ 0Toasts

decision-model

kzarzycki/claude-mods

A decision model for other mods ($.decision.ask): typed questions about a state, answered by any System One endpoint (Jev by default) or a small Claude model.

★ 0CommandsAutomation

eval-kernel

kzarzycki/claude-mods

A persistent JavaScript kernel the model drives with one eval tool: state survives between cells, and cells call Claude Code tools, models and subagents.

★ 0GuardsCommandsPrompt

resume-on-stop

kzarzycki/claude-mods

Unexpected stops: when a turn ends right after saying it will act, the decision model spots it and one turn resumes the work.

★ 0ToastsPrompt