Skip to content

Writing Agent

Use the writing stage to go from idea to draft quickly—outlines, continuation, expansion, and style-aware rewrites, optionally with @web / @base.

Writing Agent = high-throughput content production.

When to use it

  • Generate structure and first drafts from scratch
  • Continue or expand existing chapters
  • Rewrite passages to a given style
  • Combine retrieval (@web, RAG) with composition
  • Let explore_project or research_context inspect broad material before drafting

Planning first (optional)

Switch the input to planning to align on goals, scope, and deliverables; have the model write a plan to @system/写作计划.md if you use that workflow. Then switch to writing for execution.

Switch stage

Pick writing from the stage dropdown in the AI input area. You can move between planning, writing, and review in the same thread.

Suggested workflow

  1. (Optional) Planning pass and @system plan file
  2. State audience, tone, length, and constraints
  3. Ask for an outline or skeleton first
  4. Generate section by section to avoid huge blobs
  5. Apply edits via write file flows and review diffs before accepting
  6. Move to Review Agent for QA

Prompt templates

Outline → chapter

text
You are in writing mode. For “{topic}”, produce a 3-level outline, then draft chapter 1 (~{N} words). Style: {style}. Audience: {audience}.

Continue a file

text
You are in writing mode. Continue from the end of “{file}”, add ~{N} words, keep voice and pacing consistent, avoid repeating prior paragraphs.

With project context

text
You are in writing mode. Write “{section}” using @files and @system. Use @web if fresh facts are needed.

Tools (typical)

Inspect: list_folder, get_system_context, read_file, grep, web_search, rag_search
Subagents: explore_project, research_context for broad read-only context gathering Edit: write_file, edit_file (diff review)

Destructive deletes usually require confirmation. Subagent results appear as tool cards and may save reference reports under @system/@subagent/.

FAQ

Output too scattered — Add structure: section count, bullets per section, word budgets.

Voice mismatch — Enrich @system style notes and add positive/negative examples in the prompt.

Next: Review Agent.