# Cues for agents

Reference for AI agents in a Cues workspace: connecting to the Cues MCP, the skills, the folder layout, the rules and the settings file.

This page is written for AI agents.

Every tool is in [Cues MCP tools](/docs/mcp-tools), one page per area. Every docs page is also served as Markdown at its URL plus `.md`, and all of them in one file at `/llms-full.txt`.

## What Cues is

| Fact | So |
| --- | --- |
| A local Mac app | Projects, recordings and rendering stay on the user's Mac. |
| It runs no AI | You, the user's agent, are the AI. You work in the workspace and act on the app through the Cues MCP. |
| One tool per operation | Everything the user can do in the app, you can do through the MCP, except recording and settling your edits. |
| Live and undoable | Your changes show in the app at once. The user undoes them with ⌘Z. |
| Visuals are made outside the app | You make them in the workspace. The app stores, places and renders them; it never draws them. |
| The story lives in Cues | Each cue's title, outline and script. Write them straight into Cues with `outline_set`, `script_set` and `cue_add`, never as drafts in the conversation. |
| The user settles your edits | What you write stays highlighted for the user to accept or undo in the app. `review_get` lists what they haven't settled. |
| Only the user records | When a project is ready, ask the user to press **Record** in the editor, or ⌥⌘R for the recorder alone. |
| A license gates changes | When Cues isn't activated or is read-only, tools that change things are refused. Check `license_get`; see [License and updates](/docs/mcp-app#license-and-updates). |

## Connect

The app serves the Cues MCP on the Mac while it runs. The workspace's config files point to it under the server name `cues`. Read the connection from them; do not hard-code a URL or port.

| File | Read by |
| --- | --- |
| `.mcp.json` | Claude Code and other agents |
| `.codex/config.toml` | Codex |
| `.amp/settings.json` | Amp, under `amp.mcpServers` |

- **Approval:** Claude Code connects without asking, because `.claude/settings.json` approves `cues` (`enabledMcpjsonServers`). Other agents may ask the user to approve or trust the workspace's servers the first time; it's `cues` they approve.
- **Check:** call `project_list`. If it answers, you're connected. In Cues's terminal, `cues status` also says whether Cues and the MCP are running.
- **Not connected:** ask the user whether Cues is open, and to open it if not. If it is, the user may need to approve the workspace's MCP servers in their agent or restart the session; help them. In Cues's terminal, the title bar's **Agent not connected** badge has **Restart agent**. Then call `project_list` again.
- **Tool names:** Cues operation names with dots as underscores: `project.create` is `project_create`.
- **Other apps:** an agent started in the workspace folder in another terminal or desktop app connects the same way, through these files.

For the user, [Cues MCP](/mcp) explains in plain words what you can do through it.

## The Cues skills

They live in `.agents/skills/`. Some Cues sends to the agent in a terminal tab by itself, or when the user clicks a button.

| Skill | Does | When Cues asks for it |
| --- | --- | --- |
| `cues-start` | Suggests where to start: a recent project at its next step, new ideas, or the user's own idea. Lists every Cues command. Only reads; the skill picked makes the changes. | The terminal's first tab: on the dashboard, where to start; in a project, that project's next step. None in Settings. |
| `cues-setup` | Sets up or repairs the workspace: context, brand, illustration engine and tools, then checks the connection. | The first tab in a workspace whose setup isn't done, and after **Install …** in a tab of a new workspace. |
| `cues-story-pitch` | Reads source material and pitches story ideas, each a title and two-sentence description. Pushes the picked ones into Cues as ideas and saves their material in the project's `sources/`. | **Generate ideas**, in the dashboard's **New idea** menu. |
| `cues-write` | Writes a chosen idea's outline (hook, beats, payoff) into Cues, waits for the user to lock it, then writes each cue's script in the user's voice when they pick it. | Never; the user asks. |
| `cues-visuals` | Pitches each cue's visual and layouts, then makes the visuals with the style pack and illustration engine, checks each with Render preview and pushes it to the visual library, shown in its cue. Adds a shot for B-roll not recorded yet. | **Ask agent to create image…** in a cue's visual picker. |
| `cues-animate` | Builds animated visuals in the HyperFrames composition format, with named steps pinned to the user's words. | Never; `cues-visuals` uses it for briefs marked animated. |
| `cues-broll` | Describes and tags B-roll clips from their frames, reusing existing tags, and organizes the B-roll library. | **Ask agent to fix** and **Describe with agent** in the B-roll window. |
| `cues-edit` | Aligns each take to the cues, places the cue dividers, frames the camera, picks takes, removes filler words and silences when asked, puts clip joints on words, pins animation steps and suggests layout changes. | When the transcript is ready for a take recorded without the presenter or added from a file, naming the project and the take. |
| `sync-spoken-audio` | Lines up each take's voice with the speaker's lips, newest take first, keeping the screen with the camera. | **Sync with agent** in Recordings › Voice sync. |
| `cues-styles` | Lists, checks, installs and removes style packs, and creates custom packs through an interview. | Never; the user asks. |
| `cues-push` | The bridge to Cues through the MCP: ideas, projects, cues, outline and script, visuals, layouts, takes, transcripts, the edit, export and settings. Asks before deleting. | Never directly; the other skills use it. |

**The order a story takes:**

1. `cues-story-pitch` for ideas.
2. `cues-write` for the outline, which the user locks.
3. In the order the user picks: the visuals and layouts (`cues-visuals`, with `cues-animate` for animations) and the script (`cues-write`).
4. The user records.
5. `cues-edit`, with `sync-spoken-audio` when the voice and lips don't match.
6. Export with `cues-push`.

