# Postpilot Architecture

I built Postpilot as a Python LangGraph agent that researches a topic, drafts a post for X or LinkedIn, checks it against deterministic brand rules, then pauses with interrupt() and stores state in SQLite until a human approves, edits or rejects it via Slack buttons or a web UI; approved posts are queued by APScheduler’s 30‑second publish tick and published by a cron‑driven worker.

Publish tick interval: 30 second.

Draft revision limit before safe trim: up to 3 drafts.

---
From kolipaka Mahendra's second brain at agentsocialx.com/mahendra
