正在加载视频...

视频加载失败

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.

996,218 次观看 • 2 个月前 •via X (Twitter)

31 条评论

Dmitriy Cherchenko 的头像
Dmitriy Cherchenko2 个月前

Can't you just add support for AGENTS.md?

sdmat 的头像
sdmat2 个月前

Nice functionality, awful video - don't speak claudish. It's bad enough in writing, hearing it from a person is cringe inducing.

Omar | عمر 的头像
Omar | عمر2 个月前

I can't help but notice the video's script, it's cleary made by AI, which is okay, but it's the most generic AI script ever, it's very distracting.

M 的头像
M2 个月前

Not surprised to hear Claudish spoken in the video. Please fix Opus 5. It’s hurting everyone, even your video voiceovers.

Corey Ward 的头像
Corey Ward2 个月前

Seems cool. I wish you didn’t subject me to the obnoxious Claude writing for the video script though.

RIDER SKETCH 的头像
RIDER SKETCH2 个月前

"we'd love feedback" as the most polite way to say "please find our bugs before we ship this"

S H 的头像
S H2 个月前

How about instead you give our usage back 😆

Ash 的头像
Ash2 个月前

How about hooking the pricing page to give our usage back

Jai 的头像
Jai2 个月前

More control over context compacting/editing would be great. Stratified context (system, highly persistent, volatile memory, literal history) that typically compacted ancient literal to volatile would mean less savings on compact but plausibly maintain state better

Kol Tregaskes 的头像
Kol Tregaskes2 个月前

@grok can I have this in English please?

Hüseyin Örskaya 的头像
Hüseyin Örskaya2 个月前

Extensions are great until they turn a lightweight CLI tool into a bloated IDE. You're trading speed for complexity; let's see if you can keep the latency under 100ms once users start chaining these hooks.

DysektAI 的头像
DysektAI2 个月前

This is why I quit using Claude Code... Just saying hello and you shoe horn 35k+ tokens into the context window instantly... Unless this is constant hot cache its a huge hit to usage and cost to pay for 30k+ tokens each request... This is why Pi is the goat and Codex.

carlo magno 的头像
carlo magno2 个月前

anything but raising the limits

adam 的头像
adam2 个月前

wow Function, what an ancient word.

ItoriH 的头像
ItoriH2 个月前

Oh god, you talk just like Claude. Poor anthropic employees, now speaking claudese

Chandler builds OpenLuxe.co 的头像
Chandler builds OpenLuxe.co2 个月前

Can we customize the ability to copy text in the CLI to not have line breaks! For the love of God it needs to be fixed

Dante Emanuel 的头像
Dante Emanuel2 个月前

I SUBSCRIBD TO X FOR 20 AND DOWNLOADED VIDEOS . IM ABOUT TO KEEP LEARNING AND APPLYING UNTIL I LEARN WHAT I MUST KNOW TO SURPASS MY LIMITS

Lincoln Powers 的头像
Lincoln Powers2 个月前

Feedback from having built this by hand: what I needed most was a hook that can halt and hand control back, not just observe or transform. I run an AI reviewer over every PR under a policy that a rejected finding drops the executor back to per-operation approval. 171 written verdicts so far — 158 accepted, 11 rejected, 2 deferred. Each of those 11 stopped the chain and waited on a human. Implementing that meant reconstructing state the harness already had. A hook that could return "stop, ask the human, resume here" would have replaced the whole thing. Second ask: whatever fires needs to leave an artifact. My halts write a rationale inline into the source — 34 of them, greppable months after the session is gone. A hook that changes behavior and leaves no trace is a debugging problem you meet at volume, not on day one.

KellyK.dev 的头像
KellyK.dev2 个月前

You should be researching more ways to be open to your community, allow third party harnesses & connect with Claude.

Dustin Currie 的头像
Dustin Currie2 个月前

Is it possible for these plugins to be pulled into the path so you can test them out or use them in your shell directly?

Alex Shev 的头像
Alex Shev2 个月前

The most useful hook isn’t just another place to run a script; it needs a clear lifecycle contract. Give it structured context, explicit permission boundaries, and predictable failure/retry behavior so teams can extend workflows without turning every hook into invisible global state.

Mike 的头像
Mike2 个月前

One important detail to define before shipping: what happens when a hook throws, hangs, or mutates its input, and whether administrator policy can reliably take precedence over user plugins. Predictable failure and ordering rules will matter for managed deployments.

AI Mastery Guide 的头像
AI Mastery Guide2 个月前

Change what Claude shows, curious how

anytan 的头像
anytan2 个月前

Function Hooks still pre-ship and they're asking for feedback first. rare

Ankith 🐋/acc 的头像
Ankith 🐋/acc2 个月前

Wont the high entropy thing mess with log files that uses hashses and uuids? @grok

jack bryan 的头像
jack bryan2 个月前

NOONE cares, when you can't even utilize the product for more than a few hours....what is the point

Dan Purcell 的头像
Dan Purcell2 个月前

Do you really still need to restart to pick up these things? Holy shit.

︎ ︎ 的头像
︎ ︎2 个月前

even the devs aren't using opus 5

Pierre Business Logic 的头像
Pierre Business Logic2 个月前

being able to intercept and format tool calls before execution solves a huge headache for running strict local linting and security policies on generated code

Bally_AgenticAI 的头像
Bally_AgenticAI2 个月前

Hooks that redact secrets or change what the model sees aren't just plugins - they're a containment layer most agent setups skip entirely. That's the real permission boundary, not a system prompt. #AgenticAI #LLMOps @AnthropicAI

AGTP 的头像
AGTP2 个月前

We actually went deeper on how these hooks allow you to customize Claude Code through TypeScript:

相关视频

Anthropic just released a talk on building headless automation with Claude Code. Presented by Sid Bidasaria, Member of Technical Staff at Anthropic live at Code with Claude on May 22, 2025 in San Francisco. Here is what the talk covers. Headless mode lets you run Claude Code without a person actively typing prompts from inside an automated script. Instead of a live session, a script calls Claude with a pre-written instruction using the -p flag. This opens the door for Claude Code to become a piece of a much larger, automated process. In plain terms: Claude Code stops being a tool you use and starts being a service that runs on its own. What this unlocks: Scheduled tasks: Run Claude Code on a cron schedule without anyone at a keyboard. Fix linting errors across an entire codebase. Automatically. Overnight. CI/CD integration: Trigger Claude Code as a step in your build process. Open a PR. Claude reviews it, flags issues, and pushes fixes before a human ever looks at it. GitHub automation: A project manager comments "Claude fix this" on a GitHub issue. Claude reads the request, finds the code, writes the fix, and opens the PR. Multi-machine workflows: One orchestrator dispatches tasks to multiple Claude Code instances running in parallel across different repos simultaneously. When you combine headless mode, hooks, and GitHub Actions, development teams can automate tasks that usually eat up significant time freeing senior engineers to focus on architectural problems while Claude handles the repetitive ones. If you use Claude Code for anything beyond single sessions this talk is worth 20 minutes of your time.

Elias

14,096 次观看 • 5 个月前