Armory
Source
Browse
Hooks

user-prompt-submit

Run when the user submits a prompt, to log it or inject extra context before the model sees it.

Score
Unranked
Evidence
No signals yet
Last commit
Not known
Listed

Install

armory install user-prompt-submit --cli claude

writes the file to.claude/hooks/user-prompt-submitListed as compatible

Configuration
# fetches the hook script into:
.claude/hooks/user-prompt-submit
# then register it in your settings.json "hooks" block.

↳ Add the hook entry to settings.json, then restart the harness.

Needs the armory CLI · not on npm yet, build it from cli/ in the repository

What it is

A Claude Code hook from disler/claude-code-hooks-mastery. Run when the user submits a prompt, to log it or inject extra context before the model sees it.

When to use it

Run when the user submits a prompt, to log it or inject extra context before the model sees it.

How to install / invoke

# wire the script into .claude/settings.json hooks for the matching event
curl -sL https://github.com/disler/claude-code-hooks-mastery/raw/main/.claude/hooks/user_prompt_submit.py -o .claude/hooks/user-prompt-submit.py

Notes

Extracted from .claude/hooks/user_prompt_submit.py. See the repo for the settings.json wiring and full implementation.

Source docstring: Log user prompt to logs directory.

Related

HooksPreview

notification

Run on Claude Code notification events to surface alerts (e.g. text-to-speech, desktop toast).

Harnessclaude
hookdisler
Details
HooksPreview

permission-request

Run when a permission dialog is shown, to audit, auto-approve, or deny tool permissions.

Harnessclaude
hookdisler
Details