Docs
Git hook
Automatically regenerate context files before every commit.
During contextai init you can opt in to a pre-commit git hook. It runs contextai generate and stages the output files automatically before every commit.
Manual install
You can also install the hook manually at any time:
bash
contextai init --hookWhat it does
- —Runs contextai generate
- —Stages all generated output files with git add
- —Lets the commit proceed normally