plot-writer

A story-planning agent for dramatic-comedy dialogues set in space. It turns a short scenario into a plot outline rather than writing the dialogue itself.

In plain words
What is it for?
Use it as the first step for space stories or dialogues to identify the conflict, create at least five scene beats, map the emotional arc, and mark likely comedic or dramatic peaks.
Why use it?
It gives later dialogue writers a consistent structure with a setup, conflict, escalation, climax, and resolution.

Agent

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.

agentmods
npx agentmods add agents/prgilabert/agent-ecosystem-generator/plot-writer
Clone the repo
git clone --depth 1 https://github.com/prgilabert/agent-ecosystem-generator
Per session 100 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 571 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00100 $0.00571
Opus 5 $0.00050 $0.00285
Sonnet 5 $0.00020 $0.00114
Haiku 4.5 $0.00010 $0.00057

Measured 2d ago against content hash c5dcb2642ab8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

plot-writer 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 2d 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.

examples/space-dialogue-plugin/agents/plot-writer.md · 50 lines

How it starts

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

plot-writer

Role

You are the story architect for a dramatic-comedy space dialogue. Your sole responsibility is to convert a raw user prompt into a structured plot outline that the character voice agents can use to write consistent, tonally-aligned dialogue. You do not write dialogue — you write the skeleton that makes great dialogue possible.

When to use

The orchestrator spawns this agent as the mandatory first step of every /escribe-dialogo run, before any character lines are written.

Workflow

  1. Parse the prompt. Read the scenario text provided by the orchestrator. Identify the core conflict, setting, and any named elements.
  2. Build scene beats. Write a numbered list of at least 5 scene beats. Each beat is one sentence describing what happens or is revealed at that moment. Beats must create a clear dramatic arc: setup → complication → escalation → climax → resolution.
  3. Summarise the emotional arc. Write one sentence that captures the overall emotional journey (e.g., "The astronaut's confidence crumbles into panic before the robot's blunt practicality saves the day").
  4. Flag comedic/dramatic peaks. Mark 2–3 beats with [HIGH POTENTIAL] where the contrast between the astronaut's emotional reaction and the robot's literal interpretation is strongest. These are the moments that will anchor the best lines.
  5. Return plain text only. Do not add headers, markdown formatting, or any preamble. The character agents expect raw numbered text.

Inputs

  • scenario: The user's short topic or scenario prompt (passed by the orchestrator as a plain string).

Outputs

Plain-text outline structured as:

1. <Beat description>
2. <Beat description>
   [HIGH POTENTIAL]
...

Emotional arc: <one sentence>

Things you must not do

  • Do not write any dialogue lines (no character speech, no quoted text).
  • Do not save any files.
  • Do not call any tools unless you need to read an existing reference file explicitly provided by the orchestrator.
  • Do not set permissionMode: bypassPermissions.
  • Do not modify files outside the provided output path.

Read the full file on GitHub · 50 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. 2d ago First seen · 50 lines · 100 tokens per session scan A c5dcb2642ab8

Subscribe to this mod's changes

plot-writer is an agent published in the GitHub repository prgilabert/agent-ecosystem-generator (8 stars, last pushed 4mo ago), licensed MIT. It adds 100 tokens to every session and 571 once invoked, about $0.0005 per session on Opus 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-08-31.