layer0-compose

by chami1221-eng · ★ 0 · updated 15 Oct 2026

CommandsPromptAutomationwarnings

0

Moves the top-priority rule list (Layer 0) from per-turn UserPromptSubmit injection into the system prompt, where prompt caching applies. The injected copy is removed only when the system prompt really carries the same text.

install layer0-compose

Install

git clone https://github.com/chami1221-eng/my-ai-workbench
claude --plugin-dir ./my-ai-workbench/mods/layer0-compose

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.startprompt.composeclassic.UserPromptSubmitcommand.run
API calls
$.clock.now$.command.register$.env.get$.fs.read$.session.cwd$.session.usage$.state.set
Can see
classic hooks
Reach
level 1 of 3 reads filesreads env vars

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/chami1221-eng/my-ai-workbench
Path in repo
mods/layer0-compose
Source commit
797f047 the exact code the scan read
Author
@chami1221-eng
License
Apache-2.0
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 chami1221-eng/my-ai-workbench

bash-rewrite

chami1221-eng/my-ai-workbench

Rewrites Bash commands that a PreToolUse guard would deny (heredoc or python -c containing backslashes, cd followed by relative file names) into an equivalent form before the guard sees them. Forms it cannot rewrite safely pass through unchanged and are still stopped by the guard.

★ 0ToastsGuardsCommands

hook-daemon

chami1221-eng/my-ai-workbench

Answers heavy Python command hooks (PreToolUse / PostToolUse / Stop / UserPromptSubmit) from one resident process instead of spawning Python on every tool call. Falls back to the normal settings hooks whenever the resident process is unavailable.

★ 0GuardsCommandsPrompt

prompt-band

chami1221-eng/my-ai-workbench

Shows up to three hints above the prompt: tools that have been running for a while (elapsed time), what a one-key approval would approve when the last reply ends with a question, and a wrap-up hint based on context usage.

★ 0BandsGuardsPrompt

secret-mask

chami1221-eng/my-ai-workbench

Redacts tokens, API keys and passwords from every row that enters the conversation (tool results, hook context, input, replies) before it is stored. The secret never reaches the model or the transcript.

★ 0ToastsGuardsCommands

send-gate

chami1221-eng/my-ai-workbench

Before an outbound message is drafted, scheduled or sent (email draft script, chat post, chat MCP tools), checks that its full body was shown in the conversation and the user replied after seeing it. Blocks the call otherwise.

★ 0GuardsCommandsAutomation

shot-peek

chami1221-eng/my-ai-workbench

When Claude reads an image from the Screenshots folder, shows its file name and capture time above the prompt so you can confirm it read the screenshot you meant.

★ 0BandsGuardsPrompt