Skip to main content
Hooks run shell commands at specific points during a session. Configure them in .tembo.json at your repository root.

Available hooks

postClone - Runs after Tembo clones your repo, before it starts working. prePush - Runs after Tembo makes changes, before pushing and opening a PR.

Example

Auto-fix

Set "autoFix": true to let Tembo analyze hook failures and attempt to fix issues before retrying.

Details

  • Commands run sequentially in the repository root
  • If a command fails, the hook stops
  • Hooks run in the same sandbox as the session
  • Shell features (piping, redirects, &&) are supported