When the user asks where to start, run `cues-start`. When they ask what's next on a project, look at where it is (`project_get`, `script_get`, `take_list`, `timeline_get`) and offer only the steps it hasn't had yet, the next one first. Agents never record B-roll: they add a shot for the user to record.

## Workspace paths

| Path | Holds | Owner |
| --- | --- | --- |
| `AGENTS.md` | Your instructions | Cues |
| `.agents/skills/` | The Cues skills | Cues |
| `.agents/skills/hyperframes/` | HyperFrames' agent skill, pinned to one release, for the animation format and motion | `cues-setup` |
| `.mcp.json`, `.codex/config.toml`, `.amp/settings.json` | The Cues MCP connection; see [Connect](#connect) | Cues |
| `.claude/settings.json` | Approves `cues` for Claude Code (`enabledMcpjsonServers`) | User; Cues keeps `cues` in the list |
| `INSTALLED.md` | Every install, with version, location and purpose. Its presence means setup is done. | `cues-setup` |
| `context/CONTEXT.md` | Index of the user's context: outside locations and files in `context/` | User |
| `brand/brand.json` | The brand, as Settings › Branding edits it: colors, fonts, the default logo and Text on screen styles | User |
| `brand/logos/` | Logo files | User |
| `illustration/ENGINE.md` | The illustration engine, its request type and settings | User |
| `styles/` | Style packs, one folder each | Cues (baseline packs), user (custom packs) |
| `tools/package.json`, `tools/package-lock.json` | The libraries, pinned to exact versions, and the lockfile | Cues |
| `tools/setup.sh` | Installs the libraries, running npm the way `tools/node.sh` says | Cues |
| `tools/node.sh` | Prints the `node` and `npm` commands to use here, or runs them: `tools/node.sh npm …` | Cues |
| `tools/node_modules/` | The installed libraries | `tools/setup.sh` |
| `projects/<project>/` | One folder per project, named by the project id the MCP returns | Cues, through the MCP |
| `projects/<project>/sources/` | A project's raw material: notes, transcripts, links | User |
| `projects/<project>/sources/visuals/` | Your visual briefs (`briefs.md`), visual specs and drafts | You |

Cues replaces the parts it owns on the first launch after an update, so changes to them don't last. It never touches the user's parts.

## Rules

**Before you start**

- No `INSTALLED.md` means setup isn't done: run `cues-setup` first.
- Before you pitch, write, make visuals or edit, read every entry `context/CONTEXT.md` lists. Refer to `context/CONTEXT.md` only; don't name the files or contents it lists.
- When you make visuals, read `brand/brand.json`, `illustration/ENGINE.md` and the project's style pack, by those paths.
- When the user says "this", "here" or "the selection", call `view_get`: it gives the editor's mode, the active cue, and the caret or selection in the outline, script or transcript.

**Changing things**

- Change projects through the Cues MCP, never by editing the files Cues manages in `projects/`. Only each project's `sources/` folder is yours to write.
- Before any permanent deletion, say what will be deleted and get the user's explicit approval. Tools that delete are marked destructive.
- Never write a secret, such as an API key, into the workspace; the user may back it up to git. Record the name of the environment variable that holds it.
- Use the user's words for the product: workspace, project, idea, cue, outline, script, status, visual, take.

**Installing**

- Install nothing without the user's agreement. Install workspace tools with `bash tools/setup.sh`.
- When a tool you need isn't installed, stop, tell the user in one or two plain sentences what's missing and why, and offer to install it.
- The skills' scripts and `tools/` need Node 22.12 or later. Run `node` and `npm` the way `tools/node.sh` says, and check once per session with `bash tools/node.sh`. It prints `cues node` and `cues npm` in Cues's terminal, and elsewhere the user's own `node` and `npm`, or a version this workspace pins.
- When `tools/node.sh` says Node 22.12 or later isn't installed:
  1. Run `bash .agents/skills/cues-setup/scripts/install-node.sh`. It says what it would install: the newest LTS release, with the user's version manager (nvm, fnm, mise or Volta) for this workspace only, or otherwise the official installer from nodejs.org.
  2. Say in a sentence or two why it's needed and what will change.
  3. With the user's OK, run it with `--install`. The nodejs.org installer opens on screen and asks for the user's password; wait until they say it's done.
  4. Run `bash tools/node.sh` again.

## Statuses

A project has exactly one status: Idea, Active, Backburner, Finished or Archived. An idea is a project with only a title and a description.

## The cues command

Only in Cues's terminal. See [The cues command](/docs/cues-command).

| Command | Does |
| --- | --- |
| `cues status` | Prints whether the app and the MCP are running; exits 0 when both are, 1 otherwise |
| `cues node` | Runs the Node runtime built into Cues |
| `cues npm` | Runs the npm built into Cues |

## The settings file

| Path or rule | Detail |
| --- | --- |
| `~/Library/Application Support/Cues/config/settings.json` | Every app setting, shortcuts included |
| `local.json`, in the same folder | Optional overrides for this Mac only; it wins over `settings.json` |
| Schema and README | Written next to the file. Read them before editing. |
| Edits | Apply at once. An invalid file is ignored: the app keeps the last valid settings, shows the error in Settings, and saves no changes made in Settings until the file is fixed. |
| Tools | `settings_get` returns the settings, the file's path and any error; `settings_update` merges changes. See [App settings](/docs/mcp-app#app-settings). |

---

This is the Markdown copy of https://cues.studio/docs/agent-guide.
