install / uninstall
Install and remove shell hooks for automatic attestation.
treeship install
Install shell hooks that automatically attest matching commands.
treeship installThis appends a hook to your shell profile (.bashrc, .zshrc, or .config/fish/config.fish). The hook intercepts commands that match your configured path rules and wraps them with treeship wrap automatically.
After installing, restart your shell or source your profile:
source ~/.zshrcWhat the hooks do
When a command matches a configured pattern, the hook:
- Creates an intent artifact before the command runs
- Executes the command normally
- Creates a receipt artifact after the command completes
- Links both artifacts to the active session (if one exists)
You configure which commands get attested in ~/.treeship/config.json under the hooks.patterns key.
treeship uninstall
Remove shell hooks.
treeship uninstallThis removes the Treeship hook block from your shell profile. Existing attestations are not affected.
The hooks only attest commands that match your configured patterns. They do not capture or store command arguments or output -- only their SHA-256 digests.