cls_install_hooks
Set up git hooks and CI steps to automatically feed your AI brain from every commit and build, eliminating the need for explicit session ending.
Instructions
Output a ready-to-install git post-commit hook + GitHub Actions step for Continuous Learning. Once installed, every git commit and CI build automatically feeds the brain — no session_end needed. Run once per repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | Brain instance ID | |
| repo_path | No | Path to repo root (default: current dir) | |
| hooks | No | Which hooks to output (default: ["git", "ci"]) |