Pagekin: An open-source agent for writing full novels without plot holes
Pagekin is a newly open-sourced AI novel-writing agent designed to prevent story drift and broken character lore. Instead of dumping entire books into context, it structures world-building, character files, and chapter blueprints to load context on demand, offering granular scene rewrites and revision diffs. The tool is free on GitHub, but users must bring their own model API keys.

Pagekin is a newly open-sourced AI novel-writing agent designed specifically for long-form fiction, web novels, and scripts. Its main mission is to kill the two biggest headaches in AI creative writing: broken character lore and plot contradictions.
When you use standard chat models to write long stories, they quickly suffer from context drift. Characters forget who they are, and plotlines wander off into nowhere. Pagekin fixes this by introducing an end-to-end author workflow spanning world-building, outline planning, chapter-by-chapter generation, and granular revision diffs.
How it keeps the lore straight
Instead of dumping your entire book into the model context window, Pagekin manages your project through structured cards. It tracks character sheets, relationships, world rules, active plot threads, and past scene recaps separately.
When generating a chapter, the agent loads only the context needed for that specific scene. Authors fill out a chapter blueprint before drafting, defining the scene objective, character actions, central conflict, and cliffhangers. From there, the model drafts the prose based on that structural blueprint. You can also import existing manuscripts to expand, rewrite, or continue the narrative.
For micro-edits, Pagekin lets you highlight a specific paragraph to generate a continuation preview, or convert descriptive prose directly into dialogue. You inspect the output first and only apply it if it matches the character's voice.
Reviewing text like a code pull request
The revision workflow works much like a developer review. After drafting, the tool generates an editorial critique flagging continuity issues, character status mismatches, or conflicting honorifics.
Authors have total control over what gets touched. If the tool suggests five edits, you can select four and discard the fifth. Once the AI revises the selected points, Pagekin displays a split-screen diff showing original text versus the rewrite, allowing you to accept line-by-line, take the entire edit, or jump in with manual edits.
Setup and access
Pagekin is open-source and free to download from GitHub. However, it is an agent framework, not a standalone model provider.
To make it work, you must plug in your own model API keys. Using cloud commercial APIs will incur regular token costs with your chosen provider, and project text will be sent to their servers accordingly.
Why it matters
If you write serial fiction, screenplays, or interactive novels, Pagekin is well worth checking out. Most AI writing tools fail because they treat novel writing as a single massive prompt, which quickly falls apart after a few thousand words.
Pagekin takes a smarter, modular engineering approach: it forces story goals before drafting and gives authors line-level diff control during revisions. It will not write a bestseller on autopilot, but it turns AI from an erratic hallucination machine into a disciplined, obedient writing assistant.
Sources (2)
- orz.md(opens in a new tab)Originalorz.md
- blog.csdn.net(opens in a new tab)Reportblog.csdn.net