Did you know you can add a pre-commit hook to ask your AI agent to check your work before committing code? This can be done both in Claude Code and @AmpCode. Here's how: 1. npm install --save-dev husky 2. npx husky init 3. Edit .husky/pre-commit to add your checks (tests, linting, etc.) 4. Commit and enjoy automatic quality gates I'm using the specific "-x" flag for Amp which runs an agent and then returns to the CLI, like this (you can use "-p" in Claude Code) ... amp -x "Oracle, review changes we're about to commit" FYI using the keyword "oracle" in Amp calls a tool that uses o3 vs sonnet 4.
9,63K