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.

Updated View as Markdown

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.

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:

~/.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:

FieldUsed for
session_idWhich session this is. Keep it the same for the whole session.
hook_event_nameWhat happened (see the event list below).
cwdThe session’s folder, shown on the row and used by the Git tab.
promptYour prompt, on UserPromptSubmit.
last_assistant_messageThe agent’s reply, on Stop.

Option 2: report events from a script

No hook system? Report events yourself:

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

For example, a wrapper script around a long job:

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

EventWhat the island shows
SessionStartA new session, waiting for input
UserPromptSubmitWorking (the text is the prompt)
StopTurn finished; pop-up and sound (the text is the reply)
StopFailureTurn failed; alert sound
SessionEndSession 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.