Rebuild Claude hooks as a pi extension
A developer had an agent convert a folder of Claude Code hooks into a pi extension after switching tools.
- What they did
- They had spent months collecting Claude Code hooks, which use a Claude-only format. To move them over, they gave an agent the whole hooks folder and asked it to recreate each hook as part of a pi extension.
- How it went
- The agent finished the port quickly. The write-up doesn’t say whether the rebuilt hooks were tested, or whether any parts needed manual cleanup.
- Tips
- When you ask for a migration like this, provide the full hooks directory so the agent can see the complete setup. Have it pause before any step that would submit, delete, or change live configuration.
Try it yourself with Claude Code
I’m moving from [old tool] to [new tool]. Review everything in [path to hooks folder] and rebuild each hook as an extension for [new tool], using the extension guide at [docs URL]. Keep the same behavior as closely as possible, and for each item, include a small test or example run. Before you do anything that would overwrite live files, delete anything, submit anything, or make an irreversible change, stop and ask for my approval. When you’re done, list each hook, what was ported, and anything you could not match exactly.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Review your app’s user flow with computer use
Claude Code was used on Windows to inspect an app for usability problems, but the Windows setup sounded patchy.
Draft PR reviews, then send them yourself
They used Claude Code to prepare GitHub review drafts for queued pull requests, while keeping final edits and submission under their control.
Make a portfolio site with an AI chat
A designer used Claude Code to publish a personal portfolio and add a question-answering chat about their work.
Use Claude Code with Ollama for local coding help
They configured Claude Code to talk to a local Ollama model and used it on a small Java project inside IntelliJ.
Move Claude Code skills into Codex
Charlie Hills used Claude Code and Codex to migrate 201 skills in an afternoon, then checked which parts worked in both tools and which still needed fixes.
Split frontend and backend work between two agents
A poster used Claude Code for the frontend and Codex for the backend while sharing one live workspace to cut down on handoff work.