PanWrite
Write the paper.
Also: Proposal. Presentation. Poster.
Human-guided research and writing workflows for AI coding agents.
PanWrite gives your coding agent one portable academic method: interview the
author, map the evidence, record decisions, build an outline, plan and draft
one section at a time, review it, and resume later from durable state. You keep
the scientific judgment. The agent keeps the bookkeeping and does bounded jobs.
It runs on PanCode as two packages a
deterministic compiler builds from one protocol: an
Agent Plugins 1.0.0 plugin with the skills,
prompts, role agents and playbooks, and the writing desk extension that runs
the gates, records and write guard in code. The plugin's seven skills also
install directly in Claude Code, Codex and Copilot CLI. PanWrite 1.0.0 was the
last npm release; WTF-P releases up to 0.9.1 stay on npm under the old wtf-p
package name.
Literature search runs through PanCite: citation-search --backend=pancite
queries Crossref, DataCite and Europe PMC by default, plus explicitly selected academic
APIs, through the PanCite MCP server. Results keep their source
evidence and stay candidates. PanCite is a separate Python package
(pip install pancite==0.4.0) that PanWrite never installs for you; without it the
research actions run no search. Research actions reach it on PanCode only: the
skills-only installs on Claude Code, Codex and Copilot CLI bind no tool.execute,
so they run no bundled tool.
Install on your agent
On PanCode, with PanCode's hub. PanWrite ships to PanCode as two packages:
the Agent Plugin in pancode/plugin/ and the writing desk extension in
pancode/extension/. PanCode installs both, pins them by digest and reviews
the desk's capability envelope:
pancode hub install plugin:panwrite
pancode hub install extension:panwrite
Until the PanCode hub lists panwrite, install the same two packages from a
checkout of this repository:
git clone https://github.com/PanStudio/panwrite && cd panwrite
pancode hub install ./pancode/plugin --user
pancode extensions install ./pancode/extension --user
Both packages declare pancode: ">=0.9.0", and PanCode itself requires
Node.js 22.19 or newer. Remove them with pancode hub remove plugin:panwrite
and pancode hub remove extension:panwrite. An install made by the 1.0.0 npm
installer is removed the same way; then delete the .panwrite-version receipt
it left in PanCode's configuration directory.
Skills on Claude Code, Codex and Copilot CLI. Their plugin managers read
a marketplace straight from this repository and install the Agent Plugin in
pancode/plugin/ itself. They load its seven skills; the slash commands, role
agents, playbooks and the desk are PanCode's:
claude plugin marketplace add PanStudio/panwrite && claude plugin install panwrite@panwrite
codex plugin marketplace add PanStudio/panwrite && codex plugin add panwrite@panwrite
copilot plugin marketplace add PanStudio/panwrite && copilot plugin install panwrite@panwrite
The commands and what each host loaded are recorded in
Host capabilities.
Sixty-second start
pancode hub install plugin:panwrite && pancode hub install extension:panwrite
cd /path/to/your-paper-or-proposal
pancode --autonomy yolo
/panwrite:help
/panwrite:new-paper I am preparing a research proposal on reproducible scientific workflows. Interview me before deciding the scope, claims, evaluation, team, budget, or timeline. Use only the evidence I provide and mark unknowns instead of inventing citations.
The agent interviews you, previews the five initial project records, and waits
for your approval before writing anything. PanCode has two autonomy levels,
default and yolo; yolo removes PanCode's approval cards, while every PanWrite
gate and interview question still waits for you, because PanWrite asks them as
questions only you may answer. Every host uses the same
/panwrite:<action> names except Codex, which exposes the same actions through
seven native skills: mention $panwrite-start-project and ask for the
new-paper action with the same brief.
On PanCode, one command then carries the project forward:
/panwrite:advance run the next actions until a decision is yours