Inject a budget line into every Claude Code prompt with UserPromptSubmit
This story is from 2026-10-15. It is preserved in the archive; the latest stories are on the live feed.
Hooks are not only for blocking bad tool calls. UserPromptSubmit runs when you send a message, before the model sees it — so you can inject a short context block every turn without bloating CLAUDE.md . Use it for a standing budget reminder: context window, spend ceiling, or “prefer local tools over…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-15 01:20 · DEV Community — AI
Inject a budget line into every Claude Code prompt with UserPromptSubmit