2389-research

Word Compiler — AI skill for Claude Code

AI community

Context compiler for long-form fiction that turns character, voice, and scene plans into guided LLM prose generation.

How to install Word Compiler

This entry records only its repository, not the path inside it, so there is no exact command to give. Open 2389-research/word-compiler and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Word Compiler does

Context compiler for long-form fiction that turns character, voice, and scene plans into guided LLM prose generation.

Alternatives in AI

  • Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
  • Graphjin — GraphJin - An Automagical Compiler to Connect AI to Your Databases 3034 44 1 3k ★
  • Paritok 4b V1 — Non-destructive compression gateway for AI coding agents 1.4k ★

README

Word Compiler

A context compiler for long-form fiction. Structured creative intent (characters, voice rules, scene contracts) is compiled into optimized LLM context payloads, enabling gated chunk-by-chunk prose generation.

The author never writes prompts. They fill in structured fields, write anchor lines, and edit generated prose. The app handles all context assembly, budget management, and constraint injection.

How It Works

Bible + Scene Plan + Previous Chunks + Config
  → Ring Builder (system / chapter / scene context)
  → Budget Enforcer (token counting, priority trim)
  → Linter (priming risk, missing voice, budget health)
  → Assembler → LLM → Generated Chunk
  → Human Review (accept / edit / reject)
  → Auditor (kill list, variance, subtext, epistemic)
  → Learner (diff analysis → pattern proposals)

The context compiler builds prompts in three concentric rings:

  • Ring 1 (system): Project voice, tone, kill list, global rules
  • Ring 2 (chapter): Chapter arc, character states, active setups
  • Ring 3 (scene): Scene plan, voice fingerprints, continuity bridge, anchor lines

When over budget, rings compress in priority order. Scene context always gets at least 60% of the token budget.

Quick Start

Prerequisites

Setup

git clone https://github.com/2389-research/word-compiler.git
cd word-compiler
pnpm install

Create a `.env` file:

ANTHROPIC_API_KEY=your-key-here

Run

pnpm dev:all    # Starts frontend (localhost:5173) + API server (localhost:3001)

Workflow

  1. Bootstrap — Paste a synopsis or build a bible manually (characters, locations, style guide, narrative rules)
  2. Plan — Author scene plans with chapter arcs, beat sheets, and continuity tracking
  3. Draft — Generate prose chunk by chunk with compiled context; review, edit, accept or reject
  4. Audit — Run quality ch