<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Saltmu</title>
    <description>The latest articles on DEV Community by Saltmu (@saltmu).</description>
    <link>https://dev.to/saltmu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3755796%2Fffdf7a19-079b-4096-ad38-87d6fc29fdcf.png</url>
      <title>DEV Community: Saltmu</title>
      <link>https://dev.to/saltmu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/saltmu"/>
    <language>en</language>
    <item>
      <title>Hacking the Narrative: How I Used NotebookLM to Write a Novel Where the AI "Human-to-Machine Transcoding" Chapter by Chapter</title>
      <dc:creator>Saltmu</dc:creator>
      <pubDate>Fri, 06 Feb 2026 02:52:38 +0000</pubDate>
      <link>https://dev.to/saltmu/hacking-the-narrative-how-i-used-notebooklm-to-write-a-novel-where-the-ai-loses-humanity-chapter-2phm</link>
      <guid>https://dev.to/saltmu/hacking-the-narrative-how-i-used-notebooklm-to-write-a-novel-where-the-ai-loses-humanity-chapter-2phm</guid>
      <description>&lt;h2&gt;
  
  
  The Concept: "Textual Gradation"
&lt;/h2&gt;

&lt;p&gt;As an engineer and an author, I asked myself a question:&lt;br&gt;
&lt;strong&gt;"Can I simulate the Human-to-Machine Transcoding not just through plot, but through the texture of the text itself?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most people use AI to write "clean" text. I wanted the opposite. I wanted to see if I could use Google's &lt;strong&gt;NotebookLM&lt;/strong&gt; and &lt;strong&gt;Gemini 1.5 Pro&lt;/strong&gt; to create a story where the prose starts rich and emotional, but gradually degrades into mechanical, logical, and cold output as the protagonist mechanizes his own body.&lt;/p&gt;

&lt;p&gt;This is the "Post-Mortem" of my experimental novel, &lt;em&gt;Clockwork Orpheus&lt;/em&gt; (Japanese: 機巧のオルフェウス).&lt;/p&gt;

&lt;p&gt;Try generating your own text using &lt;a href="https://notebooklm.google.com/notebook/b7334e11-5f4f-418f-b1d2-4c435bf99668" rel="noopener noreferrer"&gt;this Shared Notebook&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://notebooklm.google.com/notebook/b7334e11-5f4f-418f-b1d2-4c435bf99668" rel="noopener noreferrer"&gt;https://notebooklm.google.com/notebook/b7334e11-5f4f-418f-b1d2-4c435bf99668&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You only need to execute one command in the chat:&lt;br&gt;
&lt;strong&gt;"Write Episode X (1-32) in English."&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The Architecture
&lt;/h2&gt;

&lt;p&gt;To achieve a consistent yet evolving narrative over 50,000 characters (approx. 12 hours of work), I didn't rely on a single long chat context. Instead, I treated the novel as a software project using &lt;strong&gt;NotebookLM&lt;/strong&gt; as my RAG (Retrieval-Augmented Generation) engine.&lt;/p&gt;
&lt;h3&gt;
  
  
  The Stack
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Engine:&lt;/strong&gt; Gemini 1.5 Pro (via NotebookLM)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context Window:&lt;/strong&gt; 1M+ tokens (handling all setting docs)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Input:&lt;/strong&gt; 5 separate "Source Files" acting as databases.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  The Source Code (Context Data)
&lt;/h3&gt;

&lt;p&gt;I uploaded the following 5 files to NotebookLM. Think of them as the database schema for the story.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Writing Policy (The "Config" File):&lt;/strong&gt; &lt;em&gt;Crucial.&lt;/em&gt; This document contains strict style rules.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Plot Structure:&lt;/strong&gt; The skeleton of the story.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Story Overview:&lt;/strong&gt; World-building rules to prevent hallucinations.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Character Sheets:&lt;/strong&gt; Detailed profiles.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Glossary:&lt;/strong&gt; Tech terms and unique nouns.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  The Hack: Dynamic "Writing Policy"
&lt;/h2&gt;

&lt;p&gt;The core trick lies in the &lt;strong&gt;"Writing Policy"&lt;/strong&gt;. I didn't just tell the AI to "write a story." I defined specific &lt;strong&gt;"Sentiment Parameters"&lt;/strong&gt; for each chapter.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Writing Policy Example&lt;/span&gt;
&lt;span class="c1"&gt;# Note: For English generation, replacing this with "Use Latinate vocabulary" or "Use passive voice" is effective&lt;/span&gt;

&lt;span class="na"&gt;Phase_1&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;target_chapters&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;1&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;2&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
  &lt;span class="na"&gt;mode&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Emotional&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Mode"&lt;/span&gt;
  &lt;span class="na"&gt;rules&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;DO&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Heavily&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;use&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;modifiers&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;related&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;to&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;the&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;five&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;senses&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;(smell,&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;temperature,&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;discomfort)."&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Actively&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;use&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;metaphors&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;for&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;psychological&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;descriptions."&lt;/span&gt;
    &lt;span class="na"&gt;DONT&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[]&lt;/span&gt;

