Control Deck

The board

Tool cards

Tool cards sit on the board next to your agent cards. This page covers the Preview, Git, Markdown, and Ports cards, the Agent backend card, and image and video cards, with every control on each one.

Add a tool card

To add a tool card, click Tools in the bar on the left side of the board, then pick Preview, Git, Markdown, or Ports.

You can also press Ctrl+K and pick a command from Cards & panels, or type the command.

CardIn the Tools menuCommand in the paletteTyped commandCards per deck
PreviewPreviewOpen the preview cardopen the previewAny number
GitGitOpen the Git manageropen git1
MarkdownMarkdownOpen the Markdown editoropen markdown1
PortsPortsOpen Portsopen ports1
Agent backendNot in the menuOpen the agent backendopen backend1

If a deck already has its Git, Markdown, Ports, or Agent backend card, the same action brings that card to the front.

An image or video card appears when you paste or drop an image or a video on the board. See Image and video cards.

Close a tool card

Click the close button in the card's header. Its tooltip is Close card.

The palette also has Close the preview card (close the preview), Close the Markdown editor (close markdown), and Close the Git manager (close git).

You move and resize a tool card the same way as any other card. See Decks and cards. For the palette and typed commands, see Commands.

Preview card

The Preview card is a web browser on the board. Use it to look at the site your agents are building, or at any other web page.

Open a Preview card

  • Tools, then Preview, adds a new Preview card each time. It opens the deck's saved preview address, which is the last address you used in a Preview card of that deck. A new deck starts with http://localhost:3000.
  • The open the preview command opens the same saved address. To open another address, type open the preview to and the address, for example open the preview to localhost:5173. An address on localhost, 127.x.x.x, 0.0.0.0, or ::1 without http:// or https:// opens with http://. Any other address without one opens with https://.
  • A click on a web link in a terminal opens the link in a Preview card. If a Preview card is open, Control Deck uses that card.
  • Open in preview in the Ports card opens a new Preview card at that server's address.

Cards are named Preview 1, Preview 2, and so on. The card header shows the page state: Loading, Live, or Needs attention.

The Focus the preview card command (focus the preview) brings the Preview card into view. Close the preview card closes the Preview card that's on top.

Go to a page

  1. Click the address field, or press Ctrl+L while the Preview card has focus.

  2. Type an address, then press Enter.

    If you leave out http:// or https://, the address field adds http://, whatever the address is.

The Preview card opens http and https addresses only. For any other kind of address, it shows Preview supports http(s) URLs only.

Toolbar

ControlWhat it does
BackGoes to the previous page.
ForwardGoes to the next page.
ReloadLoads the page again.
Pick an elementStarts the element picker. While it's on, the button is Exit element picker. See Send page elements to a commander.
Address fieldShows the page address. Type a new address here.
Agent on or Agent offShows whether agents can control this site. See What agents can do in the Preview card.
Preview optionsOpens the options menu.

Tabs

Each Preview card has its own tabs.

  • To open a tab, click New tab. If the current page is on your PC, the new tab opens the same site. Otherwise it opens http://localhost:3000.
  • To switch to a tab, click it.
  • To pin or unpin a tab, double-click it.
  • To close a tab, click Close tab or middle-click the tab. A pinned tab has no Close tab button and doesn't close on a middle-click.
  • If a page opens a new window, the Preview card opens it in a new tab.

A tab shows the page title, cut to 48 characters. If the page has no title, the tab shows the site's host name. An empty tab shows New tab.

Keys

These keys work while the Preview card has focus.

KeyAction
Ctrl+LGo to the address field.
Ctrl+TOpen a new tab.
Ctrl+WClose the tab. A pinned tab stays open.
Ctrl+TabGo to the next tab.
Ctrl+Shift+TabGo to the previous tab.

Preview options menu

ItemWhat it does
Page zoomZoom out and Zoom in change the page size in steps from 25% to 300%. To go back to 100%, click the percentage between them.
Pin tab or Unpin tabPins or unpins the current tab.
Hard reload (ignore cache)Loads the page again without the stored copy.
Open DevToolsOpens the browser developer tools for the page.
Open in system browserOpens the page in your default browser.
Copy addressCopies the page address.

