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

📚 Example Stories

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