clawdia hooks
Manage agent hooks (event-driven automations for commands like /new, /reset, and gateway startup).
Related:
List All Hooks
--eligible: Show only eligible hooks (requirements met)--json: Output as JSON-v, --verbose: Show detailed information including missing requirements
Get Hook Information
<name>: Hook name (e.g.,session-memory)
--json: Output as JSON
Check Hooks Eligibility
--json: Output as JSON
Enable a Hook
~/.clawdia/config.json).
Note: Hooks managed by plugins show plugin:<id> in clawdia hooks list and
canβt be enabled/disabled here. Enable/disable the plugin instead.
Arguments:
<name>: Hook name (e.g.,session-memory)
- Checks if hook exists and is eligible
- Updates
hooks.internal.entries.<name>.enabled = truein your config - Saves config to disk
- Restart the gateway so hooks reload (menu bar app restart on macOS, or restart your gateway process in dev).
Disable a Hook
<name>: Hook name (e.g.,command-logger)
- Restart the gateway so hooks reload
Install Hooks
- Copies the hook pack into
~/.clawdia/hooks/<id> - Enables the installed hooks in
hooks.internal.entries.* - Records the install under
hooks.internal.installs
-l, --link: Link a local directory instead of copying (adds it tohooks.internal.load.extraDirs)
.zip, .tgz, .tar.gz, .tar
Examples:
Update Hooks
--all: Update all tracked hook packs--dry-run: Show what would change without writing
Bundled Hooks
session-memory
Saves session context to memory when you issue/new.
Enable:
~/clawd/memory/YYYY-MM-DD-slug.md
See: session-memory documentation
command-logger
Logs all command events to a centralized audit file. Enable:~/.clawdia/logs/commands.log
View logs:
soul-evil
Swaps injectedSOUL.md content with SOUL_EVIL.md during a purge window or by random chance.
Enable:
boot-md
RunsBOOT.md when the gateway starts (after channels start).
Events: gateway:startup
Enable:
