← Founder Notes
Archive

The coding agent just became a middleware stack. anthropic shipped mods on oct 1, letting…

Yethikrishna ROriginal on Threads

the coding agent just became a middleware stack. anthropic shipped mods on oct 1, letting typescript functions hook into claude code's loop to rewrite prompts, block tool calls, and swap built-in features.

the agent is now an express server.

Context

Anthropic introduced mods on Oct 1, 2026: small TypeScript functions that change how Claude Code works. A mod can rewrite a prompt, add UI, replace a built-in feature or add new functionality, and mods ship inside plugins.

The Claude Code docs describe hooks as event handlers that can observe, rewrite or answer tool calls, prompts and turns.

How it compares

Mods as TypeScript functions that rewrite prompts and replace built-in features match Anthropic's post. The docs say hooks can observe, rewrite or answer tool calls; 'block tool calls' as worded was not seen in the excerpts read, so unsupported here, not refuted.

'the agent is now an express server' is the author's opinion.

Related work

Watch next

  • Read the mods reference for the full event list.

Sources

  1. Claude, Oct 1, 2026claude.com
  2. Claude Code Docs, mod eventscode.claude.com
  3. anthropics/claude-code issue 91870github.com

Provenance

The note above is reproduced unedited from the original post, first published on Threads on 11 October 2026 at 01:16 IST. Sources are the papers and datasets the note draws on.

View the original post
Embed this note
<iframe src="https://founder.myndlabs.tech/notes/embed/the-coding-agent-just-became-a-middleware-stack-DeU3kqtCL7I" width="480" height="420" style="border:0;max-width:100%" loading="lazy" title="The coding agent just became a middleware stack. anthropic shipped mods on oct 1, letting…"></iframe>

More notes