&lt;span class="na"&gt;Phase_3&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;target_chapters&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;6&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;7&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
  &lt;span class="na"&gt;mode&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Mechanical&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Mode"&lt;/span&gt;
  &lt;span class="na"&gt;rules&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;DO&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Increase&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;the&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;ratio&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;of&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Kanji&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;and&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Katakana&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;characters."&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Use&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;report-style&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;phrasing."&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Assert&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;only&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;'facts'."&lt;/span&gt;
    &lt;span class="na"&gt;DONT&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;All&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;metaphorical&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;expressions&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;(e.g.,&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;'like&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;a...',&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;'seems&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;like...')."&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;All&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;speculative&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;expressions&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;(e.g.,&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;'might&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;be...')."&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For the early chapters, the policy instructed:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Focus on sensory descriptions. Use metaphors related to heat, pain, and longing. Prioritize the protagonist's internal emotional monologue."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;As the story progressed, I updated the instructions (or prompted NotebookLM to reference specific "Phases"):&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Reduce sensory adjectives by 50%. Focus on objective facts. Describe events with logical causality rather than emotional reaction."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;By the final chapter, the instruction was:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Eliminate all metaphors. Use short, clipped sentences. Output must be strictly observational, like a system log."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The Result
&lt;/h2&gt;

&lt;p&gt;The AI successfully executed this "Textual Gradation."&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Chapter 1:&lt;/strong&gt; Full of "pain," "heat," and "love." The sentences were long and winding.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;The moment of waking always felt like the gasping breath before drowning.&lt;br&gt;
My lungs demanded oxygen, and my heart reluctantly resumed its pulse. That lingering discomfort against the physiological phenomenon was the only proof I was still alive.&lt;br&gt;
2046, Tokyo. The morning sun filtering through the gap in the blackout curtains looked dirty, like stage lighting meant only to illuminate dust. I reached for the left side of the bed. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Chapter 10:&lt;/strong&gt; The prose became dry. The protagonist stopped "feeling" pain and started "detecting" damage.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Mid-layer area "Labyrinth Engine District." Time elapsed since entry: 14 hours. Rest: None. Complex three-dimensional structures and intermittent combat are draining resources.&lt;br&gt;
Remaining ammo: 12 rounds average per person. Food: 2 solid bars. Water: 300ml remaining. Depletion is imminent.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Finale:&lt;/strong&gt; A chillingly efficient, mechanical text that perfectly &lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;mirrored the protagonist's complete loss of humanity.&lt;br&gt;
Layer transfer: Complete. Environmental data: Updated.&lt;br&gt;
Visual information: White. Organic textures completely deleted. &lt;br&gt;
Walls, floor, ceiling—all constituted by white luminescent bodies. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Why This Matters for Developers
&lt;/h2&gt;

&lt;p&gt;This experiment proves that &lt;strong&gt;"Style" is just another parameter.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We often treat LLMs as black boxes that output "average" text. But by architecting your context (RAG) and treating your prompts as dynamic configuration files, you can control the &lt;strong&gt;"Aesthetics"&lt;/strong&gt; of the output with engineering precision.&lt;/p&gt;

&lt;p&gt;I have released the full source (Japanese) on my note, including the NotebookLM link where you can test the generation yourself.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Original Source (Japanese):&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://notebooklm.google.com/notebook/b7334e11-5f4f-418f-b1d2-4c435bf99668" rel="noopener noreferrer"&gt;Shared Notebook on NotebookLM&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.google.com/document/d/1QN3yOcYSzRPEuOn3En5r-Qky8c5862aHBaMTPgguzbQ/edit?usp=sharing" rel="noopener noreferrer"&gt;Writing Policy (Google Document)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.google.com/document/d/1vl0KXXEgF56eHR7HCX9fEWNayjUSsTejZlkieojopOc/edit?usp=sharing" rel="noopener noreferrer"&gt;Prot Structure (Google Document)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.google.com/document/d/1vl0KXXEgF56eHR7HCX9fEWNayjUSsTejZlkieojopOc/edit?usp=sharing" rel="noopener noreferrer"&gt;Story Overview (Google Document)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.google.com/document/d/1QN3yOcYSzRPEuOn3En5r-Qky8c5862aHBaMTPgguzbQ/edit?usp=sharing" rel="noopener noreferrer"&gt;Character Sheets (Google Document)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;strong&gt;The Novel (Japanese):&lt;/strong&gt; &lt;a href="https://kakuyomu.jp/works/822139844401715752" rel="noopener noreferrer"&gt;&lt;/a&gt;&lt;a href="https://kakuyomu.jp/works/822139844401715752" rel="noopener noreferrer"&gt;https://kakuyomu.jp/works/822139844401715752&lt;/a&gt;
&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;Note on the Source Material: The original setting documents are kept in Japanese. This is because the story involves complex metaphysical metaphors and cultural nuances related to the "Orpheus" myth that are difficult to translate directly without losing their intended literary context. &lt;/p&gt;

&lt;p&gt;If you are interested in "Literary Engineering," give this method a try.&lt;/p&gt;

</description>
      <category>generativeai</category>
      <category>writing</category>
      <category>gemini</category>
      <category>notebooklm</category>
    </item>
  </channel>
</rss>
