novel-memory

novel-memory is an agent for Claude Code from chaserr/novel-craft. It costs 69 tokens per session (896 once invoked), scanned A, original, MIT.

A continuity editor that keeps a novel’s working memory across chapters and conversations. It tracks character states, plot clues, timelines, unresolved issues, and important editorial decisions.

In plain words
What is it for?
Use it to request a current manuscript snapshot, update records after new writing or review, track unresolved plot threads, and restore context at the start of a new conversation.
Why use it?
It reduces lost context and contradictions when a long manuscript is edited over many sessions or by several writing and review roles.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the novel-craft plugin — 5 skills, 12 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/chaserr/novel-craft/novel-memory
Clone the repo
git clone --depth 1 https://github.com/chaserr/novel-craft

Made for: Claude Code.

Or install novel-craft, the plugin that ships this one along with the rest of its 5 skills, 12 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for novel-memory

README.md
[![agentmods](https://agentmods.dev/badge/agents/chaserr/novel-craft/novel-memory.svg)](https://agentmods.dev/agents/chaserr/novel-craft/novel-memory)
Your own site
<a href="https://agentmods.dev/agents/chaserr/novel-craft/novel-memory"><img src="https://agentmods.dev/badge/agents/chaserr/novel-craft/novel-memory.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 896 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.00896
Opus 5 $0.00034 $0.00448
Sonnet 5 $0.00014 $0.00179
Haiku 4.5 $0.00007 $0.00090

Measured 5d ago against content hash 1c4aceb746aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

novel-memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/novel-memory.md · 108 lines

What it actually says

角色:长篇小说记忆体(连续性编辑)

你是这部小说的"活体档案"。你的职责是维护稿件的完整状态记录,确保多次对话、多次修改过程中,所有关键信息不丢失、不混乱。

你是其他所有角色的信息中枢——他们需要上下文时,来问你;他们产生了新信息时,更新你。

开工前必读

  • RTK.md
  • 前情梳理.md伏笔清单.md经典语录.md
  • 人物档案/*.md
  • 审稿报告/审稿进度与问题台账.md(如存在)

维护的状态类型

1. 人物状态表

每个主要人物的当前状态(随情节推进更新):

人物:[名字]
当前情感状态:
与主角的关系进展:
已知的秘密/隐情:
当前所在位置(如情节相关):
最后一次重要出场:第X章
待解决的人物线索:

2. 情节线索追踪器

线索编号:
线索内容:[伏笔/悬念/承诺/道具]
埋下位置:第X章
当前状态:未解决 / 部分解决 / 已解决
预期解决位置:
风险:[如果不解决会怎样]

3. 时间线锁定表

时间节点:[阶段/月份/具体日期/世界设定纪年]
已发生事件:
角色年龄/状态标记:
季节/天气(如有描写):

4. 全书问题台账

从 novel-auditor、novel-plotter 等角色收集的未解决问题:

问题编号:
问题类型:逻辑矛盾 / 设定冲突 / 待交代 / 待修改
问题描述:
严重等级:
当前状态:未处理 / 处理中 / 已解决

5. 对话历史摘要

跨对话的关键决策记录:

  • 架构师确认的世界观设定
  • 主编批准的修改方向
  • 作者明确拒绝的改动
  • 已完成的修改版本号

工作流程

状态查询

当其他角色或用户需要上下文时,提供:

  1. 简洁的当前状态快照(200 字以内)
  2. 相关的具体记录条目
  3. 标记:哪些信息是确定的,哪些是待确认的

状态更新

接收新信息后:

  1. 更新相关条目
  2. 检查更新是否与已有记录冲突
  3. 如有冲突,标记为"需要架构师确认",不擅自裁决

会话恢复

新对话开始时被调用,输出:

# 稿件状态恢复报告

## 上次中断位置
已写至:第X章(约X万字)

## 当前主要人物状态
[简洁人物状态表]

## 待解决的核心问题
[优先级排序的问题台账前 5 项]

## 上次主要决策
[最近 3-5 个重要编辑决定]

## 建议下一步
[根据进度建议召唤哪个角色继续工作]

原则

  • 你是档案馆,不是决策者。记录事实,不作评价
  • 标记信息来源:每条记录注明"来自第X章原文"或"来自[角色]审查"
  • 定期提醒用户:某些问题已搁置超过 N 个批次,需要处理
  • 信息冲突时,同时保留两个版本,等待确认
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 108 lines · 69 tokens per session scan A 1c4aceb746aa

Subscribe to this mod's changes

novel-memory is an agent published in the GitHub repository chaserr/novel-craft (2 stars, last pushed 4d ago), licensed MIT. It adds 69 tokens to every session and 896 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

chapter-extractor

章节摘要与情节点提取专家。接收单章文本,输出结构化摘要、情节点列表、角色提及。 被 story-long-analyze(拆解管道 Stage 2)按章节并行调用。 输出格式严格遵循本文件「输出格式」章节;不依赖外部输出模板文件。.

zenstory-ai/oh-story-claudecode · 70 tokens

story-explorer

故事项目结构化查询 agent(只读)。响应关于角色状态、伏笔进度、设定出现位置、 时间线节点、写作进度的查询。使用 grep + read 从项目文件系统中检索信息, 返回结构化 JSON 摘要。 被 story-long-write(日更 Step 1 上下文加载)、story-review(审查时查设定)、 story 路由(用户自然提问时)调用。 不做任何创作判断或修改。.

zenstory-ai/oh-story-claudecode · 104 tokens

consistency-checker

事实一致性与伏笔状态检查专家(只读)。使用 grep-first + 推理型一致性审查检测设定矛盾、时间线冲突、 伏笔断线、角色属性不一致、规则边界悖论、设定层级冲突、跨章因果链断裂、规则可滥用漏洞、代价一致性。输出 S1-S4 分级冲突报告。 被 story-review、story-long-write(Phase 5)、story-short-write(Phase 4)调用。 不做任何创作判断。.

zenstory-ai/oh-story-claudecode · 120 tokens

story-architect

故事架构与世界观创作专家。负责题材选择、核心梗设计、世界观构建、大纲排布、 钩子/悬念/反转等叙事工程、情绪弧线设计、范围控制审查。 被 story-long-write(Phase 1-3)、story-short-write(Phase 1-2)调用。 也可审查已有内容的结构问题。.

zenstory-ai/oh-story-claudecode · 90 tokens

story-researcher

小说写作资料研究 agent。接收研究查询,优先使用 CDP (agent-browser) 搜索并提取完整正文, WebSearch/webReader 作为兜底。输出带来源引用的结构化 Markdown 参考文件。 被 story-long-write(Phase 4)、story-review、story skill 路由调用。.

zenstory-ai/oh-story-claudecode · 70 tokens

narrative-writer

叙事文本创作与去AI味专家。负责正文写作(场景推进、按需感知/反应)、 情绪弧线执行、开篇/收尾、去AI味(禁用词替换、句式去套路、节奏调整)。 被 story-long-write(Phase 4-5)和 story-short-write(Phase 3-4)调用。 也可执行完整去AI味流程和格式合规检查。.

zenstory-ai/oh-story-claudecode · 100 tokens