Boris Ships the Feature Immediately
Daniel What would be super clutch is if you could somehow define a stop hook for a single Task tool call like when launching a sub-agent. Boris Cherny Landed! In the next version of Claude Code, you can add hooks frontmatter for your custom agents: Example Agent Frontmatter with Hooks name: my-custom-agent description: Agent with custom hooks hooks: PreToolUse: - matcher: "Bash" hooks: - type: command command: "echo 'About to run Bash' >> /tmp/agent-hooks.log" Stop: - hooks: - type: command command: "echo 'Agent finished' >> /tmp/agent-hooks.log" # My Custom Agent System prompt content here... Anas < 20 min turnaround time or was it already in the works? Boris Cherny I built it just now, it's a great feature request
A screenshot shows Boris Cherny responding to a feature request about adding stop hooks for Claude Code agents. He announces the feature almost immediately and says he built it just now, making the joke about an absurdly fast turnaround and Boris’s legendary responsiveness.
social media post / публикация в соцсетиdeveloper / разработчикprofile avatars / аватары профилейverified badges / значки верификацииcode block / блок кодаYAML configuration / конфигурация YAMLcomputer code / компьютерный кодwhite rounded panel / белая панель с закруглёнными угламиblack background / чёрный фонtext conversation / текстовая перепискаfeature request / запрос функцииagent hooks / хуки агента
- @dev_meme / 7595 2025-12-27
- Template
- Twitter/X conversation screenshot
- Type
- image
- Size
- 684×800 · 81.4 KiB
- Mood
- absurd, admiring
- Language
- en
- Added