> ## Documentation Index
> Fetch the complete documentation index at: https://comfyreel.org/llms.txt
> Use this file to discover all available pages before exploring further.

# ComfyReel Agent

> Chat with an agent that writes, shoots and edits on your canvas.

The **ComfyReel Agent** is a tool-using agent that runs on your machine and works on the open canvas: it reads it, adds and links nodes, writes scripts, generates, applies image and video tools, cuts timelines and builds 3D scenes. Open it with the **ComfyReel Agent** button at the bottom.

![ComfyReel Agent docked on the right: starters and job cards of a new chat](https://mintcdn.com/comfyreel/Pmftaa_AWO286WCQ/images/agent-panel.webp?fit=max\&auto=format\&n=Pmftaa_AWO286WCQ\&q=85\&s=f1533ce6d144c39ff45332376fefc200)

## Turn it on

The agent is off by default. Open **ComfyReel Agent settings** (the sliders icon in the chat header) and, under **Agents on this machine**, turn on **Enable MCP: let the agent read and edit the canvas** and **Enable the agent: use Claude Code, Codex, Qwen Code, DeepSeek Harness, Hermes, CodeBuddy, OpenCode, Antigravity or a local LLM on this machine**.

![ComfyReel Agent settings: collaboration, autonomy level, notifications and the switches under Agents on this machine](https://mintcdn.com/comfyreel/Pmftaa_AWO286WCQ/images/agent-settings.webp?fit=max\&auto=format\&n=Pmftaa_AWO286WCQ\&q=85\&s=dc0c02007e455a393c4544d5cf19046e)

| Agent | What it needs |
| - | - |
| Claude Code | `claude` on PATH, logged in |
| Codex | `codex` on PATH, logged in |
| Qwen Code | `qwen` on PATH with a model configured |
| DeepSeek Harness | `dsh` on PATH, signed in. The model list includes the models of the providers you added in DeepSeek Harness. |
| Hermes | `hermes` on PATH, or Hermes Agent on another machine reached over SSH, set in **Hermes SSH host**; **Hermes profile** picks the profile it runs with |
| CodeBuddy | CodeBuddy Code (`codebuddy`, the engine of WorkBuddy) installed and signed in with `/login` |
| OpenCode | `opencode` on PATH; sign in with `opencode auth login` or connect a provider in OpenCode |
| Antigravity | the Antigravity CLI (`agy`) installed; sign in with `agy acp --login` |
| Local LLM | any OpenAI-compatible endpoint with tool calling, set in **Local LLM URL (OpenAI compatible)**; set `COMFYREEL_LOCAL_LLM_API_KEY` before starting ComfyUI if it needs a key |

Pick the agent and its model per chat with the chip next to the mode in the input box. Each agent uses its own login on this machine.

![The agent picker: detected agents with their versions, and the model list](https://mintcdn.com/comfyreel/Pmftaa_AWO286WCQ/images/agent-pick.webp?fit=max\&auto=format\&n=Pmftaa_AWO286WCQ\&q=85\&s=600ac07035d2b5ebdd1934c0a048ce38)

> [!NOTE]
>
> Text nodes, scripts, prompt translation and optimization, edit text, shot breakdown and other one-shot writing tasks also go through an agent: the **Default agent** from the settings, or the first available one. They need the agent turned on too.

## Settings

* **Generate images/videos/audio/scripts automatically**: off means the agent asks before each generation. It applies to new chats; switch the current chat at the bottom of the input box, which also becomes your default.
* **Agent Autonomy Level**: **Low Autonomy**, **Balanced** or **High Autonomy**, sent with every request.
* Browser notifications and a sound when a reply finishes.
* **Also mount the official comfy-mcp (read-only tools)** and **Let Claude Code, CodeBuddy, OpenCode and Antigravity use their own web search and web page tools** are opt-in; **comfy-mcp command** points at a comfy-mcp you installed elsewhere.
* **External MCP clients can generate** (on by default): MCP clients outside the panel may run nodes, tools, script batches and cuts without the panel's approval cards. Turn it off to keep generation in the chat.
* **Default agent**: the agent that writes text nodes, scripts and the other one-shot tasks.
* **Local LLM URL (OpenAI compatible)**, **Hermes SSH host** and **Hermes profile** set up those two agents.

![Agents on this machine: comfy-mcp, web search, external MCP runs, the default agent and the agent addresses](https://mintcdn.com/comfyreel/Pmftaa_AWO286WCQ/images/agent-machine.webp?fit=max\&auto=format\&n=Pmftaa_AWO286WCQ\&q=85\&s=53bdd8bfbdd646dc04a7740cc0d99e1f)

## Chatting

* **Creation modes**: **All-round**, **Script writing** (**Original script**, with story starters and script settings: genre, tone, lead types, time and place, story engine, look and structure; or **Story adaptation**, with an adaptation direction and episode count) and **Directing**. A request that fits another mode can be handed over to a new chat in that mode.
* Starters on a new chat: **Pick up from my canvas**, **Start a script from story settings**, **Upload a story to adapt**, **Break down a reference video**, plus job cards: teaser from a logline, cast and location bible, pilot episode, single-location short, chapter adaptation, coverage for one scene, 15-second product spot, visuals for a song and shot review. In Directing mode the starters plan blocking and camera or check shot continuity.

![The mode menu of the agent input: All-round, Script writing, Directing](https://mintcdn.com/comfyreel/Pmftaa_AWO286WCQ/images/agent-modes.webp?fit=max\&auto=format\&n=Pmftaa_AWO286WCQ\&q=85\&s=2eea1ddf2e189102c2ecaf85a22ef5a8)

* **Add attachment**: images, videos, audio, PDF, Word (.docx), text and Markdown files up to 20 MB each, with **Upload from computer** or **Add from library**. Text in PDF and Word files is read locally and given to the agent; attached audio and media can be placed on the canvas as nodes.
* @ mention canvas nodes or subjects, and use **Voice input** (transcribed locally).
* **Skill**: type `/` or click the skill button to pick a skill. Built-in skills cover an explainer video, batch ad variants, a beat-synced montage, a short drama, a character sheet, a product showcase, a noir mystery short, a nature documentary scene, a sitcom cold open, a fantasy trailer, a food commercial, a travel reel, a horror short, an animated ad for kids' products, a lyric video and an interview with cutaways, grouped by category in the skill library. The skill library lets you view, create (from the canvas or the chat), edit with AI optimize and a diff view, import, favorite and delete skills, including multi-file skills.

![The skill picker: recommended, favorites and your own skills](https://mintcdn.com/comfyreel/Pmftaa_AWO286WCQ/images/agent-skills.webp?fit=max\&auto=format\&n=Pmftaa_AWO286WCQ\&q=85\&s=2db36ed8e98809f2dd4023a2a378cdfc)

* **Director roles**: custom style-rule personas you create, import (.md), switch and edit.
* While it works, messages you send are queued (**Send now** pushes one into the running turn); the stop button shows when the input is empty and ends the turn within a second or two, even in the middle of a long tool call.
* When the agent reasons before answering, its thinking streams into a block that folds away once the reply starts; open **How it thought** to read it again.
* Questions replace the input box with a card: single or multiple choice, an **Other** answer or free text. Several questions page with **Continue**; **Required** ones must be answered before **Submit**, and **Ignore** dismisses the card. The answers stay in the chat under **Asked**.
* With automatic generation off, the agent's generations arrive as a review card: one row per node with its prompt, which you can edit, and a box to include or leave out each one. **Generate all**, **Generate N picked** or **Skip all**; **Auto-confirm in this chat** stops asking for the rest of the chat. The agent hears which ones ran, which you skipped and which prompts you changed. Tools and batch generations still ask with a single **Generate** / **Cancel** card.
* Plans show as a card to **Carry out** or **Revise**, and a bar above the input shows the current step and progress. When steps name their nodes, the card adds a table of those nodes with their live state (not generated, generating, done, failed): pick by **Not generated**, **Images** or **Videos**, click a name to find it on the canvas, and **Generate** the picked ones yourself.
* Asked to improve prompts, the agent proposes them on a card: old and new prompt per node, **Use** one, **Use all**, and **Undo** to put the old prompt back.
* In a multi-episode screenplay, the agent stops after each episode with a card showing the episode and a short summary: **Write episode N** (with optional notes for it), **Write the rest straight through**, or **Stop here**.
* **Final cut**: the agent can lay a script's shot videos into a smart edit node in shot order, with voice-overs under their shots, optional music and transitions. The card shows the length, any shots still waiting for a video, **Locate** and **Open editor**; export from the edit node.
* **Other canvases**: the agent can list, read and search your other canvases, create a new one and offer it on a card with **Open here** and **New tab**. It edits only the canvas its chat belongs to.
* Finished tool calls of the same kind collapse into one line.
* **Results of this chat** (the grid icon in the header) gathers every image, video and audio the chat produced, filtered by kind; click one to find it on the canvas.
* Thumbs up or down rate a reply; thumbs down opens a few reasons and a note. Ratings are saved with the chat on your machine.
* **Chat history** lists saved chats by relative time, with search; rename them inline or delete them after a confirmation. Unnamed chats are called **Untitled chat** with their creation time.
* With Claude Code, a context meter shows how full the session is; compress it manually or automatically into a summary that seeds a fresh session.

## What it can do

The agent works through the [MCP tools](https://comfyreel.org/guides/mcp.md): read the canvas and look at results, add, edit, link, group and delete nodes, generate and wait, apply image and video tools, write scripts and run script batches, write screenplays section by section, read and edit smart edit timelines (clips, subtitles, transitions), assemble a final cut from a script, analyze videos and extract frames, build 3D Director scenes and their code, use the subject library, keep notes in a per-project workspace, read and create other canvases, propose prompts, and run self-contained tasks in parallel sub-agents.

Canvas tools are executed by the open ComfyReel tab of the project, so keep it open while the agent works.

## Where things are stored

* Chats: `user/__comfyreel/data.db` (SQLite).
* Your skills: stored in `user/__comfyreel/data.db`; built-in skills ship in `skills/`.
* Project workspace files: `user/<user>/comfyreel/workspace/<project>/`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.