The zoom steps are 25, 33, 50, 67, 75, 80, 90, 100, 110, 125, 150, 175, 200, 250, and 300 percent.

Messages

MessageMeaning
Loading preview...The page is loading.
Preview unavailableThe card has no page to show.
Could not load previewThe page didn't load. The message includes the reason. Check that the server is running, then click Reload.
Preview crashed - reload to try againThe page stopped. Click Reload.

Sign-ins and downloads

  • The Preview card keeps cookies and site storage after you close Control Deck. You stay signed in to sites between sessions.
  • Files you download in a Preview card go to a Control Deck folder inside your Windows Downloads folder.

Send page elements to a commander

The element picker tells a commander which parts of a page you mean.

  1. In the Preview card's toolbar, click Pick an element.

  2. Click an element on the page.

    To add more elements, hold Shift and click them. The panel shows how many are selected. To start over, click Clear selections.

  3. In Send to, pick a commander.

  4. Click the send button. It's named after the commander, for example Send to Alpha.

  5. In the commander's card, add your message and send it.

Control Deck adds the page address and one line for each element to the commander's input. It doesn't send the message for you.

To leave the picker, press Esc or click Exit element picker. You can't edit the address field while the picker is on.

MessageWhat to do
Select at least one elementClick an element on the page.
Pick a commander to send toPick a commander in Send to.
No commanders on this deckAdd an agent card to the deck.
Commander is no longer on the deckPick another commander.
Claude is out of usage, so this was not added to the chat.The commander's Claude waits for its usage to reset, so nothing was added. Send the elements again after Claude resumes. See Wait for Claude usage to reset.

What agents can do in the Preview card

An agent can open a Preview card, go to an address, and open, switch, close, pin, and unpin tabs. For example, ask a commander to show the site in the preview after it starts the server.

An agent can also work with the page: click, type, press keys, scroll, pick options, upload a file, answer page dialogs, take a screenshot, and read the page's content, console messages, network requests, and downloads.

Agent control for each site

  • For a page on your PC, agent control is always available. These are addresses on localhost, 127.x.x.x, ::1, and 0.0.0.0. The button shows Agent on and you can't turn it off.
  • For any other site, agent control is locked. The button shows Agent off.

To let agents control a site that isn't on your PC, open the site in the tab, then click Agent off. The button changes to Agent on. The choice applies to that site in that tab. To lock the site again, click Agent on.

If an agent tries to control a locked site, Control Deck refuses and tells the agent that agent control is locked for that site.

Git card

The Git card shows the Git state of the deck's project folder. You can stage, commit, push, pull, and change branches without leaving the board.

The Git card needs a deck with a project folder. If the deck has no project folder, the card is empty.

The card's title is Git: and the current branch, for example Git: main. If the branch has an upstream, the title also shows how many commits you're ahead (↑) and behind (↓).

Header and top row

  • Refresh Git status in the card header reads the repository again.
  • The top row shows the repository name.
  • Pull fetches the current branch's upstream and merges it into the current branch. A pull can leave merge conflicts in your files. The result is Pulled. or, if the pull fails, Git's own error text or Pull failed.
  • Push pushes the current branch with a plain push. It never forces. The result is Pushed. or, if the push fails, Git's own error text or Push failed.

The same applies to the other actions. If one fails, the card shows Git's own error text when Git gives one, and the short message in this section if it doesn't.

The card has three tabs: Changes, Branches, and Log. It opens on the tab you used last.

Changes tab

The number on the Changes tab is the count of changed files. The tab has two sections. One section is open at a time, and Changes is open first.

SectionWhat it listsSection button
StagedFiles in the next commit.Unstage all
ChangesChanged files that aren't staged.Stage all

Each file row shows a status code and the file path.

  • To see the changes in a file, click the row. The diff opens with the path and a staged or working label. A file with no changes to show reads (no diff).
  • To stage a file, click Stage file. To take it out of the commit, click Unstage file.
  • To throw away the changes in a file that isn't staged, click Discard changes. Control Deck asks Discard changes? first. You can't undo this. If the file is new and Git doesn't track it yet, discarding deletes the file.

