Boris Cherny asks for feedback on Function Hooks, an Express-style TypeScript middleware layer for Claude Code
Claude Code's creator amplified GitHub issue #91870 on September 3 with 'This is an early look at how we're thinking about making Claude Code way more extensible. It's a little crazy, and very exciting.' The proposal, opened by @poteat, models plugins as Express/Koa-style TypeScript middleware: side effects flow through a parameterized `$` object that admins can strip affordances from, composition follows registration-order `next` continuation so an admin can prepend for control or append for defaults, and hooks can modify React component props, intercept UI events like `ui.press`, or catch everything via a `*` wildcard for audit logs. It ships with a nine-video demo set including secret redaction and sensitive-value masking. Nothing has shipped, the issue is open for feedback.
↳ Follow the thread