Back to Claude Code’s Next Era — Thariq Shihipar, Anthropic, with Thariq Shihipar & Vibhu Sapra.
How Do Claude Code Mods Go Beyond Hooks?
Thariq Shihipar · Shawn Wang · Vibhu Sapra
Thariq Shihipar says Claude Code mods run inside the TypeScript runtime and go further than hooks. Internally the feature started under the name function hooks. Hooks register an event and then call a script. A mod can see how many turns are in the conversation, how many tokens have been used, and what the messages are, and there are many more events to register on. Because the work happens in process, a mod can spawn sub-agents, parse what comes back, use structured output, and modify the user interface. Hooks could never modify the user interface.
A dashboard mod he is building prompts Claude to keep a dashboard that is an artifact. Mods and artifacts compose. Mods sit in the Claude Code harness and change the agent loop, and the interface change is an added benefit. Artifacts are for viewing work at a high level and staying highly interactive, with room that can be much larger than a TUI or the desktop app.
Claude Code still asks people to remember a lot: call the dashboard skill that runs the loop, then test assumptions afterward. Little classifiers can hold the things a person cares about and what they want done, so the person does not have to remember as much.
Claude Code’s Next Era — Thariq Shihipar, Anthropic ·
From the transcript
And so, yeah, another reason to, if you run a startup, you can just prompt Cloud and be like, hey, could we make an extension system? What would that look like? Yeah. Yeah. And I just really wanted to, like, you had hooks in the past and plugins, all these things. So what specifically would mods be able to do that those things could not do? Internally, we were originally calling this function hooks.
And so like, that's like, gives you a little bit of an idea where like hooks... sort of register an event to happen and then a script to call, basically. And this basically, inside of the TypeScript runtime, is running things. And so you get some benefits of just like, it has a bunch of things in the...