Only Discard changes asks first. Commit, Push, Pull, Checkout, Create, and the stage buttons run when you click them.

If nothing changed, the tab shows Clean working tree and No staged or modified files.

Commit

  1. Stage the files for the commit.

  2. Type a message in the commit box.

  3. Click Commit, or press Ctrl+Enter in the commit box.

    The button shows the number of staged files. It stays off until you have a message and at least 1 staged file.

The result is Committed. or Commit failed.

Branches tab

  • To create a branch and switch to it, type a name in New branch name…, then click Create or press Enter. Create always switches to the new branch.
  • To switch to a branch, click Checkout on its row. A remote branch is checked out under its local name.
  • A dot marks the current branch.

The result is a message such as Switched to main. or Created and switched to and the branch name. If a name isn't a valid branch name, the result is Invalid branch name. If Git refuses, the card shows Git's error text, or Checkout failed. or Branch creation failed. An empty list reads No branches found.

Log tab

The Log tab lists the last 60 commits. Each row shows the short hash, the date, the message, and the author. The date is relative, for example 2 days ago. A repository with no commits shows No commits yet.

If the card can't read the repository

The card shows Git status unavailable and Check the project repository, then refresh. Check that the project folder is a Git repository, then click Refresh Git status.

What the Git card doesn't do

The Git card has no merge, rebase, stash, fetch, or delete branch action. Pull does fetch and merge together, but you can't run either one alone. Run the others in a shell card, or ask an agent.

Merging the work of commanders and workers is a separate feature. See Merging worker changes.

Markdown card

The Markdown card is an editor for one Markdown document. Use it for notes, checklists, and documents that you and your agents both write. Each deck has one Markdown card.

The card's title is Markdown and the document title. The card header shows the word count.

Start a document

A new card asks what Control should write.

  • To have Control write the document, type in What should Control write?, then click Send. The card shows Control is writing while Control works.
  • To say it instead, click Talk to Control, speak, then click Stop. This button appears only when you use the local voice engine.
  • To write the document yourself, click Write it myself.

An empty document then offers four buttons:

ButtonWhat it does
ChecklistStarts a document with a Checklist heading and one task.
NotesStarts a document with a Notes heading and one list item.
Open fileOpens a Markdown file from the project folder.
Ask ControlGoes back to the question for Control.

The first heading in the document becomes the document title.

Edit

The card shows the document rendered, and you edit it in place. To see and edit the plain Markdown text, turn on Markdown source.

In the rendered view:

  • To add a block, type / at the start of an empty line. A menu opens with Heading, List, Task list, Code block, Table, Quote, and Image. Keep typing to filter the menu. Use the arrow keys to move, Enter or Tab to pick, and Esc to close.
  • To format text, select it. A bar appears with Bold, Italic, Strikethrough, Code, Link, Heading, List, Task list, and Quote.

These keys work in the editor:

KeyAction
Ctrl+BBold
Ctrl+IItalic
Ctrl+KLink
TabIndent
Ctrl+SSave

Undo and redo work as in other editors. Spell check is on.

Save and open files

The document is part of the deck, so it stays in the card when you close and reopen Control Deck. You can also save it as a file in the project folder.

  1. Click Save As, or press Ctrl+S.

  2. In the Save Markdown to project window, pick a place inside the project folder and a file name.

    The suggested name comes from the document title. Without a title, it's untitled.md. If the name has no .md ending, Control Deck adds it.

After the first save, the button is Save. It saves to the same file. The strip above the document shows the file path, or Not saved. A dot marks Unsaved changes.

To open a file, click Open file in an empty document, then pick a file in the Open Markdown from project window.

LimitDetail
Where files goInside the deck's project folder only.
File types.md and .markdown
Deck without a project folderYou can't save or open files. The message is This deck has no project folder, so files cannot be saved.

If a save or an open doesn't work, the card shows Save failed. or Open failed.

What agents can do with the Markdown card

An agent can open the card, read the document, replace or add to its text, rename it, switch between the rendered view and the Markdown source, save it as a .md file in the project folder, and close the card.

When an agent changes the document while you edit it, your cursor position and your undo history stay.

When you or an agent close the Markdown card, the document in the card is removed. If you want to keep it, save it as a file first.

