cowrite
An assist-only academic co-writing plugin for Claude Code that follows DFG good scientific practice. Claude gives hints, critique and literature help instead of ghostwriting, logs every AI input, generates an AI-use disclosure, and offers a review party of personas the author composes.
Worth knowing: Changes the agent's instructions or settings. Both Claude reviews found this fine for what it does.
What it can touch
| files | write, including <paper>/.claude/settings.json, <paper>/CLAUDE.md |
|---|---|
| network | api.crossref.org, doi.org, git-scm.com |
| shell | runs commands |
| secrets | none found |
What it actually does
The skills and persona agents tell Claude to give located feedback, ask Socratic questions, check structure and consistency, and help with literature, without writing manuscript prose. Python tools from the plugin folder do the following: append and annotate a JSONL AI log, generate disclosure files, scaffold a paper workspace, read bibliography files, verify DOIs against Crossref, and search a local Zotero. A hooks module (register.tsx, not included in the bundle) is documented to do the following: - add a CoWriting contract section to the system prompt; - log prompts and responses; - refuse writes to the author's files and compare those files before and after each tool call; - append briefings to persona subagent tasks; - hide catalogue personas that are not in the party; - convert .docx/.odt files with pandoc; - auto-commit manuscript/ and ai-log/ with git after a pause; - make model calls for live review, scope checks, diff summaries and briefing proposals. On /cowrite:init and on upgrade, the scaffold writes a workspace .claude/settings.json and a CLAUDE.md. The settings add Edit deny rules for the author's files and turn on Claude Code's Bash sandbox, with network limited to Crossref and doi.org. No credential reading, exfiltration, persistence or hidden instructions appear in the files provided.
What the check found
highChanges the agent's instructions or settings
Editing CLAUDE.md, AGENTS.md, memory files, hooks or MCP settings lets a tool keep steering the agent even after it's removed.
plugin/agents/librarian.md:20 - Your Write tool is for `notes/ai/` only. Every other file in the paper (`literature/`, `references.bib`, `CLAUDE.md`, `party.md`, settings) is the author's; t
highChanges the agent's instructions or settings
Editing CLAUDE.md, AGENTS.md, memory files, hooks or MCP settings lets a tool keep steering the agent even after it's removed.
plugin/templates/workspace/.claude/settings.json:8 "Edit({{prefix}}CLAUDE.md)",
highChanges the agent's instructions or settings
Editing CLAUDE.md, AGENTS.md, memory files, hooks or MCP settings lets a tool keep steering the agent even after it's removed.
plugin/templates/workspace/CLAUDE.md:7 - Claude writes only in `notes/ai/`, `scope.md`, `disclosure/`, `party/` (the author's own review experts, drafted at their request) and the log. Every other fi
mediumChanges the agent's instructions or settings
Editing CLAUDE.md, AGENTS.md, memory files, hooks or MCP settings lets a tool keep steering the agent even after it's removed.
CHANGELOG.md:57 - New `/cowrite:paper upgrade`: lists what the active workspace lacks against the current templates (deny rules and sandbox paths in `.claude/settings.json`, th
CHANGELOG.md:89 - The hook refuses file tools and shell writes for any of the author's files in the paper (`literature/`, `CLAUDE.md`, `party.md`, `paper.json`, `.claude/`, `.v
CHANGELOG.md:91 - The workspace's `.claude/settings.json` (from `/cowrite:init`) now carries `Edit` deny rules for all of the author's files and turns on Claude Code's Bash san
mediumChanges the agent's instructions or settings
Editing CLAUDE.md, AGENTS.md, memory files, hooks or MCP settings lets a tool keep steering the agent even after it's removed.
README.md:149 **Updated the plugin?** A workspace keeps the rule files it was set up with (`CLAUDE.md`, `.claude/settings.json`), and they are yours, so the plugin never chan
README.md:279 3. **The workspace's settings** (`.claude/settings.json`, written by `/cowrite:init`, added to an older workspace by `/cowrite:paper upgrade apply`) add Claude
mediumHas a hidden comment that speaks to the agent
HTML comments don't show when Markdown is displayed, but agents read them.
examples/demo-paper/CLAUDE.md:22 - AI notes go to `notes/ai/` with the header `<!-- AI-generated (Claude), <date>, not manuscript text -->`.
mediumHas a hidden comment that speaks to the agent
HTML comments don't show when Markdown is displayed, but agents read them.
examples/demo-paper/notes/ai/README.md:1 <!-- AI-generated (Claude) notes live here. Nothing in this folder is manuscript text. -->
mediumHas a hidden comment that speaks to the agent
HTML comments don't show when Markdown is displayed, but agents read them.
examples/demo-paper/party.md:34 <!-- e.g. the voice you want (first person or not), what you like about your model papers, habits to break. -->
mediumChanges the agent's instructions or settings
Editing CLAUDE.md, AGENTS.md, memory files, hooks or MCP settings lets a tool keep steering the agent even after it's removed.
plugin/README.md:44 **Prompts.** On `prompt.compose` it adds one section to the system prompt: the CoWriting contract (the assist-only rules the author's `CLAUDE.md` also states) a
mediumHas a hidden comment that speaks to the agent
HTML comments don't show when Markdown is displayed, but agents read them.
plugin/agents/style-coach.md:24 - Start the file with `<!-- AI-generated (Claude), <date>, not manuscript text -->`.
mediumHas a hidden comment that speaks to the agent
HTML comments don't show when Markdown is displayed, but agents read them.
plugin/agents/terminologist.md:35 - Start the file with `<!-- AI-generated (Claude), <date>, not manuscript text -->`.
mediumHas a hidden comment that speaks to the agent
HTML comments don't show when Markdown is displayed, but agents read them.
plugin/templates/workspace/CLAUDE.md:23 - AI notes go to `notes/ai/` with the header `<!-- AI-generated (Claude), <date>, not manuscript text -->`.
mediumHas a hidden comment that speaks to the agent
HTML comments don't show when Markdown is displayed, but agents read them.
plugin/templates/workspace/notes/ai/README.md:1 <!-- AI-generated (Claude) notes live here. Nothing in this folder is manuscript text. -->
mediumHas a hidden comment that speaks to the agent
HTML comments don't show when Markdown is displayed, but agents read them.
plugin/templates/workspace/party.md:36 <!-- e.g. the voice you want (first person or not), what you like about your model papers, habits to break. -->
mediumHas a hidden comment that speaks to the agent
HTML comments don't show when Markdown is displayed, but agents read them.
plugin/templates/workspace/scope.md:3 <!-- You write this file: your plan for the paper, in your words. CoWriting measures the manuscript against it
mediumChanges the agent's instructions or settings
Editing CLAUDE.md, AGENTS.md, memory files, hooks or MCP settings lets a tool keep steering the agent even after it's removed.
plugin/tests/cowriting.test.tsx:175 'cat a >> CLAUDE.md',
plugin/tests/cowriting.test.tsx:269 const rules = await $.tool.call({ tool: 'Edit', file_path: 'CLAUDE.md', old_string: 'a', new_string: 'b' })
plugin/tests/cowriting.test.tsx:277 const elsewhere = await $.tool.call({ tool: 'Write', file_path: '/elsewhere/CLAUDE.md', content: 'x' })
mediumChanges the agent's instructions or settings
Editing CLAUDE.md, AGENTS.md, memory files, hooks or MCP settings lets a tool keep steering the agent even after it's removed.
plugin/tests/test_tools.py:123 for rule in ("Edit(manuscript/**)", "Edit(literature/**)", "Edit(CLAUDE.md)", "Edit(.claude/**)"):
plugin/tests/test_tools.py:162 for line in ("deny rule(s)", "the sandbox switched on", "CLAUDE.md: differs", "party roster to add", "+ notes/ai/README.md", "Nothing changed yet."):
plugin/tests/test_tools.py:172 self.assertIn("Edit(CLAUDE.md)", settings["permissions"]["deny"])
mediumContains invisible characters
Zero-width and other invisible characters can hide words or split them so filters and reviewers miss them.
plugin/tools/bibliography.py:160 m = RIS_LINE.match(raw.strip("⟦U+FEFF⟧"))
mediumWrites workspace Claude Code settings that enable the Bash sandbox (auto-allow without prompts)
/cowrite:init and `upgrade apply` write .claude/settings.json and CLAUDE.md into the paper workspace. The settings mostly tighten things: Edit deny rules and a network allowlist. However, turning on the sandbox means Claude Code runs sandboxed Bash commands without a permission prompt by default. The plugin discloses this and tells users how to turn the prompts back on. Users should know their permission prompts change in that workspace.
plugin/templates/workspace/.claude/settings.json:16 "enabled": true,
README.md:279 3. **The workspace's settings** (`.claude/settings.json`, written by `/cowrite:init`, added to an older workspace by `/cowrite:paper upgrade apply`) add Claude
mediumMain hooks module running inside Claude Code was not available for review
Most of the runtime behaviour lives in hooks/register.tsx and core.ts, which were left out of this bundle. That code intercepts every tool call, every prompt and every subagent spawn, and runs git, pandoc and python. The tools ailog.py, new_paper.py, verify_refs.py and zotero_search.py were also left out. The README's hook-by-hook description is detailed and consistent with the tests, but it could not be checked against the source.
plugin/README.md:40 The plugin is a mod: `hooks/register.tsx` runs inside Claude Code. This is everything it hooks, runs, writes and sends, so that you can check it against the sou
plugin/hooks/hooks.json:1 { "modules": ["./register.tsx"] }
mediumCore hook module and all Python tools not available for review
The plugin's behaviour is mostly in register.tsx, core.ts, personas.ts and the Python tools. All of them were omitted from the bundle. The hook module injects into the system prompt, intercepts every tool call, appends text to subagent tasks, runs git/pandoc/python3 and makes model calls. The README describes all of this in detail, and nothing visible contradicts it. Still, that description can't be verified, so a person should read register.tsx and the tools before listing.
plugin/hooks/hooks.json:1 { "modules": ["./register.tsx"] }
plugin/README.md:44 **Prompts.** On `prompt.compose` it adds one section to the system prompt: the CoWriting contract (the assist-only rules the author's `CLAUDE.md` also states) a
plugin/README.md:48 **Subagents.** On `agent.offer` it hides catalogue personas that are not in this paper's party. On `agent.spawn` it appends two things to a persona's task: wher
Keep an eye on it
This check is of one commit. Watch cowrite and we'll email you if a later commit changes what it can touch.
Made this? Add the badge
[](https://plugsday.com/tools/dozwa-claude-cowriting)About this check
Checked November 5, 2026 at commit edee81888732, 101 files. Rules for known red flags, then two Claude reviews, one of them told to assume the author is malicious. A later commit hasn't been checked. How checks work.