Hooks

A hook is a command DataMind Oda runs by itself when something happens in a chat, for example when Oda uses a tool, when you send a prompt, when a chat starts, or when a turn stops. Hooks use the Claude Code hooks format, so hooks written for Claude Code work here too.

Hooks are on by default, nothing is switched off, and no folder is trusted to start with. You manage hooks in Settings > Hooks, directly after Skills. The section is part of the desktop app and the VS Code extension; in the web app it does not appear.

The Hooks settings

Trust a folder's hooks

A project folder's hooks do not run until you trust exactly the set you were shown.

Note

Trust covers the hooks as listed, not the programs their commands run.

Turn hooks on or off

How hooks run

Follow a hook's runs

Open a file, and restore a version

  1. Open file opens the hooks file in your usual editor, and creates it when it does not exist yet.
  2. History opens the saved versions of that file, newest first, each labelled with what produced it: From a chat, From Settings, Restored, Edited outside the app or First version seen, with the hook count and file size.
  3. The version in use is marked Current. Choose View to compare another version with the file as it is now, then Restore to write it back. Oda confirms with Restored the version from {time}.
  4. A version is kept each time Oda or Settings changes the file; the newest ten are kept for each file.

Create, change or delete a hook

Fix a problem with a hooks file

Questions, answered

Why do I not see Hooks in the web app?

The Hooks section is part of the desktop app and the VS Code extension. In the web app it does not appear.

What is the difference between my hooks and a folder's hooks?

Your hooks live in your own hooks file and run in every folder. A folder's hooks come with that project and run only in sessions in that folder.

Do a folder's hooks run without asking?

No. They stay withheld until you trust exactly the set you were shown. In a Full access session they run without asking, and nothing is stored as trusted.

How do I turn every hook off at once?

Turn off Run hooks in Settings > Hooks. While it is off, no hook runs in any session.

Why did a hook stop running?

Check, in order: Run hooks is on; the hook's own switch is on; its folder shows Trusted; and its file has no problem under Problems. A folder that changed stops its hooks until you trust it again.

Can I create or edit a hook in Settings?

No. Settings only switches, trusts, opens and restores. Ask Oda in a chat to create, change or delete a hook, or edit the file yourself with Open file.

How do I undo a change to a hooks file?

Open its History, check the version with View, then choose Restore. Oda confirms with Restored the version from {time}.

What does the Claude Code file badge mean?

The file belongs to Claude Code, and Oda never writes it. Its hooks still run here once the folder is trusted; edit the file in the tool that owns it.

What happens when I edit a hooks file outside Oda?

The change shows in the file's History as Edited outside the app; a folder whose hooks changed stops them until you trust it again.

How long may a hook run?

Ten minutes by default. A hook can set its own timeout in seconds. On Windows, a hook's shell command runs through PowerShell.

Where can I see what a hook did?

Open the hook's Recent runs ({count}) under it in Settings > Hooks to see its newest runs and how each ended.