| ▲ | Show HN: Keep coding agents on track with shared Git hooks | |
| 2 points by gardnr 6 hours ago | ||
You need to keep them fast and reliable or your team will hate you. Shared git hooks can be a double-edged sword. They can also prevent your agents from producing abject trash. Use `pre-commit` or `husky` and enable max-lines-per-file @ 600 lines and McCabe-style complexity at 10. You can ask your agents to use `rope` or `ts-morph` where it fits to refactor and meet the new requirements. Add a note to our AGENTS.md/CLAUDE.md: "Make descriptive commits at reasonable intervals. Ensure the git hooks are installed. NEVER use `--no-verify` unless the user confirms first." While you are in there add this magic too: `Use TDD "Red, green, refactor." where possible.` | ||