Documentation Index
Fetch the complete documentation index at: https://docs.wolffi.sh/llms.txt
Use this file to discover all available pages before exploring further.
Safety Patterns
The amygdala is Wolffish’s safety gate. Every tool call passes through it before execution. It has zero hardcoded patterns — all danger and confirm patterns are loaded from SKILL.md files via the cerebellum.How It Works
When the LLM produces a tool call, the amygdala constructs a match string:| Classification | Behavior |
|---|---|
| safe | Tool executes immediately |
| confirm | Approval dialog shown in UI; execution waits for user response |
| block | Tool call is denied; LLM receives a denial message |
Pattern Matching
Patterns are regex strings defined in SKILL.md frontmatter:Pattern Priority
If a tool call matches both a danger pattern and a confirm pattern, danger wins. The priority order is: block > confirm > safe.The Approval Flow
When amygdala classifies a call asconfirm:
- An
safety.confirmevent is emitted on the corpus event bus - An IPC message is sent to the renderer process
- The UI shows an approval card with the tool name, arguments, and approve/deny buttons
- The amygdala waits via a Promise-based bridge
- The user’s decision (approve or deny) is returned
- If approved, execution proceeds. If denied, the LLM receives a denial message
Writing Good Patterns
Keep patterns specific enough to catch real dangers but broad enough to not miss variations. Test your patterns against the full match string format (toolName + " " + JSON.stringify(args)).