Bridges & hooks
A bridge is a thin adapter that translates a tool’s hook payload into a
tok0 rewrite invocation. Bridges live in
apps/cli/src/bridge/adapters.rs and are intentionally ~20 lines each — they
do format translation only, never business logic.
Supported tools
Section titled “Supported tools”tok0 init currently auto-detects and installs hooks for 45+ agents,
including:
- Claude Code
- Cursor
- Cline
- GitHub Copilot CLI
- Aider
- Amp
- Continue
Run tok0 init --list to see the full set on your machine.
Hook integrity
Section titled “Hook integrity”Every installed hook is fingerprinted with SHA-256. tok0 verify re-checks
fingerprints and refuses to run any hook that has been tampered with.