Skip to content
Black Friday: 40% off the first year, until December 1
1 of 9 · Why your coding agent is the right writer

Build in public playbook

How to turn git commits into social media posts with AI

Have your coding agent read what you shipped this week, pick what's worth posting, write it in your voice and save drafts for you to approve.

PostSyncer teamUpdated 9 min read9 sources
A laptop showing a short log with three lines highlighted, and three small post cards floating from it to a phone that shows one of them as a post

Short answer

Give the coding agent you already use your week's git log and a voice file. Ask it to pick the 3 to 5 changes a user would notice, write one post per change for each network, and save them as drafts in your scheduler. Then read, fix and schedule them yourself.

What you need

  • A git repository with a week of commits
  • A coding agent: Claude Code, Cursor, Codex, Gemini CLI or Antigravity
  • A voice file: the words you use, the words you never use, and 3 posts you wrote yourself
  • A scheduler with an MCP server, if you want the agent to save drafts for you
  • 15 minutes on Friday to read and approve the drafts

Building in public means posting what you're building while you build it. The hard part is rarely the writing. It's remembering on Friday what you shipped on Tuesday, and deciding which of 40 commits anyone else would care about.

A coding agent is good at both. It can read your whole git log in seconds, open the diffs, and see which changes a user would notice. And because it worked on the code with you, it knows why a change was made, which is the part worth posting. This playbook sets that up once, so that every Friday you read five drafts instead of staring at an empty box.

Why your coding agent is the right writer

Most commit-to-post tools see the commit message and nothing else. "fix: retry on 429" doesn't tell anyone a story. Your coding agent has more to go on:

  • The diff. It can see that the retry change touched the upload path, so the story is "big uploads no longer fail halfway".
  • The issue or the chat. If you fixed it together, it knows what the user reported and how long the bug lived.
  • The rest of the repo. It can check the docs, the changelog and the tests to get the details right.

What it doesn't have is your taste: which story is interesting, and how you talk. That's what the voice file and your Friday review are for.

What's worth posting, and what isn't

Ask the agent to sort the week's commits into these piles before it writes a word.

Post it Skip it
A change a user can see or feel Refactors, renames, dependency bumps
A number that moved: faster, smaller, fewer errors Changes only your team would notice
A decision with a trade-off ("we chose X over Y because...") Anything with customer names, keys or internal URLs
A bug with a story: how it showed up, how you found it Security fixes, until they are out and safe to talk about
Something you tried that didn't work Work that isn't live yet, unless you're asking for feedback on it

Three to five posts a week is plenty. A week with only one good story should get one post.

Turn commits into posts, step by step

  1. Write your voice file. Make VOICE.md in your repo: how long your sentences are, words you use, words you never use, whether you write in lowercase, and three posts you wrote yourself, pasted in full. Every model has habits. A voice file keeps them out of your posts, and it keeps working when you switch models.
  2. Connect your agent to a scheduler. Use one with an MCP server, so the agent can save drafts straight into your calendar. The setup for each agent is below.
  3. Give the agent the week. Ask it to run git log --since="7 days ago" and to open the diffs of anything that looks user-facing. If you work with pull requests, the merged PRs and their descriptions are even better.
  4. Have it sort before it writes. Ask for a short list: the 3 to 5 changes worth posting, one line on why each matters to a user, and what it skipped. Cross out the ones you disagree with.
  5. Write one post per change, for each network. X takes 280 characters unless you have X Premium, so X usually needs its own shorter version. LinkedIn takes a longer post with more of the why. Threads and Bluesky sit in between.
  6. Add a picture when you can. A screenshot of the new screen, a before and after, or a short screen recording does more than a paragraph. Agents that run a browser, such as Antigravity, can take the screenshot themselves.
  7. Save everything as drafts. Not scheduled, not published. Drafts.
  8. Read, fix and schedule. On Friday, open your calendar, read each draft aloud, fix what doesn't sound like you, and spread them across the next week.
  9. Feed back what worked. After a week, ask the agent to read how each post did and add one line to VOICE.md about what got replies. Your voice file gets better every week.

Connect your agent to a scheduler

Any scheduler with an MCP server works. The examples here use PostSyncer, whose server is https://postsyncer.com/mcp. It's on every plan, the free one included, and it signs in with your PostSyncer account.

Claude Code. Run this in your project, then type /mcp, choose postsyncer and approve it in your browser:

claude mcp add --transport http postsyncer https://postsyncer.com/mcp

Codex. Add the server, then sign in:

codex mcp add postsyncer --url https://postsyncer.com/mcp
codex mcp login postsyncer

Gemini CLI. Add the server, then type /mcp auth postsyncer in Gemini CLI to sign in:

gemini mcp add --transport http -s user postsyncer https://postsyncer.com/mcp

Antigravity. Click Customizations in the sidebar, then Installed. Under MCP Servers, click Copy Config File Path, open that mcp_config.json and add PostSyncer:

{
  "mcpServers": {
    "postsyncer": {
      "serverUrl": "https://postsyncer.com/mcp"
    }
  }
}

Then click Authenticate next to postsyncer, approve PostSyncer in your browser, and paste the code your browser shows into Enter authorization code.

Cursor and others. The setup page has a one-click link for Cursor and VS Code, and the steps for other clients.

