<p align="center">
  <strong>awesome-novel</strong><br>
  <em>Write Novels with Claude Code / OpenCode / Reasonix / Codex / ZCode / DeepSeek Harness / Grok Build</em>
</p>

<p align="center">
  <a href="https://docs.anthropic.com/en/docs/claude-code/overview"><img src="https://img.shields.io/badge/Claude%20Code-%E2%9C%93%20%E6%94%AF%E6%8C%81-6B46C1?style=flat-square" alt="Claude Code"></a>
  <a href="https://github.com/sglaboratory/opencode"><img src="https://img.shields.io/badge/OpenCode-%E2%9C%93%20%E6%94%AF%E6%8C%81-4A90D9?style=flat-square" alt="OpenCode"></a>
  <img src="https://img.shields.io/badge/Reasonix-%E2%9C%93%20%E6%94%AF%E6%8C%81-16A34A?style=flat-square" alt="Reasonix">
  <a href="#codex-integration"><img src="https://img.shields.io/badge/Codex-%E2%9C%93%20%E6%94%AF%E6%8C%81-10A37F?style=flat-square" alt="Codex"></a>
  <a href="#zcode-integration"><img src="https://img.shields.io/badge/ZCode-%E2%9C%93%20%E6%94%AF%E6%8C%81-0EA5E9?style=flat-square" alt="ZCode"></a>
  <a href="#dsh-integration"><img src="https://img.shields.io/badge/DeepSeek%20Harness-%E2%9C%93%20%E6%94%AF%E6%8C%81-1F6FEB?style=flat-square" alt="DeepSeek Harness"></a>
  <a href="#grok-build-integration"><img src="https://img.shields.io/badge/Grok%20Build-%E2%9C%93%20%E6%94%AF%E6%8C%81-111111?style=flat-square" alt="Grok Build"></a>
  <br>
  <a href="LICENSE"><img src="https://img.shields.io/badge/License-AGPL%203.0-blue?style=flat-square" alt="AGPL 3.0"></a>
</p>

> **Free for personal use** — This Skill is completely free for personal users.<br>
> **Commercial use** — Please contact the author for licensing.

Let AI be your novel writing partner, from world-building to character development, from chapter planning to prose writing — guiding you through completing an entire novel step by step.

<!-- Opening showcase: cultivation novel excerpt + illustration -->
<div align="center">

<table><tr>
<td width="200" valign="top" style="border:0;padding:8px">
  <img src="reference/images/我靠炼丹逆天改命.png" width="200" alt="Cultivation novel cover" style="border-radius:6px;box-shadow:0 4px 16px rgba(0,0,0,0.3)">
</td>
<td valign="middle" align="left" style="border:0;padding:8px">
<blockquote style="border-left:3px solid #d4875e;margin:0;padding:8px 20px;text-align:left;max-width:440px;font-size:15px;line-height:1.8;color:#e8d5c0">
<p style="margin:4px 0">
他放下草药，站起来，朝着王虎离开的方向追了几步。王虎听到脚步声回头，还没来得及说话，叶秋的拳头已经到了——一拳结结实实砸在他脸上。
</p>
<p style="margin:4px 0">
王虎整个人往后退了两步，捂着脸，嘴边的笑僵在半道上。
</p>
<p style="margin:4px 0">
"你——"
</p>
<p style="margin:4px 0">
叶秋没让他把话说完。第二拳挥出去的时候，旁边那两个跟班已经反应过来了。一左一右扑上来抱住他的胳膊，把他往后拖。王虎趁机一脚踹在他肚子上，叶秋弓着腰往后退了两步，膝盖一软跪在地上。
</p>
<p style="margin:8px 0 0 0;font-size:13px;color:#94a3b8">— from <em>我靠炼丹逆天改命</em> Vol.1 Ch.1 · Generated by awesome-novel</p>
</blockquote>
</td>
</tr></table>

</div>

## What You Need

