Overview
Set up Claude Code subagents for drafting, character continuity, timeline checks and line editing, all reading the same folder of Markdown story files for a long novel.
Problem or Objective
More in Content and Media
AI Agents and Models
Tools and Integrations
- Tools
- Claude Code
- Prerequisites
- Claude Code (most surfaces need a Claude subscription or Anthropic Console account; the Terminal CLI, VS Code and JetBrains also support third-party providers), and a novel kept as Markdown files in one folder.
How It Works
Create a project folder with one Markdown file per chapter and shared reference files: a character sheet, a timeline, a setting guide and a style note. Add a CLAUDE.md that tells Claude Code where these files are and that it must not overwrite chapters without asking. Then create project subagents in .claude/agents/: a drafter that returns a draft scene from your outline in the chat, a continuity checker that compares a chapter with the character sheet, a timeline checker that flags dates and ages that do not fit, and an editor that suggests line edits. Run each role on one chapter at a time, read its notes or draft, and decide yourself which changes go into the chapter and which facts update the reference files.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude Code.
- Connect the toolsConnect the tools this workflow relies on: Claude Code.
- Check the prerequisitesClaude Code (most surfaces need a Claude subscription or Anthropic Console account; the Terminal CLI, VS Code and JetBrains also support third-party providers), and a novel kept as Markdown files in one folder.
- Gather your detailsCollect what the prompt asks for: Working title, Folder of chapter files, Shared reference files, Roles to create.
- Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.
Practical Starter Prompt: Create the novel's subagents
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
This folder holds my novel [Working title]: chapters in [Folder of chapter files] and reference files [Shared reference files]. Create project subagents in .claude/agents/ for these roles: [Roles to create]. Each one reads the reference files, works on one chapter at a time, and returns notes (the drafter returns a draft scene) in the chat instead of editing chapters. Show me each subagent file and wait for my approval before saving it. Never change a chapter or a reference file without my explicit approval.Approve each subagent file before it is saved, and decide yourself which suggested edits go into chapters and reference files.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. Anthropic's subagent page says each subagent runs in its own context window with a custom system prompt, specific tool access and independent permissions, and that subagents are Markdown files placed in a project's .claude/agents/ directory. The overview says Claude Code reads CLAUDE.md at the start of every session. No cited page covers fiction writing, so the quality of drafts and checks is untested here.
Limitations and Considerations
Subagents send their own requests, which count toward the same usage limits as your main conversation, so running every role on every chapter adds up. Continuity checks only catch what is written in your reference files; keep them current. Keep the chapters under version control so you can undo an unwanted edit. If you plan to publish, check your publisher's or platform's rules on AI-assisted writing. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Official Website
The official site of the main tool or project in this use case.
Visit Website (opens in a new tab)code.claude.com
Related Videos
About anthropics/claude-code
The SECRET Claude Code Upgrade That Has Everyone Going Nuts (Full Guide) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)About anthropics/claude-code
The only Claude Code guide you'll ever need (Opus 4.5) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Create custom subagents - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 26 Nov 2026, 23:47 UTC
What this source supports
- Each subagent runs in its own context window with a custom system prompt, specific tool access, and independent permissions. It also sends its own requests, which count toward the same usage limits as your main conversation.
- Subagents are Markdown files with YAML frontmatter.
- To scope it to one project instead, move it to that project's .claude/agents/ directory.
- Overview - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 11:57 UTC
What this source supports
- CLAUDE.md is a markdown file you add to your project root that Claude Code reads at the start of every session.

