# AI use cases for Cocode (cocode-agency/cocode)

Repo: [cocode-agency/cocode](https://github.com/cocode-agency/cocode) | Use cases: 4 | Page: https://dedupedai.com/use-cases/cocode-agency-cocode/

Cocode is a ready-to-run desktop and terminal workspace, built on the DeepSeek Harness runtime, for working with AI coding agents.

This file holds every use case of this repo. Each one starts with a "## " heading and ends with its URL.

- Run a coding agent in a desktop workspace: https://dedupedai.com/use-cases/cocode-agency-cocode/run-coding-agent-desktop-workspace/
- Keep an agent working over SSH from the terminal: https://dedupedai.com/use-cases/cocode-agency-cocode/drive-agent-over-ssh-from-terminal/
- Continue one agent session from desktop and terminal: https://dedupedai.com/use-cases/cocode-agency-cocode/continue-same-session-desktop-and-terminal/
- Build a custom agent preset from a built-in one: https://dedupedai.com/use-cases/cocode-agency-cocode/customize-agent-preset-for-own-workflow/

## How to run a coding agent in a desktop workspace with Cocode

Repo: [cocode-agency/cocode](https://github.com/cocode-agency/cocode) | Difficulty: Beginner | Time: 15 minutes | Basis: From the README

Install the Cocode GUI and have an agent inspect a project with files, diffs, and a terminal in one window.

**Who it is for:** A developer who wants an AI coding agent on their own machine, without setting up a runtime first, when they open a project they want explained or checked.

**The problem:** Setting up an agent runtime, model access, and a usable interface takes effort before any real work starts.

**The outcome:** A working desktop session in which the agent reads a file or explains the project, and the user can review what changed.

### Steps

1. Download the installer for your platform from the GitHub Releases page.
2. Launch Cocode and choose Cocode Pro with hosted Nut credits or your own DeepSeek-compatible key.
3. Open a workspace folder.
4. Ask the agent to inspect a file or explain the project.
5. Check the diff preview before you confirm any change the agent proposes.

### Prompt to paste into your agent

```text
Using the cocode-agency/cocode repository, help me set up the Cocode GUI on <platform> from the GitHub Releases page. Confirm the installer launches and that a session opens on the workspace at <workspace-path>. Expected output: a running desktop session that reports the project overview; verify that the model choice is set and no API key is written into any shared file.
```

### Caveat

Cocode is a developer preview built on the DeepSeek Harness developer preview, and upstream compatibility may change.

Risk, credentials: If you enter your own DeepSeek-compatible key, keep it out of screenshots, shared logs, and project files.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/cocode-agency-cocode/run-coding-agent-desktop-workspace/

## How to keep an agent working over SSH from the terminal with Cocode

Repo: [cocode-agency/cocode](https://github.com/cocode-agency/cocode) | Difficulty: Intermediate | Time: 30 minutes | Basis: From the README

Install the Cocode TUI on a remote machine and push tasks to the agent with no graphical environment.

**Who it is for:** A developer who works on a remote server or headless machine and needs to keep an agent moving on tasks from a plain SSH session.

**The problem:** A remote machine has no graphical desktop, so a GUI-based agent tool cannot be used there.

**The outcome:** A terminal session on the remote machine where the agent accepts tasks, with Host status checked before work begins.

### Steps

1. Install Node.js 22.19.x or later (24+ also supported) on the remote machine.
2. Run `npm install --global @cocode-agency/tui`.
3. Run `cocode doctor` to check TUI, Supervisor, and Host connectivity.
4. Run `cocode` in a real terminal and choose a model option.
5. Give the agent a task, and check the result before moving on.

### Prompt to paste into your agent

```text
Using the cocode-agency/cocode repository, install the TUI on <remote-host> with `npm install --global @cocode-agency/tui`, then run `cocode doctor`. Expected output: a doctor report showing TUI, Supervisor, and Host as reachable; verify that the matching @cocode-agency/host-supervisor version was installed alongside the TUI.
```

### Caveat

The README says a real terminal is required, so the TUI will not run in a non-interactive script or pipe.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/cocode-agency-cocode/drive-agent-over-ssh-from-terminal/

## How to continue one agent session from desktop and terminal with Cocode

Repo: [cocode-agency/cocode](https://github.com/cocode-agency/cocode) | Difficulty: Intermediate | Time: 30 minutes | Basis: From the README

Start a task in the GUI and pick it up in the TUI over SSH, using the same session record.

**Who it is for:** A developer who starts an agent task at their desk and needs to continue it later from a remote terminal.

**The problem:** Moving work between a desktop tool and a terminal usually loses context, so the user has to rebuild the conversation by hand.

**The outcome:** Both clients read and write the same session, so the terminal shows the full conversation started in the GUI.

### Steps

1. Install the Cocode GUI and the TUI, keeping the TUI and @cocode-agency/host-supervisor on the same version line.
2. Set the same DSH_HOME, profile, and Host configuration in both clients.
3. Start a task in the GUI workspace.
4. Run `cocode host status --json` on the second machine to confirm the shared Host.
5. Run `cocode` in the terminal and continue the task.

### Prompt to paste into your agent

```text
Using the cocode-agency/cocode repository, confirm that the GUI and TUI on <machine> share the same DSH_HOME, profile, and Host configuration. Run `cocode host status --json` and expect a machine-readable status for the shared Host; verify that the session started in the GUI appears in the terminal.
```

### Caveat

Sharing only works when both clients use the same DSH_HOME, profile, and Host configuration scope, and the README states that upstream compatibility may change.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/cocode-agency-cocode/continue-same-session-desktop-and-terminal/

## How to build a custom agent preset from a built-in one with Cocode

Repo: [cocode-agency/cocode](https://github.com/cocode-agency/cocode) | Difficulty: Advanced | Time: 60 minutes | Basis: From the README

Copy a shipped preset and change which tools, prompts, and capabilities the agent uses.

**Who it is for:** A developer or team lead who wants the agent to follow their own tool set and prompts instead of a default setup.

**The problem:** Default agent setups may include tools or prompts that do not fit a specific project or team.

**The outcome:** A copied preset, with a readable agent.cordis.yml, that the user has adjusted and can use in place of the built-in one.

### Steps

1. Open the Cocode GUI and find the preset list.
2. Read the agent.cordis.yml of the preset closest to your need (Standard, PTC, Minimal, or Creator).
3. Copy that preset to a new name using the copy option in the interface. (inferred, check the README)
4. Edit the copied agent.cordis.yml to change tools, prompts, or capabilities. (inferred, check the README)
5. Start a session with the new preset and check that the changes take effect.

### Prompt to paste into your agent

```text
Using the cocode-agency/cocode repository, copy the <preset-name> preset in the GUI to a new preset named <new-name>. Expected output: a copied preset whose agent.cordis.yml can be read in the interface; verify that a session started with the new preset shows the tool and prompt changes you made.
```

### Caveat

The README does not document the copy or edit steps in detail, so check the preset file format against the current release before relying on the change.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/cocode-agency-cocode/customize-agent-preset-for-own-workflow/
