Browse documentation

Portable .tine files default to v5 (since 0.42). --for-legacy writes v4. The .tine/ repository format is v3. tine evidence export writes v4. Formats and protocols.

Docs target stable release v0.76.0.Stable vs main checked 2026-11-21

Generated command reference · v0.76.0

tine hook

Portable .tine files default to v5 (since 0.42). --for-legacy writes v4. The .tine/ repository format is v3. tine evidence export writes v4.

Generated from the pinned release’s tine help --json, validated against tine-help/1. Flags and defaults below come from its parser. A null default means unset or withheld as machine-specific.

All commands

tine hook

Install agent-CLI hooks that import every finished session

tine hook [-h] [--global] [--agent {antigravity,claude-code,codex,copilot,droid,gemini,generic,hermes}] [--repo REPO] [--dry-run] [--event {PreInvocation,PostToolUse,Stop,SessionEnd,UserPromptSubmit}] [--session ID] [--message TEXT] [--json] [--text] {install,uninstall,status,event,capture,resume}
Argument / flagContract
actionRequired

Positional argument.

Choices: install, uninstall, status, event, capture, resume

--global

Edit the user-level hook files (the only scope supported)

Default: false

--agent

Only this agent CLI (repeatable; default: every one); capture: the sender

Choices: antigravity, claude-code, codex, copilot, droid, gemini, generic, hermes

--repo

v3 repository the sessions are imported into (install)

--dry-run

Show the change, write nothing

Default: false

--event

capture: the agent's event name, for CLIs whose payload omits it

Choices: PreInvocation, PostToolUse, Stop, SessionEnd, UserPromptSubmit

--session

resume: the agent's session id

--message

resume: the prompt to continue with

--json

Emit {command, exit_code, output} JSON (errors as {error: {code, message}})

Default: false

--text

Human-readable output even if output.format=json

Default: false

Command-export source · CLI guide and behavioral notes