---
title: Harness hooks CLI (aai-hook)
description: Hook implementations for the team harness, installed as the `aai-hook`
  CLI. Each subcommand is registered in a harness's hook config (Claude Code settings.json,
  codex hooks.json, or Antigravity hooks.json) and reads the hook event's JSON payload
  from stdin. See SETUP.md for the wiring.
---
## main

```python
def main():
```

*Dispatch `aai-hook <subcommand>` to its handler with the stdin JSON payload*
