# Custom agents

> Show any AI agent or script on the island with Void Island’s hook command. Pipe in Claude Code style hook events, or report start and finish from a shell script.

Source: https://voidisland.app/docs/custom-agents · Updated 2026-11-26

Void Island has built-in support for ten agents, but any tool that can run a shell command can show up on the island. You call the same hook script the built-in integrations use, and the island shows the session’s live status, pops up when it finishes and plays its sounds.

Custom agents get status, pop-ups, sounds and notifications, but no approvals or questions on the island. For the agents that support them, see [Approvals and questions](https://voidisland.app/docs/approvals-and-questions.md#which-agents-work).

## Before you start

Connect once in Island Settings → AI assistants. That installs the hook script at:

```
~/.void-island/bin/void-island-hook
```

In the same page, Connect another agent has a button that copies the command for you.

## Option 1: use it as the agent’s hook

If your agent has hooks that pass a JSON event on stdin, the way Claude Code does, point its hook at:

```sh
~/.void-island/bin/void-island-hook myagent
```

Replace `myagent` with a short name for your tool. Letters, digits, dots, dashes and underscores are kept; anything else is dropped. The script reads the event from stdin and forwards it to the island.

The event should use Claude Code’s hook format, with at least `session_id` and `hook_event_name`. Useful fields:

| Field | Used for |
|---|---|
| `session_id` | Which session this is. Keep it the same for the whole session. |
| `hook_event_name` | What happened (see the event list below). |
| `cwd` | The session’s folder, shown on the row and used by the Git tab. |
| `prompt` | Your prompt, on `UserPromptSubmit`. |
| `last_assistant_message` | The agent’s reply, on `Stop`. |

## Option 2: report events from a script

No hook system? Report events yourself:

```sh
void-island-hook <agent> event <Event> <session-id> [text]
```

For example, a wrapper script around a long job:

```sh
HOOK=~/.void-island/bin/void-island-hook
ID="build-$$"
$HOOK mybuild event UserPromptSubmit "$ID" "Nightly build"
./run-build.sh
$HOOK mybuild event Stop "$ID" "Build finished"
```

The current folder is sent as the session’s folder. The optional text becomes the prompt or the reply, depending on the event.

## Events

| Event | What the island shows |
|---|---|
| `SessionStart` | A new session, waiting for input |
| `UserPromptSubmit` | Working (the text is the prompt) |
| `Stop` | Turn finished; pop-up and sound (the text is the reply) |
| `StopFailure` | Turn failed; alert sound |
| `SessionEnd` | Session ended |

## How the script behaves

- It always exits with status 0, so it never blocks or fails your tool.
- If Void Island isn’t running, it does nothing.
- It sends events only to Void Island on this Mac, through a local socket.

## Common questions

### What happens to my custom hooks when I disconnect?

Disconnect deletes the hook script, but it doesn’t know about hooks you added to other tools. Remove those from your tool’s config yourself, or it will try to run a file that no longer exists.

### Can I approve my custom agent’s requests from the island?

No. Custom agents show status only. For the agents you can approve from the island, see [Approvals and questions](https://voidisland.app/docs/approvals-and-questions.md#which-agents-work).
