AI Playground

My Writing Agent

An autonomous content system that converts long-form writing into high-quality X posts, runs human approval through Sheets, publishes approved posts, and continuously improves through post-performance feedback.

Why it matters

  • Built an end-to-end content agent: generation, human approval, publishing, and learning.
  • Uses practical tooling that teams already understand: Python scripts, Google Sheets, and API integrations.
  • Anyone can plug in their own writing sources and generate X posts quickly.

What surprised me

What surprised me most was how long it takes, and how far you have to push, for the model to get anywhere close to the tone of voice of my own essays.

I'm still working on getting the tone of voice as close to my own as I want it.

Core flow

  1. Generate post candidates from source essays.
  2. Approve, reject, or edit drafts in Google Sheets.
  3. Post approved rows to X automatically.
  4. Fetch engagement metrics and score outcomes.
  5. Update taste profile to improve future generations.

Get started

Clone the project, connect API credentials in .env, add text files in sources/, and run generation.

git clone https://github.com/nathanhirsch/mywritingagent.git
cd mywritingagent
pip3 install -r requirements.txt
cp .env.example .env
python3 generate.py