The Archive · CLI reference · Commands
talos hook
Commands that run on session events: list, trust, test with a synthetic event, history, quarantine.
Reference for TALOS CLI 0.3.3
TALOS CLI 0.5.2 is out; this page still describes 0.3.3 and updates with the next build.
A hook runs a command of yours when an event happens in a session. Project hooks run only when trusted. A quarantined hook is denied until you release it — and release does not restore trust.
| Operation | What it does |
|---|---|
listdefault | Lists the hooks with their event, source and trust. |
trust | Trusts a hook. |
untrust | Removes the trust of a hook. |
dry-run | Runs a hook with a synthetic event, through the same process path a real event takes, and prints what it returned. |
history | Prints the last runs of a hook. |
quarantine | Quarantines a hook: it is denied until released. |
release | Releases a hook from quarantine. It stays untrusted until you trust it again. |
release-quarantine | Same as release. |
Without an operation, talos hook runs list.
Lists the hooks with their event, source and trust.
talos hook listExit codes and errors1
| Code | Exit | Meaning |
|---|---|---|
HOOK_LIST_TAKES_NO_ARGUMENTS | 13 | An extension (MCP server, hook or plugin) failed. Check the extension, then try again. |
Trusts a hook.
talos hook trust <id>Arguments
id- The id
talos hook listshows.
Exit codes and errors1
| Code | Exit | Meaning |
|---|---|---|
HOOK_TRUST_TAKES_ONE_ID | 13 | An extension (MCP server, hook or plugin) failed. Check the extension, then try again. |
untrust
Section titled “untrust”Removes the trust of a hook.
talos hook untrust <id>Arguments
id- The id
talos hook listshows.
Exit codes and errors1
| Code | Exit | Meaning |
|---|---|---|
HOOK_UNTRUST_TAKES_ONE_ID | 13 | An extension (MCP server, hook or plugin) failed. Check the extension, then try again. |
dry-run
Section titled “dry-run”Runs a hook with a synthetic event, through the same process path a real event takes, and prints what it returned.
talos hook dry-run <id> <event> [action…]Arguments
id- Hook id.
event- The event type to simulate.
actionoptional- A text describing the action, passed to the hook.
Exit codes and errors1
| Code | Exit | Meaning |
|---|---|---|
HOOK_EVENT_REQUIRED | 13 | An extension (MCP server, hook or plugin) failed. Check the extension, then try again. |
history
Section titled “history”Prints the last runs of a hook.
talos hook history <id> [limit]Arguments
id- Hook id.
limitoptional- How many runs, 1 to 50.
quarantine
Section titled “quarantine”Quarantines a hook: it is denied until released.
talos hook quarantine <id> [reason…]Arguments
id- Hook id.
reasonoptional- Why, for the record.
release
Section titled “release”Releases a hook from quarantine. It stays untrusted until you trust it again.
talos hook release <id>Arguments
id- The id
talos hook listshows.
Exit codes and errors1
| Code | Exit | Meaning |
|---|---|---|
HOOK_RELEASE_TAKES_ONE_ID | 13 | An extension (MCP server, hook or plugin) failed. Check the extension, then try again. |
release-quarantine
Section titled “release-quarantine”Same as release.
talos hook release-quarantine <id>Arguments
id- The id
talos hook listshows.
Exit codes and errors1
| Code | Exit | Meaning |
|---|---|---|
HOOK_RELEASE_TAKES_ONE_ID | 13 | An extension (MCP server, hook or plugin) failed. Check the extension, then try again. |