--- description: Media generation (reports, revisions, video cuts, narration) routed by the operator's balance policy — Claude Code, the Claude API, or the local model --- The operator balances media-generation work between this Claude Code session, the Claude API (billed apart from the Code plan) and the local model (free). The policy — `settings.generation`, in the editor — decides who does each task. Use the archilyzer MCP tools only; run no script for it. 1. Call `mcp__archilyzer__generation_policy` with no arguments and read the routes, the models and the day's spend. 2. Map the request below to tasks: `sweep` (a new cited report), `revise-report` (a new iteration of an article's report from feedback), `revise-video` (a new iteration of its video cut from feedback), `research` (find what the corpus lacks and propose acquisitions — archive.org imports, channels, posts — under an autonomy: propose, limits or auto; a sweep with the research run's iteration continues it over the widened scope). A request to draft part of a done iteration's video cut is a media draft, a step on that iteration (`iteration`; `entries` to limit it): - `cut` — "pick the clips", "reorder the cut", "cut it down"; - `onscreen` — "draft the on-screen titles", "titles and subtitles"; - `teaser` — "make a teaser", "the teaser lines"; - `flips` — "then and now", "the flip-flops", "THEN/NOW pairs"; - `threads` — "group the clips into threads", "the threads panel"; - `narrate` — "narrate it", "the card narration"; - `youtube` — "YouTube title", "YouTube description", "the upload text"; - `social` — "a tweet", "an X post", "a Bluesky post", "promote it", "the social text" (text only: nothing is posted; the link and the length limits are code's). "Draft everything" (every media draft in order, then voices, a fast build and the podcast) is the operator's button on umtool's Iterations tab, or `umtool chain
--draft-all`; it is not a `generate` task. The clip fetches, voices, render and podcast are the pipeline's code, not generation: the operator runs that chain from umtool. 3. For each task routed to `api` or `local`, call `mcp__archilyzer__generate` with the task, the article, its inputs (question and channels for a sweep or research run; iteration and concrete feedback for a revision; iteration, and `entries` when the operator named some, for a media draft) and `wait: true`, and do not redo its work yourself. If it answers still running, call it again with the job, article and iteration it names — never start the same task twice. Then REVIEW what it made, as its answer says: read the iteration's files, spot-check its quotes with `mcp__archilyzer__get_transcript`, read the ops it refused and its checks, and tell the operator what is good and what is not. Recommend making it current (the operator does that in umtool) or a revision; for a revision, call `generate` again with that feedback. A research run's proposals are the operator's to approve (umtool's research queue); say which you would approve and why. A media draft's review is as its answer says: its `-draft.json` and the drafted fields; the operator approves or rejects each field in umtool (the project page's Review drafts) — never write `drafts.review.json` yourself. `force: true` re-drafts only what a model drafted; a field the operator wrote is never replaced. Edit an iteration's files by hand only if the operator asks. 4. For each task routed to `code`, do it yourself as usual: `/sweep` for a report (its plan reads the same policy). **Except `verdicts`** (proposed verdicts for a fact-check's unruled claims): it runs only on a model in `settings.generation.verdicts.models` (the verdict bench's bar) — `generate` with task `verdicts`, the article and that `model`. Never propose or rule a claim's verdict yourself, whatever the route; the proposals are the operator's to approve or reject in umtool (Inbox → Review verdicts), never written by hand. **And `clips-suggest`** (labels, a why and a rank for the clip finder's proposals in a umtool reactions project, named by its directory — "label the clips of "): `generate` with task `clips-suggest` and `project`. Routed to code, its answer is the request — the moments with their speakers' words — which you label in this session and send back with `generate` again (`answers: {"items": [{"id", "label", "why", "score"}]}`, at most six words a label); the editor reads them as a model's answer and writes `clip-suggestions.json`. Never write that file, a clip or the manifest yourself: the labels are suggestions the operator sorts by in the clip editor. **And `video-assist`** (a small change to a umtool video project in words — "make the joins 0.15 s with less smear on "): `generate` with task `video-assist`, `project` and `request` (or `note`, a note on the whole project). It is local in every preset but `api`; routed to code, its answer is the request — the project's look, clips and declared composition params — which you answer in this session and send back with `generate` again (`answers: {"ops": [{"op", "id", "key", "value"}], "reply"}`); the editor checks them as a model's and writes `assist-proposals.json`. They are proposals: the operator applies them in umtool's Ask box. Never edit the manifest or that file yourself. **And `propose-groups`** (claim groups for a umtool video project's cut — "propose claim groups for "): `generate` with task `propose-groups`, `project` and optional `request` (words for the ask). Local in every preset but `api`; routed to code, its answer is the request — the cut's clips by section — which you answer in this session and send back with `generate` again (`answers: {"groups": [{"section", "claim", "ids", "why"}]}`: clips standing together in one section that make one claim); the editor checks them as a model's and writes `group-proposals.json`. They are proposals: the operator accepts or rejects each on umtool's Cut tab. Never edit the manifest or that file yourself. 5. `via: "api"` or `"local"` on `generate` (or `via=` in a `/sweep` request) overrides one run when the operator asks for it. To move the balance itself, `generation_policy` with `preset` (code, balanced, api, local) or with `task` and `route` — only when the operator asks. The request: $ARGUMENTS