cd /news/large-language-models/what-if-the-problem-with-ai-writing-… Β· home β€Ί topics β€Ί large-language-models β€Ί article
[ARTICLE Β· art-147701] src=dev.to β†— pub= topic=large-language-models verified=true sentiment=Β· neutral

What if the problem with AI writing novels isn't context length, but how we're using memory?

A developer argues that the difficulty of getting AI to write long-form fiction is an architecture problem rather than a context-length limitation, proposing that novels be treated as structured projects with retrievable state instead of one giant conversation. The approach separates story canon from raw ideas, applies version-control-style tracking to plot and character facts, and supplies the model only the relevant information for the chapter at hand.

by read8 min views2 publishedOct 8, 2026

I keep seeing the same argument whenever people talk about AI writing long-form fiction:

AI can't really write a 100,000-word novel because eventually the context becomes too large, details get lost, and the model starts contradicting itself.

And I think we might be looking at this as an LLM problem when it's actually an architecture problem.

Hear me out.

We've already solved something surprisingly similar in software engineering.

If I'm working on a 200,000-line codebase, I don't need to hold the entire codebase in my head every time I want to fix one function. The project has files, folders, documentation, dependencies, state, tests, Git history, configuration, and architecture decisions.

I pull the information I need, make a change, test it, and move on.

The entire codebase exists.

But I don't need the entire codebase in my active working context at the same time.

So why does AI-assisted writing often work more like this?

"Here, Claude. Here's the entire 100,000-word novel. Now remember all of it forever and write Chapter 47."

πŸ˜‚

Maybe we need to stop treating a novel as one giant conversation.

Instead of thinking about a novel as one enormous block of text, imagine treating it as a structured project.

The chapters are the actual story.

Then you have separate information about:

The important distinction is that the model doesn't need to read everything every time.

It needs the right information for the current task.

For example, if I'm writing Chapter 48, Claude probably doesn't need Chapters 1–47 sitting in its context. It might need:

That's a much smaller context.

But the information from Chapter 12 hasn't disappeared.

It's simply stored somewhere else and retrieved when it's relevant.

That's a fundamentally different way of thinking about the problem.

This is where I think things get much more interesting.

Imagine I'm halfway through a novel and suddenly think:

"Wait... what if John's brother is actually working for the antagonist?"

That's not canon.

It's just an idea.

So the system should treat it differently from an established fact.

Maybe it starts as a raw idea.

Later, I develop it:

"Actually, that would explain why John disappeared in Chapter 7."

Now it's becoming a serious possibility.

Eventually I decide:

"Yep. This is canon."

At that point, the system should update the relevant character relationships, plot threads, and timeline.

That's basically version control for story ideas.

And I think that's something current AI writing workflows are missing.

This might be one of the most important parts.

A writing system shouldn't treat these two statements as equivalent:

"Maybe Sarah has a sister."

and:

"Sarah has a sister named Emily."

The first is an idea.

The second is established canon.

There should probably be a distinction between things that are:

That gives the AI something incredibly important:

a distinction between possibilities and facts.

One of the most frustrating things about working with AI on a long project is when an idea casually mentioned 30 chapters ago suddenly gets treated as established fact.

A human writer understands:

"I was just brainstorming."

The model may not.

A structured project could make that distinction explicit.

You could have a persistent profile for every major character.

Not just:

"Sarah is a detective."

But something much richer:

And importantly, those answers shouldn't necessarily be static.

Sarah in Chapter 5 might be very different from Sarah in Chapter 50.

So instead of telling Claude:

"Remember Sarah."

You could give it:

"Here's Sarah's current canonical state as of Chapter 48."

That's much more useful.

The system isn't trying to make the model permanently remember Sarah.

It's maintaining Sarah's current state and giving the model the relevant version when needed.

This is where I think AI-assisted fiction could become genuinely interesting.

Before committing a chapter, the system could run something resembling a test suite.

Imagine Claude finishing Chapter 48 and the system checking:

Continuity check

Sarah says she has never been to Paris.

Chapter 14 says Sarah lived in Paris for three years.

Conflict detected.

John knows about the murder.

Current plot state says John shouldn't know this yet.

