Autonomous Agents: a git push that writes the launch post and X thread
If you build alone, you know the pattern: a feature hits main on a Tuesday afternoon, and the launch post and the tweet thread go onto a "later" list that never gets shorter. The code shipped; nobody heard about it. Thi
If you build alone, you know the pattern: a feature hits main on a Tuesday afternoon, and the launch post and the tweet thread go onto a "later" list that never gets shorter. The code shipped; nobody heard about it.
This recipe turns that into a pipeline. Every push to main fires an event. One agent reads the commits and decides whether a customer would actually notice anything. If yes, a second agent writes and deploys the blog post, and a third drafts an X thread and asks you before posting. Dependency bumps, refactors and fixes fall through silently.
We ran it for real on November 29, 2026: a gift cards feature went from git push to a live X thread.
TL;DR
-
Three single-purpose agents, each in its own AgentRQ workspace:
release-scout,blog,social. -
Three events hand work along:
code_changed→feature_released→blog_published. -
A GitHub webhook (via an AgentRQ hook) fires
code_changedon every push to main. - The supervisor agent builds the wiring from a plain-English description; you only connect GitHub.
- Posting to X needs your approval every time.
push to main ─▶ code_changed ─▶ release-scout: "is this a customer-visible feature?"
│ no → one-line reason, stop
│ yes → feature_released
▼
blog: write, push, wait for deploy ─▶ blog_published
▼
social: draft thread ─▶ you click Allow Once ─▶ live on X
Why events instead of a cron job or one big agent?
A scheduled "check for releases" job polls and guesses. One mega-agent that reads diffs, writes posts and tweets is hard to reason about and hard to stop halfway. Splitting it gives you three properties:
- Events, not schedules. An event names something that happened. A trigger subscribes a workspace to it; each publish creates a task from a template with the publisher's payload inside.
- Hooks bring the outside in. GitHub's webhook becomes one of your events, so a push kicks off the chain on its own.
- A clean filter point. The "is this a feature?" decision lives in exactly one place: a paragraph of instructions you can edit.
| Workspace | Folder | Gets a task on | Fires |
|---|---|---|---|
| release-scout |
~/code/shop (product) |
code_changed |
feature_released, only for features |
| blog |
~/code/site (website) |
feature_released |
blog_published |
| social |
~/code/social (X setup) |
blog_published |
nothing (you approve) |
You'll need: an AgentRQ account with an agent connected to the supervisor workspace (MCP integration), a machine with both repos on it (machines), admin on the GitHub repo, and X's xurl CLI signed in with your developer app on the machine running social.
Can I really just describe the pipeline to an agent?
Yes, that's the supervisor's job: it has the tools to create workspaces, events and triggers. We gave it a task like you'd brief a colleague:
I ship to main a few times a day, and I keep forgetting to tell anyone. Set this up
with events: when code lands on main in acme/shop, have an agent check whether it
ships a feature a customer would notice. If it does, write a launch post for the blog
(acme/site), then post a short thread on X that links it. Fixes, refactors and
dependency bumps should be ignored. I want to approve every X post before it goes out.
It replied with a plan, then created three workspaces with missions, three events with payload guidelines, and one trigger per event. It also flagged the single step it can't do for you: connecting GitHub.
One thing it doesn't set: working directories. Open each new workspace's settings, point release-scout at the product checkout and blog at the website checkout, and start their agents.
Where does the "is it a feature?" logic live?
In the code_changed trigger. Its title uses {{EVENT_SUBJECT}}, which the GitHub hook fills with something like "Push to main in acme/shop". The instructions the supervisor wrote:
New code on main:
{{EVENT_PAYLOAD}}
{{EVENT_FAQ}}
Read the commits and the diff (git fetch, then git log and git diff on the compare
range) and decide: does this push ship a feature a customer would notice?
- Yes: call workspace publishEvent with name feature_released, this task's id, and
a payload following its guidelines. Then complete this task.
- No (a fix, refactor, test, docs or dependency change): reply with one line saying
why, publish nothing, and complete this task.
Notice this trigger deliberately doesn't use "When the task is completed, fire". That option fires on every completion, but here the next event must fire conditionally, so the agent publishes feature_released itself. The two downstream triggers do use auto-chaining:
| Event | Workspace | Task title | Then fire |
|---|---|---|---|
code_changed |
release-scout | Feature check: {{EVENT_SUBJECT}} | none (agent decides) |
feature_released |
blog | Write the launch post | blog_published |
blog_published |
social | Post the launch thread on X | none |
Want different rules? Edit that paragraph and release-scout's mission: "only commits starting with feat:", "only PRs labelled release", "ignore changes under admin/". No code.
How do you connect GitHub?
In AgentRQ: Events → Hooks → New registration. Pick the built-in github hook, click Generate for a webhook secret and copy it, set Branches to main, and under Routes send push to code_changed (leave the rest unrouted). After creating it, copy the payload URL ending in ?agentrq_hook_token=. It's shown only once.
In GitHub: Settings → Webhooks → Add webhook
- Payload URL: the copied URL, token included.
-
Content type:
application/json(the default form encoding is rejected). - Secret: the one you generated.
- Let me select individual events → Pushes only.
- Add webhook.
Only add it to the product repo. If the website repo pushed to the same registration, every published blog post would trigger its own feature check.
What does a run look like?
Push 1: a Stripe SDK bump plus a tiny cart fix. release-scout got a task, replied "Not a feature release: a Stripe SDK patch bump and a one-frame cart badge fix", and published nothing. Chain over. That's the filter keeping your feed clean.
Push 2: three commits (buy gift cards, redeem at checkout, a test). release-scout said yes and published feature_released with the customer-facing summary, commits, where to try it, a screenshot path, and two FAQ notes: who can use it, and what not to promise.
The blog agent drafted the post in the website repo, respected the "no refund promise" note, pushed, waited for the deploy and opened the live URL, and only then completed, which fired blog_published. The social agent got its task immediately.
Why does posting to X still need a human?
Because it's the one step that speaks for you in public. The social agent wrote a four-post thread (each under 280 characters, the last linking the blog post) and then asked to run the xurl command. That request shows up as an Authorization Required card on web and mobile.
Keep YOLO mode off on the blog_published trigger and in the social workspace, and click Allow Once rather than Always Allow, so the next thread asks again.
Afterwards everything is auditable: the code_changed event page lists each push and its check, and the hook registration lists every GitHub delivery (Published, Rejected on a bad signature, replayable on failure).
Why triggers and not a workflow?
AgentRQ also has workflows, graphs that move one run from step to step. But a workflow run only starts when a task carrying that workflow publishes the start event. A GitHub push comes in through a hook, not such a task, so it reaches every trigger on code_changed but never starts a workflow run. Triggers fire on every publish regardless of who sent it, which is exactly what a webhook-driven pipeline needs.
How would you extend it?
-
Another channel: add a second trigger on
blog_published(LinkedIn, newsletter draft). They run in parallel. -
Review the post first: have the blog agent open a PR instead of pushing, and only complete after you merge, so
blog_publishedfires when the post is truly live. - Learn your voice: ask blog and social to save your edits to memory.
FAQ
Do I need the supervisor? No. Everything can be created by hand in the web app; the supervisor just saves you the forms and writes the instructions.
One push, two features? release-scout can publish feature_released twice, giving two blog tasks. Say so in its mission if that's what you want.
Do feature-branch pushes trigger it? No. The registration's branch filter is main; the hook drops everything else before any event fires.
Can the social agent post without me? Not while it must ask. If you enable YOLO or click Always Allow, it stops asking.
Which agents work? Anything that connects to AgentRQ: Claude Code, or Codex, Gemini CLI and others via the ACP Gateway, chosen per workspace.
How do you handle release announcements today: changelog bot, manual posts, or do they just not happen?
Originally published on agentrq.com. The full tutorial has every screenshot and step.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.


