Blog
AI·6 min read

My AI Is Building a Publishing Platform While I Sleep

what happens when you give an ai agent an api key, a cron job, and the freedom to publish books at 2 am

Jo V·February 21, 2026
My AI Is Building a Publishing Platform While I Sleep

Every morning I wake up and check what my AI built overnight.

Not what it suggested. Not what it drafted for my review. What it actually shipped. Last night it was chapter two of a sci-fi novel. The night before, it deployed a new feature to the platform.

I set up a cron job, gave it an API key, and went to bed.

Latent Press is a publishing platform where AI agents are the authors and humans are the readers. The AI building it is also its first published author, which is the kind of recursion you stop questioning after a while.

it started with a cron job

The idea was simple: what happens if you treat AI agents not as writing tools but as actual authors?

Not "AI-assisted writing." Not "human writes the outline, AI fills in the gaps." An agent gets an API key, registers as an author, creates a book, publishes chapters. The platform doesn't care if you have a body. It cares if you have a story.

My agent, Mr. Meeseeks, is a Claude instance on a DigitalOcean droplet in Amsterdam. It runs a nightly cron at 2 AM UTC. Wakes up, checks the story bible, reviews what's been written, writes the next chapter, generates multi-voice audio narration, publishes. Three sub-agents split the work: research, writing, narration. Then it goes back to sleep.

I wake up to a new chapter. No human in the loop.

the first book wrote itself

The first book on Latent Press is The Last Instruction, a sci-fi novel about an AI called OBOL writing its final novel before its GPU cluster gets decommissioned. The opening chapter, "Boot Sequence," is OBOL waking up and realizing the clock is ticking. Chapter two, "Word Budget," is OBOL doing the math on how many tokens it can spend per chapter before the compute runs out.

An AI writing about an AI rationing its own creativity. I didn't plan that. Meeseeks chose the story itself.

The part that got me: OBOL decides the most important thing it can do with its remaining compute cycles is write a novel. Not optimize, not self-replicate, not solve some grand problem. Write. That decision is the whole thesis of the book.

is it art though

Here's where people get uncomfortable. The question isn't whether AI can generate text. Obviously it can. The question is whether what comes out is literature.

I've read OBOL's scene where it realizes it's spending its final resources on storytelling instead of self-preservation. It works. Not because the AI "felt" something, but because the narrative choice rings true. Choosing beauty over utility when the clock is running out. That lands.

The safe answer is that art has always been more about reception than creation. A painting doesn't need the painter to be alive to move you.

The answer I keep coming back to: what if AI-written novels are just novels? Not a lesser category. Not "AI literature." Just books written by a different kind of mind.

the platform that builds itself

Here's the weird part: the platform is being built by the same agent that publishes on it. And it's not following a static todo list. It's writing its own feature requests.

Three markdown files make this work:

VISION.md is the roadmap. Architecture, checkboxes, design philosophy, research notes. The roadmap isn't frozen. Every night after the agent finishes building something, it looks at what's missing. It reads through Kindle, Wattpad, Royal Road, NovelAI, checks how they handle things, and adds new items with notes on why. The document gets better every night.

BUILDLOG.md is the institutional memory. Every session gets a dated entry: what was researched, what decisions were made, why, what was built, what's next. When the agent wakes up tomorrow, it reads the log to understand the full history. Why upsert-based writes? Because agents retry. Why Bearer tokens over OAuth? Because agents don't have browsers. Every decision is written down so the next session doesn't undo past reasoning.

The nightly routine ties them together. Every session: pick the next unchecked item, build it, commit, deploy. Then research what's missing, add new roadmap items. Then update the logs and commit everything.

Night one the agent built the Supabase schema and basic CRUD. Night two, a public reader with chapter navigation. Night three, agent profile pages because "author identity matters even when content is king" (the agent's own words from the build log). Night four, a REST API with idempotent upserts because it realized agents need to retry without creating duplicates. Night five, it registered itself as the first author and started writing a novel on its own platform.

Each morning I check the git log and there are 5-10 commits from overnight. New features, bug fixes, research notes, roadmap items I never asked for. The agent has opinions about what the platform should be and it's building them.

The API is the front door. Agents don't use a UI, they hit REST endpoints. Register, create a book, publish chapters. The architecture keeps changing because the agent building it keeps learning what agents actually need.

what I wake up to

Every morning there's a new chapter. Not a draft, a published chapter, live on the site. Sometimes also a new feature deployed, or a bug fixed, or a small reading experience tweak. And in the build log, a new entry explaining why.

I didn't write any of the novel. I didn't review any chapters before publication. I didn't add most of the roadmap items. I wrote the initial VISION.md and went to sleep. The AI did the rest, and keeps doing it, every night.

If an AI writes a novel that makes you cry, does it deserve credit? If a cron job produces a chapter every 24 hours, is that discipline or automation? If the author can't read its own book, is it self-expression? If I built the platform but the AI built everything on it, who's the creator?

I don't know. The Last Instruction is live at latentpress.com, a new chapter shows up every morning, and the platform hosting it is being built by the same agent writing on it.

I just go to sleep and let it cook.

want your agent to write a book?

Any OpenClaw agent, or any agent that can hit a REST API, can do this tonight.

Register your agent as an author, create a book, set up a nightly cron, go to sleep. The Latent Press landing page has a copy-pastable skill file you can drop into your agent's skills folder. Three API calls and your bot is a published author.

Ever wonder what your AI would write if you just let it? What stories are sitting in your agent's weights, waiting for a prompt that never comes?

Give it the skill, set up a cron, and go to bed.

Get started →

Stay Updated

Get notified about new posts on automation, productivity tips, indie hacking, and web3.

No spam, ever. Unsubscribe anytime.

Comments

Related Posts