Let the agent save drafts only

If you'd rather the agent never schedule anything itself, connect it with an API key instead of signing in. In PostSyncer, go to Settings → API, create a key and start from An agent that drafts. That key can read your accounts and save drafts with media, and nothing goes out until someone schedules it. Send the key in the Authorization header as Bearer YOUR_KEY; the setup page shows where the header goes. For step 9, also give the key Read on Analytics.

Prompts to copy

First, the sorting. Paste this and fill in the brackets:

Read VOICE.md. Then run git log --since="7 days ago" --no-merges and open the
diffs of any change a user of [product] would notice.

Give me a list of at most 5 changes worth posting about. For each one:
- one line on what changed, in words a user would use
- one line on why it matters to them
- what kind of post it is: shipped, number, decision, bug story, or tried-and-failed
- a screenshot or recording idea, if there is one

Then list what you skipped and why. Leave out anything with customer names,
keys, internal URLs, or security fixes that aren't public yet. Don't write any posts yet.

Then, once you've crossed out what you don't want:

Write posts for the changes I kept. For each change, write:
- an X post of at most 280 characters
- a LinkedIn post of 80 to 150 words that explains the why
- a Threads post of at most 500 characters

Follow VOICE.md exactly. Start with the change, not with "Excited to share".
No hashtags on X. At most 3 on LinkedIn. Put links in a reply, not in the post.

Save each one as a draft in PostSyncer, one draft per network, to the right
account. Don't schedule or publish anything. When you're done, list the drafts
with their first line.

Five post shapes that work for builders

You don't need a new idea every week. Rotate these:

  • The shipped post. What changed, who it's for, one picture. "you can now drag posts between days in the calendar. took 3 tries to get the drop zones right" beats "New feature: drag and drop!".
  • The number. One metric, before and after. "first page load went from 2.1s to 0.8s" plus one line on what did it. Numbers get shared because people want to copy them.
  • The decision. Two options and why you picked one. These get the most replies, because everyone has an opinion on the other option.
  • The bug story. What users saw, what you thought it was, what it really was. People love a good wrong guess.
  • The weekly log. On Friday, a short thread: one line per change, a picture on the first post. On X and Threads, each item of a PostSyncer post goes out as a reply to the one before, so the agent can save the whole thread as one draft.

Make it run every Friday

Once you like the drafts, run the same prompt on a schedule. Claude Code runs a prompt without opening a chat when you pass -p, and --allowedTools lets it use the tools you list without asking:

claude -p "$(cat prompts/weekly-posts.md)" --allowedTools "mcp__postsyncer,Bash(git log *),Bash(git show *)"

mcp__postsyncer allows every tool of the server you named postsyncer, and the two Bash rules allow only git log and git show. Codex has codex exec and Gemini CLI has gemini -p for the same job. Each has its own settings for which tools may run without asking, so set those first and try the run once by hand: a run with nobody watching can't answer a question.

Put the command in a cron job or a CI workflow that runs on Friday afternoon. Because the prompt only saves drafts, nothing goes out until you've read it.

When something goes wrong

  • The posts all sound the same. The voice file is too vague. Paste in three more of your own posts and add a line on what you'd never write.
  • The agent picked boring changes. Tell it who your user is and what they complain about. A change that fixes a complaint is a story.
  • A post leaked something internal. Add the thing to the "leave out" line of the prompt, and keep the drafts-only key so you always read before anything goes out.
  • A post won't schedule for X. It's over 280 characters by X's count, where an emoji counts 2 and every link counts 23. Drafts aren't checked, so this shows up when you schedule. Ask the agent to shorten it or split it into a thread.
  • You switched agents and the posts changed. That's the model's habits showing. Check that the new agent reads VOICE.md, and add what's new to the "never" list.

Do it with PostSyncer

Your agent saves the drafts, you press schedule

Connect Claude Code, Cursor or another coding agent to PostSyncer. It saves one draft per network from your week’s commits, and nothing goes out until you add it to the queue.

Free plan: 2 accounts, 20 posts a month, no card.

Questions people ask

Can AI write build-in-public posts?

Yes, if you give it what a model can't guess: what's worth telling, and how you talk. A coding agent with your git log and a voice file writes good first drafts. Keep yourself as the editor.

Should I post every commit?

No. Most commits are only interesting to you. Post the changes a user would notice, the numbers that moved, and the decisions behind them. Three to five posts a week is plenty for most solo builders.

Which agent is best for this?

The one you already code with, because it already knows the repo. Claude Code, Cursor, Codex, Gemini CLI and Antigravity can all read git and use an MCP server. Since the voice file and the prompt are plain files, you can switch agents and keep the same posts.

Can the agent post for me?

It can, through a scheduler's MCP server. Still, start with drafts you approve yourself, at least for the first month. With a drafts-only API key, the agent can't post by mistake.

How do I add screenshots?

Agents that drive a browser can take them. Otherwise, take them yourself and give the agent the file path. PostSyncer's upload-media-file and create-media-upload-link tools put the file into your media library, and the draft uses it from there.

Try it in PostSyncer.

Connect your accounts and schedule your first post in a few minutes. Free plan: 2 accounts, 20 posts a month, no card.