- A computer with [Claude Code](https://docs.anthropic.com/en/docs/claude-code/overview), [OpenCode](https://github.com/sglaboratory/opencode), Reasonix, **Codex**, **ZCode**, **DeepSeek Harness (dsh)** or **[Grok Build](https://docs.x.ai/build/overview)** installed
- Python 3.9+ (the one bundled with macOS works; 3.11+ recommended)
- pyyaml for OpenCode / Codex / ZCode / dsh / Grok Build (`pip install pyyaml`; use `pip install --user pyyaml` if the system Python is permission-restricted)
- About 1 minute to install

## Installation

**No copy-pasting needed.** Open the AI tool you use (Claude Code / OpenCode / Codex / ZCode / DeepSeek Harness / Grok Build) and tell it:

> **Install awesome-novel-agent for me**

The agent will download from <https://github.com/modoojunko/awesome-novel-agent> (if it can't find it, paste this repo URL to it) and run the prepared installer `./install.sh <platform>` itself:

| Platform | Install location |
|----------|------------------|
| Claude Code | `~/.claude/skills/awesome-novel/` |
| OpenCode | `~/.config/opencode/skills/awesome-novel/` |
| Codex | `~/.codex/skills/awesome-novel/` |
| ZCode | `~/.zcode/skills/awesome-novel/` |
| DeepSeek Harness | `~/.dsh/skills/awesome-novel/` |
| Grok Build | `~/.grok/skills/awesome-novel/` |

You're done once you see **"安装完成"** (Installation complete). To install manually, clone the repo and run `./install.sh <platform>` (`claude-code` / `opencode` / `codex` / `zcode` / `dsh` / `grok`); on Windows (PowerShell) run `install.ps1 <platform>`. `install.sh` also supports `deepseek-tui` / `hermes` / `openclaw` (non-primary platforms). The installer checks the Python version (3.9+ required) and the pyyaml dependency (opencode / codex / zcode / dsh / grok only), and aborts with clear messages instead of failing later when `init.py` / `sync-project.py` run.

**Reasonix:**

Reasonix skills are deployed **per-project** (into `.reasonix/skills/`), not globally — no `install.sh`. Tell Reasonix **"Install awesome-novel-agent for me"** and it will clone the repo and run `init.py` to initialize your novel project directly:

```bash
git clone https://github.com/modoojunko/awesome-novel-agent.git && cd awesome-novel-agent
python tools/init.py <novel-project-path> --platform reasonix
cd <novel-project-path> && reasonix code
```

> Use `--genre <number>` to pick a preset genre; without it, init.py asks interactively.

**ZCode:**

ZCode's skill convention (directory + `SKILL.md`) is compatible with Claude Code's, but it has **no project-level agents directory** — the 9 agents are deployed as skills (agents == skills). The skill itself is installed globally via `install.sh`; project contents are deployed per-project to `.zcode/` by `init.py --platform zcode`:

```bash
./install.sh zcode
python ~/.zcode/skills/awesome-novel/tools/init.py <novel-project-path> --platform zcode
```

**DeepSeek Harness (dsh):**

dsh's skill convention (directory + `SKILL.md`) is compatible with Claude Code's, but it has **no project-level agents directory** (subagents are a runtime capability) — the 9 agents are deployed as skills (agents == skills), and `<projectRoot>/.dsh/skills/` is dsh's project-level skill root (auto-discovered, highest priority). The skill itself is installed globally via `install.sh`; project contents are deployed per-project to `.dsh/` by `init.py --platform dsh`:

```bash
./install.sh dsh
python ~/.dsh/skills/awesome-novel/tools/init.py <novel-project-path> --platform dsh
```

## Start Writing

After the skill is installed, launch Claude Code / OpenCode / Codex / ZCode / DeepSeek Harness in the directory where you want your novel project and type:

> **/awesome-novel**

(In Codex, type `/use awesome-novel`, or just say **"帮我写本小说"**.)

The skill detects the directory state: for a new directory it confirms with you, then runs `init.py` to scaffold the novel workspace locally (project skeleton, agent definitions, knowledge base, memory files) before entering the writing flow. The system uses 8 AI agents working together — novel-agent (the director) dispatches specialized sub-agents based on progress:

Reasonix users: run `reasonix code` in the project directory, then type `@novel-agent` to enter the writing flow. ZCode users: just say **"帮我写本小说"** or **"帮我继续写"** in the project directory (ZCode has no `@` syntax — agents are skills and novel-agent is auto-discovered). DeepSeek Harness users do the same — dsh routes skills by name/description automatically.

```
novel-agent (top-level entry — loaded via @novel-agent)
  ├─ setup → dispatches updater (write settings)
  ├─ outline → dispatches volume-planner → chapter-planner
  ├─ draft → dispatches prompt-crafter → writer
  ├─ review → dispatches reader (optional)
  └─ archive → dispatches updater (archive + lore-keeping)
```

novel-agent only dispatches and verifies — it never writes content directly. Sub-agents handle their specialized tasks and clean up when done.

### One-Time Setup

On first novel, the Agent discusses these areas. **No need to decide everything at once** — skip what you don't know and fill in later:

1. **Genre** — Xianxia, urban, mystery, historical... just say what you have in mind. Agent auto-configures writing style and pacing templates based on genre
2. **World Setting** — What world does the story take place in? Any special rules? (e.g., "cultivation world where spiritual roots determine talent")
3. **Main Characters** — Who's the protagonist? What kind of person are they? Agent discusses personality, abilities, and growth history for each character
4. **Writing Style** — Prefer more description or more dialogue? More classical or modern tone? Can also import a novel you like to extract its style

### Project Structure

After setup, the Agent creates your novel project in the current directory:

```
{your-novel-folder}/
├── story.md              # Project index (metadata/arc/volume plan)
├── CLAUDE.md             # Project-level CLAUDE.md (tools whitelist)
├── settings/             # Setting files
│   ├── world-setting.md  # World building
│   ├── writing-style.md  # Writing style (quantified master card after distillation)
│   ├── genre-setting.md  # Genre configuration
│   ├── timeline.md       # Timeline
│   ├── character-setting/ # Character profiles
│   │   └── <id>.md       # One file per character
│   ├── style-profiles/   # Per-scene style cards (distilled: dialogue/fight/group-scene/…)
│   │   └── genre-baselines/  # Genre style baselines (base/benchmark/delta)
│   └── .style-versions/  # Distillation version snapshots (created at distill time)
├── volumes/              # Volume outlines
├── chapters/             # Chapter outlines
├── prompts/              # Writing prompts
├── archives/             # Finalized prose
├── novel-samples/        # Style distillation samples (put articles you want to learn from here)
├── .agent/               # Agent progress + task communication
│   ├── status.md         # Progress marker (phase/volume/chapter)
│   └── task/             # Order files for sub-agent dispatch
├── .claude/              # Claude Code: agent definitions + knowledge + memory
    ├── agents/           # 9 agent definitions (deployed at init)
    ├── knowledge/        # Format specs, anti-AI rules, style profile, permanent memory
    └── memory/           # Dynamic writing memory (feedback per phase)
        ├── volume-memory.md
        ├── chapter-memory.md
        ├── prompt-memory.md
        └── writing-memory.md
├── .codex/               # Codex: 9 custom agents (TOML) + knowledge + memory
    ├── agents/           # Custom agent definitions (deployed at init)
    ├── skills/           # Standalone tools (memory-recording, roleplay-sandbox)
    ├── knowledge/        # Format specs, anti-AI rules, style profile, permanent memory
    └── memory/           # Dynamic writing memory (feedback per phase)
└── .zcode/               # ZCode: 11 skills (agents == skills) + knowledge + memory
    ├── skills/           # SKILL.md per agent (deployed at init)
    ├── knowledge/        # Format specs, anti-AI rules, style profile, permanent memory
    └── memory/           # Dynamic writing memory (feedback per phase)
```

All files are plain Markdown — you can open and edit them directly. Only one platform directory is generated per project (chosen by `init.py --platform`).

### Planning the Story Framework

After setup, Agent helps plan the overall story structure:

1. **Story Arc Split** — One sentence describing the core conflict of the entire book, then work backward from the ending to break it into major phases
2. **Volume Planning** — Each phase is a volume; what's the content and stopping point of each volume
3. **First Volume Chapters** — How many chapters in volume one and what's the core content of each

> **Don't know the ending?** Tell Agent "I only know the beginning" and it will still help plan the first volume.

### Chapter Writing Loop (Multi-Agent)

9 agents collaborate — novel-agent (the director) dispatches sub-agents based on progress. You review and decide:

| Step | Responsible Agent | What Happens |
|------|-----------------|--------------|
| **① Chapter Outline** | chapter-planner | (dispatched by novel-agent) Analyzes context and settings, provides scene breakdown, emotional design, and hook plan. You review and say "ok" or "change this" |
| **② Prompt** | prompt-crafter | (dispatched by novel-agent) Assembles 9-layer prompt from outline, anti-AI rules, and style preferences |
| **③ Write** | writer | (dispatched by novel-agent) Writes full chapter from prompt, auto-cleans AI-isms |
| **④ Review** | reader (optional) | (dispatched by novel-agent) 10-dimension deep review against outline/settings/context |
| **⑤ Archive** | updater | (dispatched by novel-agent) Finalizes draft, updates character status, merges style preferences, checks hook health and volume boundaries |

**Dispatch rule:** `@novel-agent` is the top-level entry point — loaded into the main AI which acts as the director. novel-agent dispatches sub-agents via the Agent tool and never writes content directly. Sub-agents clean up their task markers when done; novel-agent detects cleanup and advances to the next phase.

After chapter one, Agent asks "下一章继续吗？" (Continue to next chapter?)

### Automation

- **AI Flavor Removal**: Prompt generation auto-cleans "analysis tone"; after writing, scans for sentence repetition, body reaction templates, and machine-phrase vocabulary (like "cannot help but", "unconsciously") — flags for your decision
- **Foreshadow Tracking**: Emotional hooks at chapter ends auto-tracked; reminders when it's time to pay off
- **Character Status Management**: Location changes, ability growth, relationship shifts — auto-recorded, Agent knows latest state when writing next chapter
- **Pacing Check**: Alert if 3+ consecutive high-tension chapters or 2+ consecutive平淡 chapters

### Common Commands

| You Say | AI Does |
|---------|---------|
| "/awesome-novel" or "帮我写本小说" | Load the skill, initialize the novel workspace in the current directory + start setting discussion |
| "帮我继续写" | Resume from last progress |
| "写下一章" | Start writing latest chapter |
| "改一下第 X 段" | Revise specified paragraph |
| "这章写完了" or "归档" | Confirm chapter complete |
| "看看进度" | View current progress |
| "导入这本小说" | Import existing draft to continue writing |
| "迁移项目" | Auto-migrate from legacy to 4.0 format |
| "solo" or "你全权写" | Enter fully automatic mode without stop points |

## Two Collaboration Modes

| Mode | Trigger | Behavior |
|------|---------|----------|
| **Step-by-Step** (default) | — | Waits for your confirmation at each step |
| **Full Delegation** | "你全权决定" | Process nodes still exist, Agent confirms on your behalf |

You can switch modes anytime by telling the Agent.

## Advanced Features

### Pre-built Genre Profiles

Don't want to set up writing style from scratch? The project includes 24 built-in genre profiles — pick one and start immediately. Each profile includes character archetype tendencies, narrative tone, and chapter prompt templates. Covers Xianxia, urban, mystery, historical, sci-fi post-apocalyptic, Western fantasy, and more.

Agent asks if you want to choose one during setup.

## FAQ

**Q: I'm not a programmer, can I install it?**

Yes. Tell your AI tool "帮我安装 awesome-novel-agent，仓库在 https://github.com/modoojunko/awesome-novel-agent" — the agent runs the installer for you. The only requirement is having Claude Code, OpenCode, Reasonix, or Codex installed.

**Q: I upgraded the skill, how do I migrate my existing novel projects to the new format?**

When you launch in the current project directory after an upgrade, Agent auto-detects the old format and guides you through migration. Core logic: old files moved entirely to `old/` directory for backup, new project skeleton initialized in place, then old format settings converted field by field to new format. Archived prose copied directly; work-in-progress not migrated. You can manually delete `old/` after confirming migration is correct.

**Q: Can I change settings mid-writing?**

Yes. Just tell Agent "改一下世界观里的 XXX" (Change XXX in world setting) or "这个角色的性格我想调整" (I want to adjust this character's personality) and it will update for you.

**Q: Generated text has AI flavor, what do I do?**

Default config is "low AI flavor" — common machine phrases prohibited ("cannot help but", "unconsciously", "at this moment", "not X but Y" analysis tone), forced alternation between short and long sentences, body reaction templating banned. Auto-scan runs after writing.

**Q: Can I use my own writing style?**

Yes. After project creation, there's a writing style file where you can write in your preferences, and all subsequent chapters will follow this style.

## OpenCode Integration

This skill also supports [OpenCode](https://github.com/sglaboratory/opencode) (third-party open-source AI coding CLI).

### Install

Tell OpenCode **"帮我安装 awesome-novel-agent"** and it runs `./install.sh opencode` itself, installing to `~/.config/opencode/skills/awesome-novel/`.

### Initialize a project

Type `/awesome-novel` in the target directory — the skill calls init.py automatically. You can also run:

```bash
python ~/.config/opencode/skills/awesome-novel/tools/init.py . --genre <number>
```

### Start writing

After initialization, enter the writing loop in OpenCode via `/awesome-novel` or `@novel-agent`.

### Project structure differences

An OpenCode project has the same structure as a Claude Code project — the only difference is that agent definitions are deployed under `.opencode/agents/` instead of `.claude/agents/`. All platforms share the same writing pipeline and knowledge base.

Upgrade later with `python tools/sync-project.py <novel-project-path> --platform opencode`.

## Reasonix Integration

This skill also supports Reasonix (DeepSeek's terminal AI agent, which uses byte-level stable prefix caching to cut inference cost).

Unlike Claude Code / OpenCode, Reasonix deploys skills **project-level** — every novel project generates `.reasonix/skills/` (11 SKILL.md files, agents == skills) at init time; nothing is installed globally.

### Install the framework source

Tell Reasonix **"帮我安装 awesome-novel-agent"** and it clones the repository locally (project-level deployment, not global).

### Initialize a project

Run init.py in the project directory (or a target path), specifying the Reasonix platform:

```bash
python tools/init.py <novel-project-path> --genre <number> --platform reasonix
```

### Start writing

After initialization, enter the project directory and start Reasonix:

```bash
cd <novel-project-path> && reasonix code
```

Then type `@novel-agent` to enter the writing loop. In Reasonix, novel-agent dispatches sub-agents with `run_skill`; the order-file protocol is identical to the other platforms.

### Project structure differences

A Reasonix project deploys agent definitions as skills under `.reasonix/skills/` and produces no `.claude/`:

```
.reasonix/
├── skills/               # 11 SKILL.md files (agents == skills)
│   ├── novel-agent/SKILL.md
│   ├── writer/SKILL.md
│   ├── volume-planner/SKILL.md
│   └── ...
├── knowledge/            # anti-AI rules, style preferences, permanent memory, format specs
└── memory/               # writing dynamic memory
```

Upgrade later with `python tools/sync-project.py <novel-project-path> --platform reasonix`.

## Codex Integration

This skill also supports [Codex](https://developers.openai.com/codex) (OpenAI's coding agent). The skill itself is installed **user-level**, while agents/skills/knowledge/memory are deployed **project-level** into `.codex/` at init time.

### Install

Tell Codex "帮我安装 awesome-novel-agent" and it runs `./install.sh codex` itself, installing to `~/.codex/skills/awesome-novel/`.

### Initialize a project

Open the target directory in Codex and type `/use awesome-novel` (or say "帮我写本小说") — the skill initializes automatically. You can also run:

```bash
python ~/.codex/skills/awesome-novel/tools/init.py <novel-project-path> --genre <number> --platform codex
```

The 9 custom agents are deployed as Codex TOML files (`.codex/agents/*.toml`, with `name` / `description` / `developer_instructions`), standalone tools as `.codex/skills/<name>/SKILL.md`, and anti-AI rules, style preferences, format specs, and writing memory land in `.codex/knowledge/` / `.codex/memory/`.

### Start writing

Call `/awesome-novel` or `@novel-agent` to enter the writing loop. In Codex, novel-agent dispatches sub-agents with `spawn_agent` (agent name = the TOML name under `.codex/agents/`); the order-file protocol is identical to the other platforms.

Upgrade later with `python tools/sync-project.py <novel-project-path> --platform codex`.

## ZCode Integration

This skill also supports [ZCode](https://zcode.z.ai) (open-source AI coding agent terminal). ZCode's skill convention (directory + `SKILL.md`) is compatible with Claude Code's — **natively supported** — but it has no project-level agents directory, so the 9 agents are deployed as skills (agents == skills). The skill itself is installed **user-level**, while project contents (agents/skills/knowledge/memory) are deployed **project-level** into `.zcode/`.

### Install

Tell ZCode "帮我安装 awesome-novel-agent" and it runs `./install.sh zcode` itself, installing to `~/.zcode/skills/awesome-novel/`.

### Initialize a project

Open the target directory in ZCode and say "帮我写本小说" — the skill initializes automatically. You can also run:

```bash
python ~/.zcode/skills/awesome-novel/tools/init.py <novel-project-path> --genre <number> --platform zcode
```

The 9 agents are deployed as `.zcode/skills/<name>/SKILL.md` (11 skills in total, same layout as Reasonix: 9 agents + memory-recording / roleplay-sandbox standalone tools), and anti-AI rules, style preferences, format specs, and writing memory land in `.zcode/knowledge/` / `.zcode/memory/`.

### Start writing

Open the project directory in ZCode and say **"帮我写本小说"** or **"帮我继续写"** to enter the writing loop (ZCode has no `@` syntax — novel-agent is auto-discovered as a skill). In ZCode, novel-agent dispatches sub-agents with the `Agent` tool (sub-agent name = skill name under `.zcode/skills/`); the order-file protocol is identical to the other platforms.

Upgrade later with `python tools/sync-project.py <novel-project-path> --platform zcode`.

## dsh Integration

This skill also supports [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (dsh, DeepSeek's open-source agent harness). dsh's skill convention (directory + `SKILL.md`, frontmatter reading `name`/`description`) is compatible with Claude Code's — **natively supported** — but it has no project-level agents directory (subagents are a runtime capability), so the 9 agents are deployed as skills (agents == skills). The skill itself is installed **user-level**, while project contents (agents/skills/knowledge/memory) are deployed **project-level** into `.dsh/` (`<projectRoot>/.dsh/skills/` is dsh's project-level skill root, auto-discovered with the highest priority).

### Install

Tell dsh "帮我安装 awesome-novel-agent" and it runs `./install.sh dsh` itself, installing to `~/.dsh/skills/awesome-novel/`.

### Initialize a project

Open the target directory in dsh and say "帮我写本小说" — the skill initializes automatically. You can also run:

```bash
python ~/.dsh/skills/awesome-novel/tools/init.py <novel-project-path> --genre <number> --platform dsh
```

The 9 agents are deployed as `.dsh/skills/<name>/SKILL.md` (11 skills in total, same layout as Reasonix/ZCode: 9 agents + memory-recording / roleplay-sandbox standalone tools), with frontmatter trimmed to the `name`/`description` keys dsh recognizes; anti-AI rules, style preferences, format specs, and writing memory land in `.dsh/knowledge/` / `.dsh/memory/`.

### Start writing

Open the project directory in dsh and say **"帮我写本小说"** or **"帮我继续写"** to enter the writing loop (dsh routes skills by name/description automatically). In dsh, novel-agent dispatches sub-agents with the `subagent` tool (the prompt tells the sub-agent to load its own instructions first via `skill(name="<sub-agent-name>")`; sub-agent name = skill name under `.dsh/skills/`); the order-file protocol is identical to the other platforms.

### Project structure differences

```
.dsh/
├── skills/               # 11 SKILL.md files (agents == skills)
│   ├── novel-agent/      # director (entry dispatcher)
│   ├── writer/           # prose writer (subagent)
│   ├── volume-planner/   # volume planning (subagent)
│   ├── ...
│   ├── memory-recording/ # standalone interactive tool
│   └── roleplay-sandbox/ # standalone interactive tool
├── knowledge/            # anti-AI rules, style preferences, permanent memory, format specs
└── memory/               # dynamic writing memory
```

Upgrade later with `python tools/sync-project.py <novel-project-path> --platform dsh`.

## Grok Build Integration

This skill also supports [Grok Build](https://docs.x.ai/build/overview) (SpaceXAI's coding-agent TUI). The skill convention (directory + `SKILL.md`) is compatible with Claude Code's — **natively supported**. Custom agents are deployed to `.grok/agents/*.md` (Grok's native discovery path). The skill itself is installed **user-level**, while project contents (agents/skills/knowledge/memory) are deployed **project-level** into `.grok/`.

**Hard constraint:** novel-agent must run in the main session. Grok subagents cannot spawn further subagents (depth limit 1); dispatching novel-agent as a child breaks the chain.

### Install

Tell Grok Build "Install awesome-novel-agent for me" and it runs `./install.sh grok` (Windows: `install.ps1 grok`), installing to `~/.grok/skills/awesome-novel/`.

### Initialize a project

Open the target directory in Grok Build and type `/awesome-novel` (or say "help me write a novel"). You can also run:

```bash
python ~/.grok/skills/awesome-novel/tools/init.py <novel-project-path> --genre <number> --platform grok
```

The 9 custom agents are deployed as Markdown under `.grok/agents/*.md` (`name` / `description` / `tools`), standalone tools as `.grok/skills/<name>/SKILL.md`, and anti-AI rules, style preferences, format specs, and writing memory land in `.grok/knowledge/` / `.grok/memory/`.

### Start writing

Open the project directory in Grok Build and type `/awesome-novel` or say **"帮我写本小说"** / **"帮我继续写"**. In Grok, novel-agent dispatches sub-agents with `spawn_subagent` (`subagent_type` = the Markdown name under `.grok/agents/`, `isolation: none`); the order-file protocol is identical to the other platforms.

### Project structure differences

```
.grok/
├── agents/               # 9 custom agents (Markdown)
│   ├── novel-agent.md
│   ├── writer.md
│   ├── volume-planner.md
│   └── ...
├── skills/               # standalone tools (memory-recording, roleplay-sandbox)
├── knowledge/            # anti-AI rules, style preferences, permanent memory, format specs
└── memory/               # dynamic writing memory
```

Upgrade later with `python tools/sync-project.py <novel-project-path> --platform grok`.

## Star History

<a href="https://star-history.com/#modoojunko/awesome-novel-agent">
  <img src="https://api.star-history.com/svg?repos=modoojunko/awesome-novel-agent&type=date" alt="Star History">
</a>

## Acknowledgments

Part of this project's design was inspired by [InkOS](https://github.com/Narcooo/inkos) — including AI flavor detection system, foreshadowing/hook tracking, genre configuration, and layered technique models. Thanks to [@Narcooo](https://github.com/Narcooo) for the excellent work.

## Third-Party LLM API & Token Services

awesome-novel-agent is open source under AGPL-3.0 and is a free collection of novel-writing agent tools. **The project itself does not provide any LLM or paid Token services.**
Third-party LLM providers mentioned in the documentation and example configs are for technical compatibility demonstration only.
All matters related to Token top-ups, API calls, content generation, refunds, and stability are solely the responsibility of the third-party providers.
This project does not endorse any third-party paid API service.
When generating novel content with third-party APIs, please make sure you comply with applicable online content laws and regulations on your own.
