Original Reddit post

Ok so I went down a rabbit hole and now I’m annoyed about a thing I didn’t know existed an hour ago. Claude Code has hooks for basically everything. Session start, tool calls, permissions, compaction, worktrees, config changes, when CLAUDE.md loads. There’s even one called MessageDisplay that lets you rewrite Claude’s messages as they show up on screen. But there’s no hook for the prompt box. The thing you type in. Nothing fires while you’re composing, only after you hit Enter. Which is weird, because it already reads what you’re typing? Type :hea and it offers you ❤️. Same for / and @. The buffer is right there being read on every keystroke. You just can’t touch it. Stuff I’d build in an afternoon if I could: flag an API key BEFORE it goes over the wire, not after live token count while I type so I stop accidentally writing 4k-token prompts fuzzy search my old prompts (two people asked for this, both requests got auto-closed, nobody built it) honestly just autocorrect, I type like garbage I dunno. Maybe this is a bad idea for some reason I’m not thinking about, but I can’t think of any. Anyways. Filed it here: https://github.com/anthropics/claude-code/issues/82001 I need your help if we want to make this a reality. Fair warning on how this works. there’s a bot that closes issues after 14 days of silence unless they hit 10 thumbs-ups👍. I filed this back in April, it got exactly one upvote, and the bot killed it. So if this seems useful, a thumbs up genuinely is the whole thing to keep it open to maybe be considered, it’s literally a threshold in their sweep script, not karma farming. I’m annoyed because it turns out you can’t reopen your own issue either, so I just refiled it. Not asking anyone to build me an autocorrect. Just want the hook, I’ll do the rest myself. submitted by /u/joeyda3rd

Originally posted by u/joeyda3rd on r/ClaudeCode