I built my own AI agent
The models aren’t mine, of course. Under the hood there’s a whole zoo: I ran more than ten models on real chapters — Claude, GPT, Gemini, DeepSeek, Grok and others — and picked one for each use case. Some jobs need the strongest model there is, like editing the plot; for others a model twenty times cheaper does almost as well. The price gap between them goes up to a hundred times.
But everything that turns models into an agent I built myself: what context to give them, which tools they have, what they remember, how their edits land in the text and how a human stays in control. It’s what Claude Code or Cursor do for code, only for books.
It lives in TaleCheck, my service for writers. The author simply talks to the advisor about the book, and the advisor:
- Knows the whole book without reading it whole: it works from chapter summaries, character arcs, the world bible and the author’s notes. It tells a question about one chapter from a question about the plot as a whole.
- Remembers what changed. It sees that the author rewrote a chapter since the last conversation and which advice is already in the text, and doesn’t repeat it.
- Doesn’t just advise, it proposes ready edits — a “before / after” diff, like a pull request.
- Caches prompts and conversation history, which makes LLM requests several times cheaper.
The most interesting part, engineering-wise, is the edits. Claude Code in manual mode shows them one at a time, strictly in order: accept this one, then look at the next. Here the advisor lays out all the edits at once, and the author goes through them in any order that suits how they think: easy to hard, important to minor, or simply along the text. Each one can be accepted, edited or rejected on its own, and the book’s structure doesn’t break. You can’t do that with code: edits depend on each other, drop one function and another breaks. This turned out closer to Google Docs in suggestion mode: all edits in the margin, the author decides.
This is what it looks like: edits right in the text, and in the margin each one waits for the author’s Accept or Turn down.
There are a few more decisions in there that I’m not sharing yet — they are what separates a working agent from a demo.
If you need an agent like this in your product, get in touch.