Port Claude Code hooks to pi extensions
After leaving Claude, the author pointed an agent at their Claude hooks folder and had it rebuild them as a pi extension, which it did quickly. ·
Done withClaude Code
- What they did
- The author had built up a collection of Claude Code hooks over several months. Unlike skills, hooks use a Claude-specific format, so they were the hardest part to migrate to pi. They pointed an agent at the Claude hooks folder and told it to make them work in pi, as a pi extension.
- How it went
- According to the author, the agent did the port very quickly. The comment gives no details on how well the hooks worked afterward, or on what was checked or fixed by hand.
- Worth knowing
- Hooks don't carry over between tools the way skills do, so give the agent your whole hooks folder as the reference when asking it to build the extension.
Try it yourself with Claude Code
Read the hooks in my folder [path to .claude/hooks or settings] and rebuild each one as an extension for [new agent or tool name], following its extension docs at [docs URL]. Keep the same behavior for each hook and write a short test or example run for each. Stop when every hook has an equivalent, and list any that can't be ported exactly.
Want help getting this working? Join the Vibe Coding Academy ↗ Run by Alex Finn, who also runs this site.
Source: HN · Apr 20, 2026
Related use cases
Turn tickets into merged pull requests
Pulls tasks from GitHub Issues or Linear, then runs Claude Code or Codex in isolated Kubernetes pods to carry each one through to a PR.
Automate event social posting across platforms
Claude Code connected social channels to drive event registrations, working well on Twitter and Reddit and somewhat on LinkedIn.
Send daily WhatsApp reminders of what to pack for school
A commenter built a Claude Code tool that sends a WhatsApp reminder the day before about what to pack in a child's school bag.
Build a C compiler with a team of parallel agents
Anthropic's engineering write-up on tasking Opus 4.6 agent teams with building a C compiler.
Build a Pokemon-style dog collecting app
A user had Replit Agent build a catch-em-all dog app whose rarity comes from scraped American Kennel Club regional population data.
Build a local knowledge app for agent outputs with Codex
The author built Mianotes using four Codex agents across 30+ sessions to centralize scattered files agents produced, and the agents documented the product inside it.
Get 5 like this every morning
The best things people got an AI agent to do, each with the prompt to try it.