Skip to content

Connect your agents

Cortland finds out what an agent is doing through that agent’s own hook system. Without the hooks, agent status falls back to guessing from terminal text and the context bar has no data. You only need to install them once.

Open Preferences → Agents (⌘,Ctrl+,). There’s one row per agent CLI that Cortland finds on the machine. Click Install on each row. It’s safe to click again.

From a source checkout you can also run scripts/install-agent-status-hooks. Preferences → Terminal → Install for zsh is optional and adds shell integration: prompt marks, cwd tracking, and cleanup when an agent exits.

Agent Where What it does
Claude Code ~/.claude/settings.json Status hooks, token and cost reporting, and the edit gate: a PreToolUse hook on Edit/Write that sends each edit to the approval desk
Codex ~/.codex/config.toml hooks = true plus status hook blocks. Approval modes map to Codex’s own sandbox and reviewer
Pi ~/.pi/agent/extensions/ A TypeScript extension that reports status and sends edit/write through the approval desk
Antigravity ~/.gemini/antigravity-cli Status, token telemetry, the edit gate, and approval modes

Each agent also gets the cortland-panes skill, which teaches it to start and drive other panes with cortland-ctl. On Linux, you can also turn on the delegate skill, which hands a task to a worker agent and reviews its work. It’s off by default.

Restart any Claude Code or Codex sessions that were already open after you install.

Cortland refreshes installed hooks every time it starts. It replaces a helper that’s out of date and adds any hook entry the contract has gained since you installed. It never creates an integration you didn’t install, and it never edits an agent’s config that doesn’t already mention Cortland.