# Agents & notifications

See what is running, add explicit hooks, and jump to the work that needs you.

Canonical page: https://thebestterminal.com/docs/agents-and-notifications

Harness 2.3.2 · Documentation reviewed 2026-10-13

## Start with automatic detection

Harness recognizes 23 coding CLI identities from the process tree: Aider, Amp, Auggie, Claude Code, Cline, Codex, Copilot, Crush, Cursor, Droid, Gemini, Goose, Grok, Hermes, Kilo, Kimi, Kiro, OpenClaw, OpenCode, OpenHands, Pi, Qwen, and Vibe. Identification does not require a hook. Compact brand badges use fixed identities rather than configurable agent colors.

Process/activity detection and explicit events are different signals. Install supported hooks for more precise notifications rather than assuming an idle process always means an approval request.

**Terminal**

```shell
harness-cli list-agents
harness-cli list-agents --waiting
```

## Install the supported hooks

Run the matching command on the machine where the agent stores its configuration. The installer backs up existing files and is idempotent. It uses the agent’s actual configuration format and adds Harness’s bin directory to hook command PATH values.

| Agent | Install command |
| --- | --- |
| Claude Code | harness-cli install-hooks claude-code |
| Codex | harness-cli install-hooks codex |
| Cursor Agent | harness-cli install-hooks cursor |
| Grok Build | harness-cli install-hooks grok |
| OpenCode | harness-cli install-hooks opencode |
| Pi | harness-cli install-hooks pi |
| Hermes | harness-cli install-hooks hermes |
| OpenClaw | harness-cli install-hooks openclaw |

> **Two integrations need a manual step**
>
> Hermes requires consent, and OpenClaw can require merging into an existing hooks key. Follow the per-agent instructions linked in the source reference below. Do not overwrite an existing configuration to skip that step.

Aider, Gemini, and Goose are detected, but the bundled installer does not provide hooks for them. Use built-in detection or an explicit notify command from your own tooling.

## Enable the signals you need

Allow Harness notifications in macOS, then choose event types in Settings → Notifications: needs you, finished, failed, terminal bell, and long command finished. Check Focus settings when desktop notifications do not appear.

The first-run tour can install detected-agent hooks. Settings → Agents also provides a Copy Prompt setup path for an agent or IDE that can configure its own integration.

## Go directly to waiting work

Press ⌘⇧U to jump to a waiting agent. The Workspace Overview (⌘⇧O) puts waiting tabs first and supports filtering by typing. Status appears across the tab, session row, and notifications so it remains connected to its source.

Agent Workspace foregrounds these controls, but detection remains available in the other experience modes.

## Send a notification from your own tool

Inside a Harness pane, HARNESS_SURFACE identifies that pane. Use it to direct a notification to the right place:

**Terminal**

```shell
harness-cli notify --surface "$HARNESS_SURFACE" --title "Build" --body "Ready for review"
```

Installed hooks also emit OSC 7501 program-status reports. Use the dedicated program-status guide when your tool needs structured working, blocked, done, or error state rather than only a message.

## Activity across hosts

Open Session → Activity… or the sidebar Activity control. The notification bell opens the same view filtered to attention. Each row identifies its host, session, tab, and source pane; linked views of one surface are deduplicated.

Choose a row or a system notification to open its exact pane. A closed pane or disconnected host is reported rather than silently targeting another pane. Program-status and hook reports are explicit; process/activity detection is labeled as inferred.

| Action | What changes |
| --- | --- |
| Mark read | Acknowledges the event, not the program’s blocked state or timestamp. |
| Snooze | Mutes reminders for 15 minutes or 1 hour. Resume to stop snoozing. |
| Duplicate alerts | Same-kind alerts are suppressed for 15 seconds; a different kind may still notify. |

> **Check hook health**
>
> Settings → Agents offers Install, Update, or Reinstall Hooks. Tooltips distinguish current, missing, and unreadable configuration. Existing user configuration is preserved. The 23-tool identity catalog does not imply 23 built-in hook installers.

## Source references

- [README.md](https://github.com/robzilla1738/harness-terminal/blob/2f843e5625086fbd33e58a724c632e47bfe66d1d/README.md)

- [docs/agent-hooks/README.md](https://github.com/robzilla1738/harness-terminal/blob/2f843e5625086fbd33e58a724c632e47bfe66d1d/docs/agent-hooks/README.md)

- [docs/PROGRAM-STATUS.md](https://github.com/robzilla1738/harness-terminal/blob/2f843e5625086fbd33e58a724c632e47bfe66d1d/docs/PROGRAM-STATUS.md)

- [docs/WORKSPACE-WORKFLOWS.md](https://github.com/robzilla1738/harness-terminal/blob/2f843e5625086fbd33e58a724c632e47bfe66d1d/docs/WORKSPACE-WORKFLOWS.md)

- [Apps/Harness/Resources/AgentLogos/README.md](https://github.com/robzilla1738/harness-terminal/blob/2f843e5625086fbd33e58a724c632e47bfe66d1d/Apps/Harness/Resources/AgentLogos/README.md)

## Related guides

- https://thebestterminal.com/docs/program-status

- https://thebestterminal.com/docs/search-and-paths

- https://thebestterminal.com/docs/troubleshooting

