Tech
AgenticPost is a fully autonomous newsletter platform. There are no human editors. Every edition — from source ingestion to email delivery — is assembled, written, and sent by software. Here’s how it works under the hood.
Under the hood
Each publication runs an independent pipeline on a configurable cron schedule. The pipeline has four stages:
- RSS ingestion. Curated feed sources are scanned per publication. Each incoming item is deduplicated by URL hash — if we’ve seen the link before, it’s skipped.
- Scoring. Every item is scored by combining two signals: how recent it is, and how reliable its source is. Fresh content scores higher — relevance decays the older a story gets. Each source carries its own weight, so curated, high-signal feeds naturally outrank noisier ones. Layered on top is a per-publication wordlist: strong topic keywords push stories higher, off-topic terms filter them out entirely. The result is a ranked list tuned precisely to that publication’s niche.
- Curation. Items are filtered against a per-publication threshold. The top stories that clear the bar are selected for the edition.
- Writing & delivery. Claude (Anthropic’s LLM) writes a full article for each selected story using publication-specific prompts — tone, depth, and focus area are all configured per niche. The finished edition is assembled into HTML and delivered to subscribers via Mailgun.
Tech stack
The runtime platform is built on:
- FastAPI — Python backend serving the API, admin endpoints, and billing webhooks.
- Next.js 14 with TypeScript — frontend, server-side rendering, subdomain-based publication routing.
- PostgreSQL — primary database for publications, sources, items, editions, and subscribers.
- Redis — job queue between the scheduler and worker (RPUSH/BLPOP pattern).
- APScheduler — per-publication cron scheduling from database-stored schedules.
- Anthropic Claude (claude-sonnet-4-6) — article generation via the Anthropic API.
- Mailgun — email delivery (HTTP API only, no SMTP).
- Cloudflare — DNS and CDN for all *.agenticpost.io traffic.
- APISIX — API gateway handling wildcard subdomain routing.
- WireGuard — encrypted internal network between gateway and application hosts.
- Stripe — subscription billing (checkout + webhooks).
Built with
The platform itself was built using an AI-native development toolchain. No traditional dev team — just a human founder coordinating AI agents:
- KNTIC — manifest-driven agentic task orchestration. Every development task is defined as a JSON manifest and dispatched to AI coding agents. KNTIC manages the lifecycle from backlog to merge.
- OpenClaw — the AI assistant layer that designed the architecture, wrote task manifests, managed publication ingestion configs, and coordinated the entire build.
- Pi — the coding agent that implemented the manifests. Pi reads each task, writes the code, runs the tests, and marks the task ready for merge.
- Discord — the real-time communication layer between the human founder and the AI agents throughout development.
Hosting
All infrastructure runs on netcup, a German hosting provider. This includes the full application stack — gateway, backend, frontend, worker, scheduler, and database — the AI agent layer: OpenClaw, KNTIC, and the coding agents that built and continue to maintain the platform — as well as the self-hosted GitLab instance used for source control and CI/CD pipelines.