Connect AI agents

Which AI coding agents Void Island supports, the config file it changes for each, how backups and the hook script work, Codex hook trust, and how to disconnect.

Updated View as Markdown

Void Island learns what your AI agents are doing through their hooks: small commands an agent runs at moments like “session started”, “wants to run a tool” or “turn finished”. Connecting adds one such hook to each agent’s config. Nothing is written until you click Connect.

How to connect

Connect during the first-launch guide, or any time later:

  1. Open Island Settings (⌘, while the island is open) → AI assistants.
  2. Under Connection, find AI coding agent hooks and press Connect.
  3. If you use Codex and Settings shows Confirm the Codex hooks, press Trust Hooks (see below).
  4. Start a new session in your agent. Sessions that were already running show up once you start a new one.

Under Connection, a Connected line lists the agents that were picked up.

What connecting changes

  • Only agents that are already set up. Besides Claude Code, Void Island only writes to an agent whose config folder already exists on this Mac. It doesn’t create folders for tools you don’t use.
  • Backups first. Before the first change to a file, the original is copied next to it as <file>.void-island.bak, for example ~/.claude/settings.json.void-island.bak.
  • Your own hooks stay. Void Island adds its own entries and leaves everything else in the file alone.
  • One small script. Every agent calls the same script, ~/.void-island/bin/void-island-hook. It forwards the event to Void Island over a local socket (~/.void-island/agents.sock) and always exits successfully. If Void Island isn’t running, it does nothing, so it never blocks your agent.

Supported agents

AgentWhat Void Island changesOn the island
Claude CodeHooks in ~/.claude/settings.jsonStatus, approvals (edit the command, Always allow), questions, plan review
Codex CLI~/.codex/hooks.json (needs Trust Hooks)Status, approvals (allow or deny only)
Codex desktop / ChatGPT appThe same Codex hooksStatus; answers its questions for you through Accessibility
Claude desktop appClaude Code hooks, plus the Claude app’s local logsStatus; sends messages through Accessibility
Gemini CLIHooks in ~/.gemini/settings.jsonStatus; approvals (experimental: allow once or deny, in tmux, iTerm2 and Ghostty only)
Cursor~/.cursor/hooks.jsonStatus; Cursor CLI approvals (experimental: allow or deny, in tmux and iTerm2 only)
OpenCodeA plugin at ~/.config/opencode/plugins/void-island.jsStatus; 2.x approvals (allow or deny), 1.x permission requests show as alerts
CodeBuddy~/.codebuddy/settings.jsonStatus, approvals (allow or deny only)
WorkBuddy~/.workbuddy/settings.jsonStatus; dangerous commands can be stopped
Kimi CLIA marked block in ~/.kimi-code/config.toml or ~/.kimi/config.tomlStatus
piAn extension at ~/.pi/agent/extensions/void-island.jsStatus; stops dangerous commands
Anything elseYou call the hook script yourselfStatus

“Status” means live state on the island (working, waiting for you, done, failed), pop-ups, sounds and notifications. Approving tool calls and answering questions from the island is off until you turn it on. For what each agent supports on the island, see Approvals and questions.

For a tool that isn’t on the list, see Custom agents.

Codex: Trust Hooks

Codex only runs hooks you’ve trusted. Pressing Connect also confirms Void Island’s Codex hooks for you. If that still needs doing, Settings → AI assistants shows Confirm the Codex hooks with a Trust Hooks button. Press it once and Codex sessions start appearing.

If automatic confirmation doesn’t work, trust the hook in Codex yourself:

  • Codex CLI: run /hooks, then trust Void Island.
  • Codex desktop: Settings → Hooks, then trust Void Island.

If another tool later edits ~/.codex/hooks.json, Codex’s trust record may no longer match and it will skip Void Island’s hooks. Settings shows Re-confirm the Codex hooks; press Re-confirm.

Disconnect

Open Settings → AI assistants, press Disconnect, then Confirm Disconnect. This:

  • removes only the entries marked with void-island-hook from each config file, and keeps your other hooks;
  • deletes the OpenCode plugin, the pi extension and the Kimi CLI config block;
  • restores your previous Claude Code status line, if Void Island was passing it through;
  • deletes the hook script;
  • clears the sessions in the AI tab.

The .void-island.bak backups are left in place. To remove everything, see Uninstall.

Common questions

Is it safe to connect while an agent is running?

Yes. The hook script exits successfully in every case, and does nothing when Void Island isn’t running. Running sessions appear once you start a new one.

I installed a new agent after connecting. Do I need to do anything?

Usually not. Once you’ve connected, Void Island adds its hook to newly installed agents by itself when it next checks its integrations. If the new agent still doesn’t show up, quit and reopen Void Island, then start a new session.

Will connecting overwrite my existing hooks?

No. Void Island adds its own entries and leaves the rest alone. The first time it changes a file it also saves the original as .void-island.bak.

Why doesn’t an agent show up after connecting?

Most often its config folder didn’t exist yet, Codex hooks aren’t trusted, or the session was started before you connected. See Troubleshooting.