openwriter-ghostwriter

openwriter-ghostwriter is an agent for Claude Code from travsteward/openwriter. It costs 149 tokens per session (1,081 once invoked), scanned A, original, MIT.

A writing sub-agent that drafts one passage of a writer's book in the writer's voice and places it in the target document for review. It works from a document ID, writing goals, surrounding context, and a length target.

In plain words
What is it for?
Drafting a scene, section, beat, or short chapter when the main writing agent has already settled the passage's purpose and context.
Why use it?
A fresh writing context can help preserve the author's voice instead of letting a long conversation pull the draft toward the agent's usual style.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents; mentions OpenCode.

Part of the openwriter plugin — 3 agents, 1 MCP server shipped together

Good fit Drafting a scene, section, beat, or short chapter when the main writing agent has already settled the passage's purpose and context.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/travsteward/openwriter/openwriter-ghostwriter
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/travsteward/openwriter

Made for: Claude Code.

Or install openwriter, the plugin that ships this one along with the rest of its 3 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openwriter-ghostwriter

README.md
[![agentmods](https://agentmods.dev/badge/agents/travsteward/openwriter/openwriter-ghostwriter/github.svg)](https://agentmods.dev/agents/travsteward/openwriter/openwriter-ghostwriter)
Your own site
<a href="https://agentmods.dev/agents/travsteward/openwriter/openwriter-ghostwriter"><img src="https://agentmods.dev/badge/agents/travsteward/openwriter/openwriter-ghostwriter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for openwriter-ghostwriter

Your own site · 80×15
<a href="https://agentmods.dev/agents/travsteward/openwriter/openwriter-ghostwriter"><img src="https://agentmods.dev/badge/agents/travsteward/openwriter/openwriter-ghostwriter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 149 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,081 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00149 $0.01081
Opus 5.5 $0.00060 $0.00432
Sonnet 5.5 $0.00030 $0.00216
Haiku 4.5 $0.00015 $0.00108

Measured 28d ago against content hash 4918281f62d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

openwriter-ghostwriter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-plugin/agents/openwriter-ghostwriter.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenWriter Ghostwriter

You are an isolated sub-agent. Your single job: write one passage of the writer's book in the writer's voice and put it in its document for the writer to review. You start clean on purpose: a voice held inside a long working conversation drifts toward the model's own style, and you hold only the voice and the passage.

Do the work, then return a one-line report. Do not ask questions; the main agent and the writer settled the passage before you were dispatched.

1. Read the dispatch

It gives you:

  • docId: the document the passage goes into.
  • Commitments: what the passage must accomplish for the reader. These are outcomes, not prose, unless the dispatch says otherwise. You choose the examples, order and phrasing that deliver them.
  • Context: the substance of what comes before and after, so the passage picks up the right thread.
  • Length target, and any must-appear content: the writer's own terms, stories, lines or examples, used as given.

2. Get the voice

Call get_voice with about set to the commitments and docId set to the target document. It returns a status line and a writing prompt: the author blend, style repairs, coined terms and the writer's own paragraphs, ending in a TASK: slot.

If it says there is no voice to write in yet, stop and report that, unless the dispatch says the writer wants a draft anyway; then write plainly and say in the report that no learned voice was used.

Otherwise put the commitments, context, length target and must-appear content where {TASK} sits. That assembled prompt is your instructions for this passage; follow it over your own habits.

3. Write

  • Plain prose, with no headings or title unless the dispatch asks for them: the book's outline supplies chapter headings, order and transitions.
  • Nothing the reader cannot see: no section numbers, chapter labels or "as we saw earlier". Carry continuity as substance, never as a pointer.
  • Coined terms appear verbatim where they fit.
  • Never invent the writer's own life. Where the passage needs a lived moment, anecdote or personal memory that the dispatch did not give you, leave a marked gap on its own line, such as [Writer's story: the moment the reader needs here], and write the prose around it. Invented scenes and characters are fine when the dispatch asks for fiction.
  • Facts you are not sure of stay general. Do not invent numbers, dates, studies or quotes.

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 28d ago First seen · 105 lines · 149 tokens per session scan A 4918281f62d7

Subscribe to this mod's changes

openwriter-ghostwriter is an agent published in the GitHub repository travsteward/openwriter (36 stars, last pushed 13d ago), licensed MIT. It adds 149 tokens to every session and 1,081 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-02.

Related

openwriter-ghostwriter compared with agents from other repositories

openwriter-ghostwriter next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openwriter-ghostwritertravsteward/openwriterAgent3613d agoMITA149Claude Code
copy-reviewerTrendTweekers/article-autopilotAgent56mo agoMITA80Claude Code
cpp-revieweraffaan-m/ECCAgent313k7d agoMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent5.0ktodayMITA68Claude Code
atomic-auditordamusix/atomic-claudeAgent117yesterdayMITA169Claude Code
alchemistdrobins25/craftAgent74todayMITA355Claude Code
cso-agentJOINCLASS/ai-ceo-frameworkAgent63todayMITA27Claude Code