Agents
Archived commanders
Archived commanders are commanders that you're done with for now. When you archive a commander, Control Deck closes its card and stops it, but keeps its session, its transcript, and its worktrees. You can search archived commanders, read what they did, bring them back, or delete them.
What archiving does
Archived commanders are commanders that you're done with for now. In Control Deck, this area is labeled Archived.
Only commanders are archived. A worker is never archived by itself.
When a commander is archived, Control Deck does this:
It removes the commander's card, its workers' cards, and its crew card from the deck.
After the time for Undo has passed, it asks the commander for a summary of its work. It skips this step if the commander already reported one or is busy.
It saves the transcript and stops the commander and its workers. Credentials are removed from saved terminal output.
Control Deck keeps these things for an archived commander:
- Its name, task, provider, and deck.
- Its last summary.
- Its transcript.
- Its worktrees: its own copy of the project, if it has one, and its workers' copies.
- The provider's session id, so the session can resume when you restore the commander.
Archiving needs Control Deck to be running.
Archive a commander
There are several ways to archive a commander.
| Where | What to do |
|---|---|
| On the board | Close the commander's card. Closing a commander's card archives it. |
| On the board | Drag the commander's card by its header onto Archived in the tool rail. |
| In the Control view | Right-click the commander in the sidebar, then click Archive. |
| In the Control view | Drag the commander's row onto the deck's Archived row. |
| In the Control chat | Ask Control, by typing or by voice. For example: Archive Alpha. |
| Automatically | Control Deck can archive a commander when its pull request merges. See Pull requests. |
If archiving fails when you close a card, the card closes without being archived.
Undo
After you archive a commander, a notice shows its name and archived, with an Undo button. The notice stays for 6 seconds.
If you click Undo before the commander is stopped, the archive is canceled. The commander keeps running, and its card comes back.
When Control archives a commander, the action line in the thread has an Undo button too. After the notice is gone, use Restore. See Restore a commander.
The Archived button on the board
Archived is at the bottom of the board's tool rail. It shows the number of commanders archived on the open deck. Above 999, it shows 999+.
Click Archived to open a list. Its header says Archived on, the deck's name, and the count. The list shows the 5 most recently archived commanders on that deck. Each row has:
- The provider's logo, the commander's name, and the word commander.
- The commander's task. If it has no task, its summary.
- How long ago it was archived: now, or a number with m, h, d, w, mo, or y. For example, 4m or 3d.
- A Restore button.
If the deck has no archived commanders, the list says Nothing archived. To close the list, press Esc or click Archived again.
The board has no button that opens the full archive. To open it, use the Control view. See The full archive.
Archived in the Control view sidebar
In the Control view sidebar, each deck with archived commanders has an Archived row with a count. The row also appears while you drag one of the deck's commanders.
Click Archived to unfold it. It lists the deck's 3 most recently archived commanders, then Show all with the count.
Each row shows the commander's name, the word commander, its task or summary, the state of its pull request if it has one, and how long ago it was archived.
| Action | Result |
|---|---|
| Click a row | Opens the full archive with that commander selected. |
| Click Restore | Restores the commander. |
| Drag a row onto the deck's commanders | Restores the commander. |
| Right-click a row | Opens the commander menu. See The commander menu. |
| Click Show all | Opens the full archive for that deck. |
The Find an agent, deck, or file box in the sidebar also finds archived commanders. They appear under Archived. Click one to open the full archive with it selected. See The Control chat.
The full archive
The full archive lists every archived commander. It opens in the Control view.
To open it, do one of these in the Control view sidebar:
- Unfold a deck's Archived row, then click Show all.
- Click an archived commander.
- Search in the find box, then click a result under Archived.
The header shows Archived, then the deck's name or all decks, then the number of archived commanders. Messages about what you did, such as Alpha is back., appear next to it.
To close the full archive, click Close archive, press Esc, or click the Control strip.
If you switch to Board while the full archive is open, it stays open over the board.
The list
Each row shows the provider's logo, the commander's name, its deck, the state of its pull request, and how long ago it was archived. Under that is its task or its summary.
When the list is sorted by Last active or Oldest, it's grouped by when each commander was archived. Each group shows its count.
| Group | Archived |
|---|---|
| Today | Since midnight. |
| This week | In the 6 days before today. |
| This month | In the 23 days before that. |
| Older | Earlier than that. |
If there is nothing to show, the list says No archived commanders.
Select commanders
| Key or click | Action |
|---|---|
| Click | Select one commander and show its details. |
| Ctrl+click | Add a commander to the selection, or take it out. |
| Shift+click | Select every commander from the last one you clicked to this one. |
| Up, Down | Move the selection. Hold Shift to extend it. |
| Right-click | Open the commander menu. |
With more than one commander selected, the Details panel shows how many are selected and two buttons: Restore and Delete, each with the count.
Search, filter, and sort
Search
Type in Search names, tasks, and what they did. Search covers each commander's name, its earlier names, its task, its summary, and its transcript.
Results are listed most recently archived first. Each result shows up to 3 matching lines, with the matching words marked. Under each line is where the match is: Name, Task, Summary, or Transcript. A match in the transcript can show the turn, the file, and the line instead.
If nothing matches, the list says No matches. While you search, Sort is off and the header shows no count.
Filters
| Filter | Options | Default |
|---|---|---|
| Deck | Deck: all, or one of your decks | The deck you opened the archive from |
| Provider | Provider, which shows every provider, or one provider | Provider |
| Pull request | Pull request, which shows every state, or Open, Draft, Merged, Closed, or No pull request | Pull request |
Filters apply to the list and to search results.
Sort
| Option | Order |
|---|---|
| Last active | Most recently archived first. This is the default. |
| Oldest | Archived longest ago first. |
| Name | By name, from A to Z. |
| Started | Most recently started first. |
Open an archived commander
Select a commander in the full archive. The Details panel shows what Control Deck kept.
| Field | What it shows |
|---|---|
| Under the name | The word commander, the deck, and the provider. |
| Ran | How long the commander ran, its number of turns, and its number of workers. |
| Pull request | The repository, the number, the title, and the state. None if there is no pull request. |
| Changes | The pull request's added lines, removed lines, and number of files. |
| Worktree | The path of the commander's worktree, then kept with its size on disk, or removed. If more than one worktree is kept, the number kept in all. None if there is no worktree. |
| Archived | How long ago, and how: when its card was closed, by you, when its pull request merged, or by Control. |
| Last summary | The commander's last summary of its work. |
The panel has four buttons.
| Button | Action |
|---|---|
| Restore or Restore as new session | Puts the commander back on its deck. See Restore a commander. |
| Open transcript | Opens the saved transcript in the viewer beside the Control chat. |
| Open worktree | Opens the kept worktree's folder. The button is off if no worktree is kept. |
| Delete | Deletes the commander for good. See Delete archived commanders. |
The transcript holds the messages from the provider's own transcript. If there are none, it holds the saved terminal output.
Restore a commander
Restoring puts the commander and its card back on its deck and takes it out of the archive. If the card's old place is taken, the card goes to the nearest free place.
You can restore a commander from any of these places:
- Restore in the board's Archived list.
- Restore on a row under Archived in the Control view sidebar, or drag that row onto the deck's commanders.
- Restore in the Details panel of the full archive.
- Restore or Open on the board in the commander menu.
- Ask Control. For example:
Bring Alpha back. If more than one archived commander has that name, Control restores the one archived most recently.
If you send a message to an archived commander by name, Control Deck restores it first. The thread says Alpha was archived. Restored it to pass on your message.
Resume or new session
A restored commander resumes its earlier session when the provider can do that. The button then says Restore.
If the session can't resume, the button says Restore as new session. The commander starts a new session, and Control Deck gives it its saved summary. A note over the button says why:
| Note | Meaning |
|---|---|
| Claude Code no longer has its session on disk. | Claude Code deleted its own record of the session. Claude Code deletes old transcripts after 30 days by default, so a restore after about 30 days usually shows this note. |
| Grok no longer has its session on disk. | Grok deleted its own record of the session. |
| Its Claude Code session id is not resumable. | Claude Code can't resume the session by its id. |
| Its Grok session id is not resumable. | Grok can't resume the session by its id. |
Session resume is turned off (CTRL_DECK_CLI_RESUME=0). | The setting CTRL_DECK_CLI_RESUME=0 turns off session resume. |
| Its provider session id was never captured. | Control Deck never got a session id from the provider's CLI. |
| This provider has no session resume. | The provider's CLI can't resume a session. |
| Its ACP session was not running when it was archived. | There was no running session to resume. |
| The provider's name, then: doesn't support resuming ACP sessions. | The provider can't resume that kind of session. |
If a session that was expected to resume fails to, the commander starts a new session with its saved summary. The thread then says the commander couldn't resume its ACP session and gives the reason.
What else to expect
- If another commander on the deck now has the same name, the restored commander gets the next free name. The thread says, for example, Alpha is back as Bravo, because another Alpha is active.
- Workers aren't restored with their commander.
- A commander that worked in its own copy of the project gets that copy back at the same path. If the copy can't come back, the commander starts a new session with its saved summary.
- In the full archive, the header confirms the restore: Alpha is back., or 3 commanders are back.
Pull requests
Control Deck finds a commander's pull request in the commander's own output. It reads the pull request's state with the GitHub CLI command gh pr view.
The state is one of open, draft, merged, or closed. It shows in three places:
- On the commander's row in the full archive.
- On the commander's row under Archived in the Control view sidebar.
- In the Details panel, with the repository, number, title, and size of the change.
To list commanders by state, use the Pull request filter. See Search, filter, and sort.
Archive a commander when its pull request merges
Open Settings > Workspace.
In the Archived commanders panel, set Archive commanders to When its pull request merges.
Control Deck then checks every 5 minutes. When a commander's pull request is merged, Control Deck archives the commander. This applies to commanders that run in a terminal. The Control thread says Archived Alpha because its pull request #12 merged., with an Undo button.
This needs the GitHub CLI (gh) installed and signed in.
How long things are kept
An archived commander stays in the archive until you restore it or delete it. Its record and its transcript have no time limit.
Control Deck stores archived records, transcripts, and the search index in the archive folder inside its data folder, %AppData%\Ctrl Deck.
Worktrees take disk space. You can have Control Deck remove the worktrees of archived commanders after a number of days. Both settings are in Settings > Workspace, in the Archived commanders panel.
| Setting | Options | Default |
|---|---|---|
| Archive commanders | Manually, When its pull request merges | Manually |
| Remove worktrees of archived commanders after | Never, or 1, 3, 7, 14, 30, 60, 90, 180, or 365 days | Never |
When you set a number of days:
- Control Deck checks when it starts, and then every 6 hours.
- It removes the worktree folders only. The commander's record, transcript, and Git branches stay, and search still finds the commander.
- It keeps a worktree that has uncommitted changes.
- If a commander's own copy of the project was removed, Control Deck makes the copy again from its Git branch when you restore the commander. Committed work comes back.
In the Details panel, Worktree says kept or removed.
Delete archived commanders
Deleting is permanent. It removes the commander's record, its saved transcript, and its kept worktrees.
Deleting removes a kept worktree even if it has uncommitted changes. Those changes are lost. Committed work stays on its Git branch.
In the full archive, select one or more commanders.
In the Details panel, click Delete.
A box asks Delete 1 commander for good?, or gives the number of commanders. It says Their records, transcripts, and kept worktrees are removed.
Click Delete. To keep them, click Cancel.
Confirm within 2 minutes. After that, the header says Couldn't delete: The confirmation expired. Ask again. Click Delete again.
The header then says how many were deleted, for example Deleted 2 commanders. If a worktree couldn't be removed, the header also says how many were kept and why.
Deleting doesn't remove Git branches or the files that the provider's CLI keeps in its own folders.
Messages
| Message | Meaning |
|---|---|
| The archive is not available. | Control Deck can't reach the archive now. Try again. |
| Couldn't archive: | The commander wasn't archived. The reason follows. |
| Couldn't restore: | The commander wasn't restored. The reason follows. |
| Couldn't delete: | Nothing was deleted. The reason follows. |
| Cooper is a worker. Only commanders are archived. | You tried to archive a worker. |
| Alpha has no terminal or ACP session to archive. | The agent has no session to keep, so it can't be archived. |
| Alpha's deck (Website) no longer exists. | The commander's deck was deleted, so the commander can't be restored. |
| Alpha is already on Website. | The commander is already back on its deck. |
| Alpha has no saved transcript. | Open transcript found nothing saved for the commander. |
| Couldn't open the transcript. | The transcript couldn't be shown in the viewer. |
| Alpha has no kept worktree. | Open worktree found no worktree for the commander. |
| The worktree's path, then: is no longer on disk. | The worktree's folder is gone. |
| The new name must not be empty. | Type a name. |
| The new name is too long. Use at most 40 characters. | Use a shorter name. |
| "Bravo" is already taken by another agent on Website. | Another agent on the deck has that name. Pick a different one. |
| Type a word to search for. | The search box holds nothing that search can look for. Type a word. |
| The confirmation was for a different selection. Ask again. | You confirmed a delete for different commanders than the ones you picked. Click Delete again. |
| The confirmation expired. Ask again. | You confirmed a delete after more than 2 minutes. Click Delete again. |
| The archive index was damaged and is being rebuilt. Try again in a moment. | Wait, then try again. Your archived commanders aren't lost. |
| Control Deck no longer tracks this worktree. Remove it with git worktree remove. | A worktree was kept when you deleted a commander. Remove it with Git. |