Ports card

The Ports card lists the servers that listen on a port for this deck, such as a dev server that an agent started. The card's title is Ports: and the number of listeners, for example Ports: 2 LISTENERS.

What the card lists

A server is on the list when it listens on a port from 1024 to 65535 and belongs to the deck:

  • An agent started it through Control Deck.
  • It runs from the deck's project folder. This includes a server you start in a shell card.
  • It runs from a commander's or a worker's copy of the project.

The card leaves out everything else:

  • Other programs on your PC.
  • Ports under 1024.
  • The ports that Control Deck and the provider CLIs use for themselves.

Control Deck's own services have their own rows at the top of the card: Control Deck backend, Control Deck gateway, and Control Deck voice.

The list updates every 30 seconds. To update it now, click Refresh listeners in the card header.

Listener rows

The Listener console shows one row for each server. If there are none, it shows No listeners detected.

FieldWhat it shows
PortThe port number, for example :5173.
NameA name taken from the command: vite, next, webpack, api, flutter, web, python, deno, or rust. Any other server is named after its port, for example port-8080.
StatusRUNNING, STARTING, STOPPED, or FAILED.
AddressThe server's address, for example http://127.0.0.1:5173.
PIDThe Windows process ID.
Modeport for a server that an agent started through Control Deck. detected for a server that Control Deck found.
CopyThe commander or worker whose copy of the project the server runs from.
CommandThe command that started the server.
CWDThe folder the server runs in.

Actions

ButtonWhat it does
Open in previewOpens a new Preview card at the server's address.
RestartStops the server's process, then starts the same command again. For a server with the mode detected, the restarted server becomes a server that Control Deck manages. It's no longer in the shell card it started in. If Control Deck doesn't know the server's command, Restart only stops it.
TerminateForce-stops the server's process and every process it started, then removes the row.

Restart and Terminate don't ask for confirmation.

If an action doesn't work, a message starts with Restart failed, Terminate failed, or Ports scan failed and gives the reason.

What agents can do with ports

An agent can start a dev server through Control Deck and read the list of servers. A server started this way has the mode port, and its name is starting until it listens.

If an agent asks for a port that another server of the deck already uses, Control Deck refuses and tells the agent which server has the port.

Agent backend card

The Agent backend card shows the state of the Control Deck service that runs your agents. Open it when workers don't start or an agent seems stuck.

The card isn't in the Tools menu. To open it, press Ctrl+K and pick Open the agent backend, or type open backend.

PartWhat it shows
StatusReady, Connecting, Needs attention, or Offline, and the number of active sessions.
CountsThe number of sessions and the number of events.
Review lineThe last memory review and how many memory writes it made, or No background reviews yet. See Agent memory.
Recent eventsThe last 8 events, such as an agent that started or finished. With no events, the card shows No backend activity yet.

The card is read-only. The settings for the backend are in Settings > Agent Backend. See Agent and voice settings.

Image and video cards

You can put images and videos on the board and hand them to an agent.

Add an image or a video

  • Copy an image or a video, then press Ctrl+V while no terminal has focus. The image goes to the middle of the board view.
  • Drag image or video files from Windows onto the board.

A deck has one image card. Each image or video is a tab in it, named after its file. A pasted image with no file name is named Pasted screenshot, and a pasted video Pasted video. Control Deck saves each one as a file. The card opens at up to 720 by 460 pixels. A video has playback controls.

If you paste an image into a terminal instead, Control Deck doesn't add a card. It saves the image as a file and types the file's path into the terminal. See Agent cards and terminals.

Controls

ControlWhat it does
Send the active image to an agentOpens the Send to list. Pick an agent, and the agent gets the path of the image file in the open tab. The button appears when the deck has an agent to send to.
Close all images (keeps the files)Closes the card and keeps every file.
Close this image (keeps the file)Closes that tab and keeps its file.
Delete this image and erase its fileCloses that tab and erases its file.
Drag the active image into a terminal to insert its file pathA handle at the left of the tabs. Drag it into a terminal, and Control Deck types the path of the image file at the prompt.

If Control Deck can't find the file, the card shows Image unavailable or Video unavailable.