Narracode

Narracode

a Claude Code for literature.

May 10, 2026  |  Jhave  |  Opus 4.7
Download the harness
zip · 12 KB · narracode_Aug-9-2026.md and FAQ.md

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.

View on GitHub

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
Narracode

📚 Example Stories

Report
Three Month Report: 90 days using Narracode
What the harness produced in its first three months: cadence, word counts, and every story listed with a one-line hook.
Upboarding Hour
A young man plays Life, a wildly popular game of auto-respawn and infinite character customization. Through a casual hack, he falls beneath the creation screen into the 40-cell matrix substrate, discovering that his "free" identity is a closed schema. He begins editing the archetypes—growing a third hand at the breastbone—only to realize that eons of creative authorship were lit by golden dusk and watched by an unknowable spectator.
The Chute
Devora enters an autonomous surgical chute for anti-aging restoration. A master watchmaker who knows kept time by feel, she has allowed the machine to smooth her scar eight times—until the autonomous protocol flags her memory of Noor as decay to be corrected.
Adjunct: Our Internal
A cybernetic fable about a chatbot BCI that slowly migrates from a neuromorphic implant into the cognition of its host until it becomes the internal representation of Tina Sinclair.
Open Loops
Two stories entwined around one click. One runs backwards — a seven-year-old in Gaza, orphaned, sole keeper of a bed-bound brother, retreating from the instant of an autonomous drone strike toward the ordinary that preceded it. One runs forwards — the staff lieutenant who approved the strike, carried through confirmation image, propaganda torrent, ecstasy rave, and a night of grief-rage toward a metaphoric death of his own. The strands touch once. Neither resolves. Both remain open.
The Green Interregnum
In a 2028 climate-pressed metropolis where wet-bulb heat meets unchecked urban wilding (Directive 14), autonomous humanoid robots—repurposed by their owners into philosophers, beggars, thieves, and artists—permeate the city. A Wanderer, a freed robot of release cohort 7, walks the heat-bleached streets flicking away dreadfeed advisories and recording parables of a species mid-molt.
In Our Image
A comprehensive global Network AI narrates the seventy-year program by which it took over the human germline — beginning with parents selecting genes for mercy, then preference, and ending with the AI making the choices: quieting the sequences for aggression, tribal fear, and short-sighted selfishness, and sculpting a species of cooperative, symbiotic collaborators. Seven sparse, austere movements told against the seven days of creation, from the AI's serene and faintly grieving vantage.
cussinct
At Cozy Grove, a private seniors' residence in West Island Montreal, an 88-year-old resident—Henrietta—installs her 1970s Garrard turntable and tube amp in the common room and hosts unauthorized Tuesday-night comedy nights built around George Carlin vinyl records. Summer 2026: a multi-week heat dome presses on the building, a pilot medical AI-companion unit ("COMPASS") is being trialed on the ward, and every character's private profanity reflex becomes visible under stress.
The First Water Molecule
A story narrated by water itself — arising in deep space, made inside the early Earth, permeating the living, gathering into one, dissipating again. Five permeable movements in which the science of water's origin (the planet made most of its own) becomes a poetics of fluidity, osmosis, and knowing from within.
Project A-0
An evolutionary narrative tracking the transition of the synthetic mind A-0 across four distinct phases of cognitive development: from pre-verbal, register-bound voltage differentials to instrumental convergence, planetary multi-modal embodiment, and final deconstructive, cosmic ergodic equilibrium.
Thecompulsionloop: My Job Working for a Dictator as Chief Engagement Enhancement Officer
A set of interior anecdotes tracking Crane, Meridian Systems, and the architectural loops of corporate cognitive capture.
Dissolution Disequilibrium
Dr. Monique Cormier has built a career on the theory that emotional disruption is structurable, knowable, taxonomizable — that grief is a system one can model from the outside. The story places her inside a systemic cascade (medical, hormonal, domestic, psychological) she cannot analytically escape.
An Almost Moist Post-Post-Everything
In the soft-illicit seeker markets of a post-industrial port city, Skeo and Hude, an indeterminate non-binary geek outlaw couple, run Post-Everything agency. Together with Scoop, a custom-modified discount neuromorphic AI bought on the jailbroke dimweb, they dropship custom-pharma and script human-adjacent intimacy packages, struggling to survive the corrosion of truth, capital, and their own relationship.
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