Agent Harness gives one agent CLI its own native terminal tab. The CLI draws its normal interface and receives terminal input directly. Termorq does not translate its messages or return to the normal command prompt when it exits.

Agent Harness is separate from Termorq’s model-powered Agent feature. It does not need an OpenAI connection.

Turn it on

Agent Harness is experimental. Open Settings → Experimental and switch on Agent Harness. New installs start with it off. If you already had harness tabs or changed Agent Harness settings before it became experimental, it stays on after the update.

While it is off, Termorq hides the agent icon and its picker, Settings → Agent Harness, and the Manage Agent Harness defaults… link. The app also refuses to start a harness process and shows Agent Harness is an experimental feature; enable it in Settings > Experimental.

If you turn it off while harness tabs are open, Termorq asks first. Confirming ends any running agent sessions and closes the harness tabs. Your commands, folders, and custom CLIs stay saved, so turning it back on brings the picker back as it was.

Start a harness

Select the agent icon beside the new-terminal buttons. Horizontal and vertical tab layouts use the same icon. The picker opens like the shell picker.

Agent Harness dropdown with Kiro, Grok, Copilot, and Claude
Browser build of the Agent Harness picker. Starting a real CLI requires pnpm tauri dev because invoke is unavailable in the browser build.
Built-in rows use the current product artwork published by Kiro, Grok, and Claude. GitHub’s current Copilot brand guide retires the old standalone Copilot mascot, so the Copilot row uses GitHub’s current product mark. A custom CLI uses a neutral terminal icon.

Select a row to start it immediately in a dedicated tab. Built-in defaults are:

PresetCommandWorking folder
Kiro CLIkiro-cli~
Grok CLIgrok~
Copilot CLIcopilot~
Claude CLIclaude~

~ is expanded to the operating-system user’s home folder before the PTY opens. The harness uses the default installed host shell from Settings → Terminal. WSL and SSH are not Agent Harness targets in this version.

Change defaults and add custom CLIs

Open Settings → Agent Harness, or choose Manage Agent Harness defaults… at the bottom of the picker.

Agent Harness Settings with a command and home-folder default for each built-in CLI
Browser build of Agent Harness Settings. Folder browsing and starting a real CLI require pnpm tauri dev because invoke is unavailable in the browser build.

Each built-in preset has its own command and working folder. Commands can include arguments on the same line. Use Browse… to choose a folder, or enter an absolute path. Empty or Reset built-in defaults returns every folder to ~.

Use Add custom CLI to add several named agents. Each custom CLI has a name, command, and working folder, and appears under Custom CLIs in the picker after you save it. Remove deletes that picker entry; it does not close an existing harness tab.

Existing harness tabs keep the command and folder they started with. Close one and choose the picker row again to use changed defaults.

The command runs with the default login shell’s environment. Keep credentials in the agent CLI’s own sign-in or refer to an environment variable. A command containing a token, password, private key, or current shell-secret value is refused instead of being saved.

Work in the native CLI

The tab keeps the CLI’s own colours, cursor, prompts, full-screen interface, and terminal keyboard input. Switching to another tab leaves the process running. Return to the harness tab to continue the same process.

The harness does not show the normal Termorq composer, MCP or model connection strip, Inspector, Git chip, runbooks, command history, or Agent switch. Its input and output are not added to Termorq history, alerts, execution trace, recordings, exports, or model context.

Split, broadcast, file drop, recording, Markdown export, and session capture are unavailable for a harness. You can still rename, recolour, reorder, pin, group, maximise, or close its tab.

Select End session to stop the agent process. Closing a running harness tab asks first when Settings → Confirm closing tabs is on. Quitting Termorq while a harness is active asks before ending the process.

When the CLI exits

Termorq keeps the final terminal screen and disables keyboard input. A card shows the result:

  • Agent session ended for exit code 0 or a session you ended.
  • Agent CLI exited unexpectedly for another exit code.
  • Agent CLI was not found for POSIX exit code 127, with a reminder to check the command and PATH.
  • Agent CLI could not start when the shell, folder, or PTY could not be opened.

The card includes the exit code when one was reported, elapsed time, command, and folder. Select Restart session to run the same saved setup in a fresh PTY. Select Agent Harness settings to change picker defaults and custom CLIs; existing tabs keep their saved setup.

Windows shells do not all use exit code 127 for a missing command. Their native error remains visible, and the card may use the general unexpected-exit wording.

Reopen Termorq

Termorq saves the harness name, safe command, folder, shell, colour, pin, and group with the other tabs. It does not save terminal input, native terminal output, exit details, or a live process identity.

After Termorq restarts, the tab says Ready to start. Select Start session to create a new process. Termorq does not claim to reconnect to the process from the earlier app session. If an agent CLI supports its own resume flag, include that flag in the saved command.

Free and Pro

Free can create one Agent Harness tab and run one harness process at a time. Pro can create and run multiple independent harnesses.

If Pro is no longer active, extra saved harness tabs remain. You can start any one of them while the others are stopped. Termorq does not delete their setup.