Skip to content
Agent Casebook

No sponsor this week. The weekly slot is $100.

Request this week

DirectoryWriting & Content72

Claude Code (headless -p, Slack bot, GitHub, Vercel)

Write SEO blog posts overnight from a Slack command with headless Claude Code

Gray Ang, a solo builder of the retirement-planning SaaS Lifire, writes that he wired up a content pipeline he triggers by typing a short command like "write: lifire" in a private Slack channel. A Python Slack listener ("Tuesday") only dispatches work; Claude Code running headless ("Monday") reads a git repo of topic ledgers, briefs and voice notes, picks the highest-scoring pending topic, researches it, writes the MDX article, opens a pull request and waits for the Vercel preview. A separate Haiku agent runs QA checks on each PR, and a twice-weekly discovery job mines Reddit and forums for new topics. Nothing merges until he replies "approve" in the Slack thread.

Agent
Claude Code (headless -p, Slack bot, GitHub, Vercel)
Outcome
Reported: he types four words before bed and wakes up to a pull request and a preview URL; replying "approve" merges it and the article is live in about two minutes. He reports the hard part was plumbing, not the AI: headless PATH and API-key issues, restricting --allowedTools, and having the agent write results to a file so the bot—not his own Slack account—posts the reply. He still reads every article before it goes live.

Reported by the source. This page does not verify the result and does not add dollar figures beyond the note above.

Gray Ang

Prompt

You are the writer for [blog]. Read the topic ledger, voice file and briefs in [knowledge-base repo]. Pick the highest-scoring pending topic, do targeted research, and write one MDX article with complete frontmatter. Open a pull request, wait for the preview deploy, and write the PR and preview URLs to [result file]. Do not merge, do not post anywhere yourself, and stop if the topic or sources are unclear.