Skip to main content

Anthropic Previews Function Hooks for Claude Code

Anthropic's official @ClaudeDevs account has shared videos previewing Function Hooks, a proposed new way to extend and customize Claude Code. The feature hasn't shipped yet, and Anthropic is gathering community feedback through a GitHub issue.

By
🌐 This article was machine-translated and may contain inaccuracies. Read the Korean original if in doubt.

Anthropic's official developer account, @ClaudeDevs, posted on X: "We're exploring a new way to let you extend and customize Claude Code: Function Hooks. Here's a couple videos showing what you'd be able to do. It hasn't shipped yet, we'd love feedback on this on our GitHub issue."

Key pointsAnthropic previews Function Hooks for Claude CodeTypeScript hooks work like Express/Koa middlewareAdmins can finely restrict plugin side effectsNot shipped yet; fate depends on feedback

What Was Announced

The feature being previewed, Function Hooks, refers to TypeScript functions that can hook into Claude Code's behavior. The discussion is taking place in GitHub issue #91870, "Function Hooks - make plugins 10x more powerful," opened by a user identified as poteat on September 3, 2026.

According to the issue, Function Hooks work like middleware in web frameworks such as Express or Koa, using a registration-order-based "next" continuation model. Hooks trigger side effects through a parameterized object called $, which the issue says keeps the system safe while still allowing deep modification of Claude Code. Admins would be able to finely restrict which plugins can invoke which side effects on $. Because Claude Code is built on React, hooks could also modify how components render, including their props or returned render nodes.

The issue includes nine short videos across three groups: four "Basic" videos (hooks as functions, a hook that denies an action, a hook that changes component rendering, and admin-level restriction of a hook), three "Advanced" videos (plugins nesting like middleware based on registration order, a single hook catching a UI interaction across both the terminal and desktop app, and a wildcard hook that observes every event at once), and two "Case Study" videos showing more complete use cases. The issue notes that "thumbnails are AI" but "demos and code are real, running on actual binaries."

What It Means for Users

If implemented, Function Hooks would let plugin developers control Claude Code's behavior, screen rendering, and tool outputs in much finer detail. Organization admins could programmatically restrict which side effects specific plugins are allowed to use. However, the issue explicitly frames this as something Anthropic is still "exploring," and states that whether it ships depends on community feedback.

How to Use It

Starting Requirements

Function Hooks has not shipped yet and remains at the proposal stage, so the official material does not specify any requirements, supported plans, or version numbers.

Setup and Execution Steps

The actual usage procedure will need to be confirmed from official sources once available.

Who It's For and Example Uses

  • Plugin developers — One case-study video shows Claude writing, validating, and loading a plugin from a single short request, which then replaces secrets in tool output before the model reads them.
  • Users who share their screens — Another case-study video shows a plugin that hides sensitive values in Claude Code Desktop until the user hovers over them, allowing screen sharing without exposing data.
  • Organization admins — The videos describe admins restricting specific plugins from invoking certain side effects on the $ object, as well as a single hook on * that can serve as an audit log by observing every event.

Things to Watch

The issue states that "the response from the community likely dictates whether this ships or not," making clear that Function Hooks is a feedback-gathering proposal rather than a confirmed roadmap item. Interested users can participate by commenting on GitHub issue #91870.

Still Unconfirmed

The official material does not include a shipping timeline, a formal API specification, or details on backward compatibility with the existing plugin system. The contents of the attached "Function Hooks: Core Architecture" technical document were also outside the scope of what could be confirmed here.

For the latest status, check Anthropic's official channels and GitHub issue #91870.

Official resources: GitHub anthropics/claude-code

Was this helpful?

Keep reading