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 generated from the npm package · released

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.

OperationWhat 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 list
Exit codes and errors1
CodeExitMeaning
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 list shows.
Exit codes and errors1
CodeExitMeaning
HOOK_TRUST_TAKES_ONE_ID 13 An extension (MCP server, hook or plugin) failed. Check the extension, then try again.

Removes the trust of a hook.

talos hook untrust <id>

Arguments

id
The id talos hook list shows.
Exit codes and errors1
CodeExitMeaning
HOOK_UNTRUST_TAKES_ONE_ID 13 An extension (MCP server, hook or plugin) failed. Check the extension, then try again.

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
CodeExitMeaning
HOOK_EVENT_REQUIRED 13 An extension (MCP server, hook or plugin) failed. Check the extension, then try again.

Prints the last runs of a hook.

talos hook history <id> [limit]

Arguments

id
Hook id.
limitoptional
How many runs, 1 to 50.
Exit codes and errors2
CodeExitMeaning
HOOK_HISTORY_ARGUMENTS_INVALID 13 An extension (MCP server, hook or plugin) failed. Check the extension, then try again.
HOOK_HISTORY_LIMIT_INVALID 13 An extension (MCP server, hook or plugin) failed. Check the extension, then try again.

Quarantines a hook: it is denied until released.

talos hook quarantine <id> [reason…]

Arguments

id
Hook id.
reasonoptional
Why, for the record.

Releases a hook from quarantine. It stays untrusted until you trust it again.

talos hook release <id>

Arguments

id
The id talos hook list shows.
Exit codes and errors1
CodeExitMeaning
HOOK_RELEASE_TAKES_ONE_ID 13 An extension (MCP server, hook or plugin) failed. Check the extension, then try again.

Same as release.

talos hook release-quarantine <id>

Arguments

id
The id talos hook list shows.
Exit codes and errors1
CodeExitMeaning
HOOK_RELEASE_TAKES_ONE_ID 13 An extension (MCP server, hook or plugin) failed. Check the extension, then try again.

Type to search the guides.