Basic Agents / Lesson 2

The Options: Desktop vs TUI Agents

A desktop-first tour of the major agent harnesses. We'll start with Opencode Desktop and Claude Cowork, then explore the TUI options, and end with a clear comparison of when each makes sense.

Goal

Know the landscape of agent harnesses and whether you want a desktop app or a terminal tool

What You'll Need

⏱ Time: 15 minutes  |  📋 Tasks:

  • A computer where you can install software (or at least open a terminal)
  • An internet connection
  • The Lesson 1 mental model: agent is the brain, harness is the body

The GUI vs Terminal Split

Before we tour the options, there's a divide that cuts across all of them: desktop apps vs terminal tools.

A desktop agent harness runs in a window. It has buttons, panels, menus. You download it, install it, and interact with it the way you'd interact with any other application. It shows you what the agent is doing, lets you intervene with clicks, and presents results in a visual interface.

A TUI (terminal user interface) agent runs in your terminal. It looks like a command-line tool. You type commands, it types back. It's faster, lighter, and more scriptable than a desktop app, and it shows you the agent's thoughts, tool calls, and edits right in the terminal output — often more clearly and with less abstraction than a GUI version.

Neither is better. They're built for different situations and different preferences. Let's look at the desktop options first, then the TUI ones, and then compare them head-to-head.

Desktop: Opencode Desktop

Opencode Desktop is a downloadable application that gives you a full visual workspace for collaborating with AI agents. You install it on your machine, sign in, and get a graphical interface where you can manage multiple agent sessions, monitor their progress, and review their output all in one place.

What makes Opencode Desktop stand out:

  • Session manager — run multiple agents at once, each in its own tab or panel. You can watch them work in parallel.
  • Streamlined output — focuses on results over process. Less verbose than the TUI, showing you what matters without the full transcript of every internal step.
  • File explorer — browse and edit files the agent is working on without leaving the app.
  • Built-in terminal — a hybrid option: you get the visual workspace but can drop into a terminal when you need to.
  • Easy setup — download, install, configure your API key, and you're running in minutes. No package managers, no environment variables, no dependency hell.

Who it's for: anyone who prefers a visual interface, runs multi-step agent tasks regularly, or wants to monitor and review agent output in a structured way. It's particularly good for people managing complex workflows where seeing the whole picture matters.

Desktop: Claude Cowork

Claude Cowork is Anthropic's desktop agent experience. It runs inside the Claude desktop app and lets you hand tasks to Claude that it works through autonomously — reading files, writing code, searching the web, and reporting back.

What makes Claude Cowork different:

  • Chat-native interface — the agent interaction feels like an extension of a conversation. You describe what you need, Claude works on it, and you can chime in mid-task to redirect.
  • Built on Claude — uses Anthropic's models natively, with no middle layer. The model and the harness are designed together.
  • Tool use out of the box — file reading, code execution, web search, image analysis are all available without any configuration.
  • Interruptible — you can jump in at any point and say "wait, try it this way instead." Cowork mode is designed for back-and-forth, not fire-and-forget.
  • Low friction — if you already use Claude, there's nothing extra to install or configure. Cowork mode is a feature of the app you already have.

Who it's for: people who already use Claude and want to graduate from one-shot prompts to sustained, multi-step tasks. The cowork dynamic works well when you want to stay involved in the process — directing, reviewing, and adjusting as the agent works.

TUI Options

TUI agent harnesses run in your terminal. They're lighter, faster, and more scriptable than desktop apps — but they expect you to be comfortable with a command line.

Opencode CLI

The terminal version of Opencode. Same agent engine as the desktop app, but accessed entirely through your terminal. You run opencode in a project directory, and it opens an interactive session where the agent can read, write, and execute commands in your environment.

Key difference from the desktop version: no point-and-click file explorer, no session tabs. What you gain is full visibility into every decision — the TUI streams the agent's reasoning, tool calls, and file edits directly to your terminal in real time. It starts in under a second, works over SSH, and offers more fine-grained control over every step.

The CLI and Desktop versions share the same underlying agent. Your choice is about interface preference and how much detail you want to see.

Claude Code CLI

Anthropic's terminal-based coding agent. Runs as a command-line tool — you invoke it from within a project, and it works alongside you to write, edit, and debug code. Like Claude Cowork in capability, but without the visual interface.

Where Claude Cowork is interruptible and dialog-driven, Claude Code CLI is more hands-off. You give it a task, it works on it, and reports back. The terminal format makes it easier to integrate into CI/CD pipelines and automated workflows.

LangChain CLI

LangChain's terminal toolkit for building and running agent chains. More of a development framework than an out-of-the-box agent. You define your agent's tools, memory, and model routing in configuration files, then invoke it from the command line.

This is the most flexible option — you can build exactly the agent you want — but it expects you to learn its abstraction layer. It's not a plug-and-play experience.

Beyond basic TUI: some agents go further — they run autonomously in a loop, breaking your goal into sub-tasks and executing them without you watching. Tools like AutoGPT, Hermes, and Openclaw's fleet mode are built for this. They're powerful, but they need their own tutorial track. We'll cover them in a future series on autonomous agent loops.

Desktop vs TUI: The Key Differences

Once you strip away the branding, every agent harness does roughly the same things: it routes prompts to a model, executes tools, and manages memory. The real difference is how you interact with it.

Dimension Desktop TUI
Setup Download and install. GUI configuration. Package manager or script. Terminal config.
Interface Visual: panels, tabs, buttons, timelines Text: typed commands, text responses
Multi-tasking Native tab/session management. See multiple agents at once. Managed via tmux, screen, or background processes.
Speed Slightly heavier launch, but comparable once running Near-instant launch, minimal overhead
Scriptability Limited to what the GUI exposes Fully scriptable. Pipe in, pipe out. CI/CD integration.
Remote use Requires SSH forwarding or a remote desktop setup Works natively over SSH. Run on a server, control from anywhere.
Learning curve Lower — familiar GUI patterns Moderate — commands are text but the interface is straightforward
Visibility Polished summaries, less verbose output Full transcript of thoughts, tool calls, and file edits in real time

Decision Framework: Which One Do You Install?

You've now seen the landscape. Here's how to choose:

Choose a desktop agent when:

  • You want a polished, less verbose interface that shows you the highlights, not every detail
  • You manage multiple agent tasks at once and need a session manager
  • You prefer a familiar GUI experience with buttons, panels, and menus
  • You're collaborating with an agent interactively — directing, reviewing, adjusting as it works

Choose a TUI agent when:

  • You want full visibility into everything the agent is thinking and doing, in real time
  • You need fine-grained control over each step — you can see the command, the output, the decision
  • You need to run agents on a remote server over SSH
  • You want to script or automate agent tasks — pipe output between tools, run in CI/CD
  • You prefer speed and minimal overhead over visual polish

Your Takeaway — The Decision Cheat Sheet

Save this comparison. When someone asks you "what agent harness should I use?" you'll have the answer ready.

Desktop if: you want a polished, less verbose experience with session management and GUI navigation.

TUI if: you want full visibility into every decision, fine-grained control, remote use, or scriptability.

Both if: some tasks benefit from visibility (complex multi-step workflows) and others benefit from speed (one-shot automations). There's no rule that says you can only use one.

← What Is an Agent Harness? How Much Does an Agent Cost Per Hour? →