Skip to main content
Writing Agent - a self-correcting, autonomous writing system that turns a topic into a publication-ready manuscript

Docs Python Platforms License

The autonomous long-form writer that argues a thesis and cites real sources - not slop.

One command → a researched, self-critiqued, fact-checked, exported article (or book). Local-first and model-agnostic (any OpenAI-compatible host), on your own key, for cents.

Quickstart · What you get · Examples · Docs ↗


Why it's different

Most AI writing is fluent slop - confident, generic, unsourced. Writing Agent is a pipeline, not a prompt: a durable state machine with a separate critic, an enforced thesis, and claim↔source verification. Every article ships an evidence report - the argument it makes plus every source, ranked by influence. It won't replace a chat when you want to steer every sentence; it replaces the grind of turning a topic into a sourced, non-generic, finished piece. How it works ↗

Try it in 30 seconds

pip install writing-agent                # Python 3.10+ · or: pipx install writing-agent
export OPENROUTER_API_KEY=sk-or-...      # or any OpenAI-compatible host's key - your choice
writing-agent write --abstract "How stoicism applies to modern burnout"

write asks a few questions upfront, then researches, drafts, critiques, verifies, humanizes, and exports the finished file with zero babysitting.

No API key? WRITINGAGENT_FAKE=1 writing-agent write --abstract "test" runs the whole pipeline offline with placeholder output. No terminal? The web demo is a Gradio try-it page you can run from a clone or deploy as a Hugging Face Space. Extras, from-source installs, and host setup: installation guide ↗.

What you get

  • Argues, doesn't just cover - a contestable thesis a separate critic enforces in every section, and a side-by-side judge that picks the strongest of N drafts
  • Real sources, verified - web-grounded research, and each cited claim is checked against its source; unsupported citations are blocked, not shipped
  • Proof, not vibes - the evidence report shows the thesis + every source ranked by influence (0-100), built from the finished piece
  • Any field, any voice - registers (fiction → academic → copy), 46 selectable personas, and emotion targets; the craft engine holds up even on cheap models
  • Self-correcting, optionally self-directing - fixed quality gates by default; an opt-in agentic controller that chooses its own next move when you want it
  • Cheap when you want it - cost_mode: budget targets a finished article for ~$0.10-0.25 depending on the model
  • Durable - plain markdown + JSON on disk; kill a run mid-flight and run resumes exactly where it stopped
  • Ships, not just writes - 6 export formats (pdf · epub · html · docx · txt · md), self-laying-out diagrams, free-licensed or AI-generated images, an on-page SEO audit, a promo pack (X thread, LinkedIn, headlines), and one-paste Copy for Medium / Substack / X

Four ways to use it

Surface What it is
TUI - writing-agent The interactive studio: chat in plain English, slash commands, live run view, 11 themes
CLI - writing-agent <cmd> One-shot commands (write, run, export, seo, promote, ...) for scripting
Dashboard - writing-agent web Local control room on 127.0.0.1:8787 - commission runs, live logs, per-agent cost, evals, memory, copy-to-publish
Web demo - demo/ Standalone Gradio page (:7860) to try or host - free fake-mode preview, or bring a key

There's also an embeddable Python API - see docs ↗.

See real output

Judge it before you install it: examples/ has finished articles with their evidence reports, an A/B pilot against a plain chatbot, and examples/sample-run/ - a complete autonomous book run with every working file the agent produced.

Learn more

Everything else lives in the docs ↗: guides (articles, books, research, exporting), the full command and settings reference, model routing, cost & performance, and the FAQ. The engineering spec is docs/plan.md; the UI system is docs/design.md.

Contributing

git clone https://github.com/vikast908/WritingAgent && cd WritingAgent
pip install -e ".[dev]"
ruff check . && pytest        # the suite runs fully offline - no API key

Issues and PRs welcome - see CONTRIBUTING.md, plus SECURITY.md and the CHANGELOG.

Author

Built and maintained by @vikast908. Questions, ideas, or bugs? Open an issue.

License

MIT.

Model-agnostic · runs on any OpenAI-compatible host · Linux · macOS · Windows

Metadata

Release files for writing-agent 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for writing-agent 0.4.1
File Size Uploaded Provenance
writing_agent-0.4.1.tar.gz 510.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for writing-agent 0.4.1
File Interpreter ABI Platform
writing_agent-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 987.3 kB

Release files / writing_agent-0.4.1.tar.gz

Download URL writing_agent-0.4.1.tar.gz
Size 510.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a04d380de278f2b5dfffc3378e973f5f58ea6a41a5253c5a073ec50f0cb442cf
BLAKE2b-256 checksum
How to use checksums
8a1dd6e4f5f4c742216bf41cf101824e66ff90695ce6f348877a14e546cea878
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.

Transparency log

Release files / writing_agent-0.4.1-py3-none-any.whl

Download URL writing_agent-0.4.1-py3-none-any.whl
Size 476.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c7502222f8a29ee1bafae1696b0a78b779a9f085b53515b08a3cf69d5bba136
BLAKE2b-256 checksum
How to use checksums
2ab8325f2b7e1aa6e00298d912a8145262b9ff08e35105e92d819667bc7cde65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.

Transparency log

Security for writing-agent 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for writing_agent-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page