Knowledge-state conflict detected.

Sarah's age has changed from 29 to 32.

Character-state conflict detected.

The gun mentioned in Chapter 48 was destroyed in Chapter 21.

Object continuity conflict detected.

That's basically a novel compiler.

And I actually think this could be incredibly useful.

Because a bigger context window doesn't automatically solve continuity.

You could give a model 500k tokens and hide one critical fact somewhere in the middle.

The model may still fail to use it correctly.

The problem isn't necessarily:

"Does the AI have access to the information?"

It might instead be:

"Can the AI reliably identify which information matters right now?"

That's a very different problem.

I think these three concepts get mixed together way too often.

Context is the information the model currently sees.

Memory is information about the project that can be retrieved when necessary.

Source of truth is what has actually been established in the novel.

Those aren't the same thing.

The actual chapter can be the source of truth.

A character profile can be a structured representation of that truth.

A retrieved memory can provide relevant information from the project.

And the active context can contain only what the model needs right now.

That separation seems much more scalable than trying to make the context window itself responsible for everything.

This is another place where the software analogy becomes interesting.

Writers don't just have one version of a story.

They have:

Imagine being able to ask Claude:

"Show me all the abandoned plot ideas involving John's brother."

Or:

"Why did we decide that Sarah couldn't know about the letter yet?"

"Compare the current ending with the ending from Draft 2."

That's much closer to how humans actually work on large creative projects.

And it's also much closer to how we already manage complex software projects.

You don't throw away the old code every time you change something.

You keep history.

You keep state.

You keep a source of truth.

You create branches when necessary.

Why shouldn't long-form AI writing work the same way?

There's another distinction I'd make.

A lot of current AI systems essentially ask:

"What information looks relevant to this prompt?"

But for a large creative project, I think the better question is:

"What project state is required to perform this task correctly?"

If I'm asking Claude to write Chapter 48, the system should know that it probably needs the previous chapter, the current character states, active plot threads, relevant continuity information, the current timeline, and the established writing style. It probably doesn't need a rejected plot idea from Draft 2.

It doesn't need a deleted scene.

It doesn't need an unrelated subplot from a completely different part of the book.

The goal isn't to retrieve more information.

It's to retrieve the right information.

The same architecture could work for almost any large creative project.

A screenplay.

A game.

A comic universe.

A research project.

A long-running YouTube channel.

A technical documentation project.

Even software development itself.

The underlying problem is the same:

The project is larger than the model's useful working context.

So instead of constantly increasing the context window, perhaps we should get better at managing the information that enters it.

This is what I'm starting to wonder.

Maybe the future isn't simply:

LLM + giant context window

Maybe it's:

LLM + project state + retrieval + structured memory + validation

The model becomes the reasoning engine.

The project system becomes the persistent memory.

And the application decides what information the model actually needs for each operation.

In other words, instead of asking the model to remember the entire book, we build a system that helps the model navigate the book.

I don't think the answer to long-form AI writing is necessarily:

"Give the model a 5-million-token context window."

Because at some point the book gets bigger.

Then there are sequels.

Then character notes.

Then research.

Then alternate drafts.

Then deleted scenes.

Then worldbuilding.

Then 400 random ideas I had at 3 AM.

Eventually you're going to have a giant pile of text and tell the AI:

"Remember all this."

That's not really a memory system.

That's a very expensive folder.

I'd rather have something closer to:

Novel β†’ structured project memory β†’ relevant context β†’ Claude β†’ continuity check β†’ updated story state

The novel remains the source of truth.

The memory system keeps track of what matters.

The context is assembled for the task at hand.

Claude does the reasoning and writing.

Then the resulting changes get fed back into the project state.

Git + RAG + structured memory + an LLM + a novel.

And honestly, that is starting to feel less like a workaround and more like the architecture we'd actually want.

I'm curious if anyone is already doing something along these lines with Claude Projects, Claude Code, Obsidian, RAG, custom MCP servers, or something completely different.

Because if someone has already built "Git for novels", I desperately want to know about it.

── more in #large-language-models 4 stories Β· sorted by recency
── more on @claude 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/what-if-the-problem-…] indexed:0 read:8min 2026-10-08 Β· β€”