Who it is forA developer who wants every successful push to kick off a build, a deploy or a copy to another repository.
The problemWiring Git pushes to CI or deployment often means polling or extra services that have to be kept in sync.
The outcomeA post-receive handler that runs your chosen action each time a push succeeds.
What you need first
- Linux or macOS on Apple silicon, or Docker to run the published image
- git installed on your machine
- A terminal and, for hooks, a language you can write a small server in
Steps
- Read the post-receive section in docs/reference/hooks.md for the payload it receives.
- Write a post-receive handler in your app that starts your CI run, deploy script or mirror job.
- Enable the post-receive hook following the setup in docs/README.md. (inferred, check the README)
- Push a commit with
git push http://127.0.0.1:8080/hello.git mainand check that your action ran. (inferred, check the README)
Prompt for your agent
In the enroute-sh/enroute repository, read docs/reference/hooks.md and write a post-receive handler in <app-dir> that starts a deploy script for <repo-name>. Expected output: the handler runs after a successful push. Verify by pushing a commit to main and checking the deploy script log.
Caveat. The README lists post-receive as a hook for running CI, deploys or mirroring, but it does not describe the deploy or mirror tooling, so you supply that yourself.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for enroute-sh/enroute and "Trigger a deploy or mirror after each successful push"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer