Skip to content

WRITING AGENT

An autonomous writing studio in your terminal. Give it an abstract; it plans, researches, writes, critiques itself, revises, and hands you a finished manuscript.

LLMs will happily write you 5,000 words on anything. Most of it is slop - generic structure, hedged claims, “delve” and “moreover”, fabricated citations, no thesis worth disagreeing with. Getting publishable long-form writing out of a model takes a dozen rounds of prompting, checking, and fixing - the parts that were supposed to be automated.

WRITING AGENT is a pipeline, not a prompt. Every chapter and section runs through a write → critique → revise loop with a separate critic model that blocks AI tells, unsupported claims, thesis drift, and length misses - and it only escalates to you when it’s genuinely stuck (or never, in autonomous mode).

What it doesHow
Argues somethingA contestable thesis with a steelmanned counterargument, enforced by the critic in every section
Sounds like a personA deterministic AI-tell scanner + a surgical humanizer that rewrites only flagged sentences
Gets facts from somewhereOptional web research per unit - shallow snippets or deep multi-source page fetches, with numbered citations renumbered to match the final references
Proves itEvery article ships an evidence report - the thesis it argues + every source ranked by influence (0–100), built from the finished piece with no model call
Remembers what it wroteA durable on-disk canon (characters, facts, timeline) keeps later chapters consistent with earlier ones
Survives anythingEvery step persists to disk - kill it mid-run and run resumes exactly where it stopped
Draws clear figuresThe model authors a diagram spec; a layout engine (built-in, or D2 + ELK) places everything so labels never overflow or collide
Ships a fileExport to PDF · EPUB · DOCX · HTML · TXT · MD, with diagrams rendered as vector art

Quickstart

From pip install writing-agent to a finished, exported article in one command. Get started →

The TUI

The interactive shell: chat in plain English, slash commands, live run dashboard, eleven themes (incl. the colourblind-safe highcontrast). Tour the TUI →

Quality machinery

Thesis, a side-by-side draft judge, an insight gate, claim↔source checks, voice exemplars - how the ceiling is raised, not just the floor. How it works →

Commands

Every command and flag, from write to eval. Reference →

  • Terminal or browser - the same pipeline runs in the interactive TUI or a local web dashboard (writing-agent web, 127.0.0.1 only): Studio, a live SSE run view, per-project evals, artifacts, cost, and exports.
  • Cross-platform - Linux · macOS · Windows, CI-tested on Python 3.10–3.13.
  • Zero required heavy deps - the core runs on stdlib + a handful of small libraries; deep-research fetching and embeddings are optional extras. The web dashboard is pure stdlib.
  • Offline fake mode - WRITINGAGENT_FAKE=1 runs the entire pipeline with canned outputs: try the state machine, TUI, and exports without an API key.
  • MIT licensed - open source on GitHub, with every command, setting, and model route documented here.