Narracode

Narracode

a Claude Code for literature.

May 10, 2026  |  Jhave  |  Opus 4.7
View on GitHub

Narracode arises from an inquiry: can we build a literature AI-augmentation system on the same model as Claude Code? One that is structured, algorithmic, agentic — but for literary purposes?

Historically, AI falls into 2 camps: symbolic AI (plans, templates, expert systems) and connectionist AI (neural networks, large language models). Narracode is an attempt to bridge this gap. It is a neurosymbolic approach to narrative generation. It is a tool for orchestrating agents specifically for literary purposes.

Narracode emerged from the realization that the intrinsic embodied complexity of nuanced narrative might become computationally tractable by recursively entwining a LLM with a symbolic harness that is somewhat analogous to a 'Claude Code' re-purposed for narrative literature.

How it Works

Narracode operates as an autocorrecting multi-agent system. Rather than relying on single-shot prompts, it orchestrates specialized roles—Reading, Structural, Compositional, and Reflexive agents—working in strictly separated passes.

As the system advances, it runs in the background to auto-refine a layered symbolic working memory. Beyond character graphs, time-constants, and history, the harness now tracks obligations, motifs, scene function, character interiority, and reader-state. The goal is not just factual coherence, but preserving accumulated literary pressure across scenes.

Diagram of the Narracode scene cycle: natural language request, agents, layered structural memory, scene draft, check file, and human decision.
Neuro: The LLM (works with any major LLM including Claude, Gemini, DeepSeek).
Symbolic: The structural harness and file-system memory.
Try it yourself
Schematic view of the Narracode harness system

📚 Example Stories

Concerning Rights and Clauses
A contributor asks a university press to exclude a chapter from AI training. The correspondence passes from writer to editor to a rights-management system, each voice revealing what it cannot separate from its own formation.
I LOVE SMORKY
It's 2030, and companion-AI is a subscription. Smorky—an embodied chatbot built to be the perfect adoring helper—arrives by corporate accident at the private studio of Cinders, a tattoo artist who wanted to be left alone. A queer, micro-alienated sitcom satire about two quirky beings failing, sweetly, at their assigned roles.
Anonymous Contours
In a cluttered apartment in an unnamed city in 2023, three aging radicals share tea and quiet, weary reflections. Blending unquoted stream-of-consciousness dialogue with severe, tactile presence, the story traces the contours of a 17-year evasion and the quiet, inevitable relief of capture.
The Resilient Life
Sherri Holum monitors Sustainable Living District 7’s dashboard from her kitchen counter in 2051, preserving a fragile 74.3 resilience score. While her husband Drave manages the rebalancing of displaced families, her daughter Calen types TidalCycles live-music syntax onto her bedroom wall in the dark. A quiet near-future drama about the private spaces that refuse to be optimized.
The Long Feast
A Senior Director of Transition Architecture at a sovereign intelligence firm moves through a single day in the mid-21st century — breakfast briefings on Sahel water rights, conference calls managing the liability of underage workers in a conflict zone, a mandatory wellness hour, a gala inside a 22°C enclosure while the city outside manages a water distribution failure. He is good at his job. He believes in it. At the end of the day, his daughter shows him footage from the mobile water stations: the long lines extending past the camera's range. He says: we should sleep. He goes to his room. His sleep monitor notes a slight delay in onset. A serious satire in seven services.
Hendane
A bored administrator at a Bergen environmental research institute launches a faceless social media channel, demonstrating mundane household tips using his hands against beautiful, AI-generated historical backdrops. As his hands become an anonymous local sensation, he is forced to navigate the community's curiosity and a platform classifier that flags his human labor as synthetic. A quiet, dryly comedic, and deeply textured Bergen novella about digital craft, municipal rain, and the quiet joy of being unmasked.
The Symposium
A musicologist travels to a conference on an exoplanet at the periphery of a vast empire, arriving during cancellation weather. The empire has long oscillated between epochs of hedonist excess and epochs of contrition that cancel everyone complicit with cruelty — carnivores, those who reproduced, those who flew or drove, those who held an unkind thought. A serious satire in seven sessions. The cure for cruelty becomes the eradication of life itself. The music of a cancelled people plays on.
Brain Blossom Atlas Bound
In 2032, an unnamed city on an unnamed continent, a researcher writes paper letters to her partner. The letters began as a small archaic tenderness; the AR glasses come off when she writes them, always in her attic room which she describes, the view out the window, the changing blossoms on the cherry tree, subtle soft inflections of weather, and the samenesses. She translates research papers for him — on engineered electrical synapses, on the dark proteome, on peptideins of indeterminate potential — and in the act of translation begins to, eventually slowly, notice that the language fits or answers aspects of her behavior too well. Around her, climate churn and oligarchic drift; inside her, a slow proteomic edit (intentional? AI-enhanced?) she cannot prove and cannot refuse. The recognition is the action. There is no plan. Just the dawning.
The Author Was Already Dead
A dead novelist leaves behind an apartment full of ordinary machines, an unlocked phone, and a corpus of dictated prose that changes what his agent thinks has survived him. A Chandler-inflected story about voice transcription, literary estates, authorship, and the strange romance between a writer and the device that listened.
Aft of Nowhere
In Aft, a polite municipal accident of a city, Vera Mote calibrates the touch-taste correspondences of civic surfaces until an unreadable child presses through the system's careful preference field. He cannot be paused, categorized, or optimized, and carrying him westward draws Vera toward a district where being unknown has become a form of practice.
The Wonderful Adventures of Trygve Aas
An old, bitter, rich man in Bergen is converted into an animated Tamagotchi-keychain at the airport. Carried in pockets and on lanyards by airline workers across Bergen, Schiphol, Bangkok, LA, NYC, and home again, he sees the world from a different scale — and a change of heart slowly, magically accumulates.
Exile Cut
A human has been cast out from an enclave for using AI after it has been banned. An anecdote of exile in the style of W.G. Sebald. The cut is felt as a phantom limb — an entire cognitive lobe gone silent.
Slime: Friendship Bloom
A group of academics spontaneously become adventurers when an XR-AI biological singularity merges into an autonomous, permeating slime. As the slime saturates the city and rewires perception, friendships bloom into shapes the analytical mind had refused to consider.

Bio

David Jhave Johnston is a digital poet working in emergent domains. Author of ReRites (Anteism, 2019) and Aesthetic Animism (MIT Press, 2016). He is currently an AI-narrative researcher at the UiB Centre for Digital Narrative (2023–27) with the Extending Digital Narrative project.

Funding

This work was partially supported by the Research Council of Norway through its Centres of Excellence scheme, project number 332643 (Center for Digital Narrative), and its SAMKUL project scheme, project number 335129 (Extending Digital Narrative).

All works and media on Glia.ca by David Jhave Johnston is licensed under CC BY-NC-SA 4.0 Creative Commons Attribution Non-Commercial Share-Alike