comparisongit-agent vs commitlint
commitlint is a conventional commit linter that validates commit messages against configurable rules, commonly used in CI pipelines and pre-commit hooks.
feature comparison
| Feature | git-agent | commitlint |
|---|---|---|
| Atomic commit splitting | git-agent — Yes | commitlint — No |
| LLM-backed message drafting | git-agent — Yes | commitlint — No |
| Conventional Commits format | git-agent — Yes | commitlintyes — linting focus |
| Pre-commit hook integration | git-agent — Yes | commitlintyes — linting only |
| Dry-run preview | git-agent — Yes | commitlint — No |
| Amend last commit message | git-agent — Yes | commitlint — No |
| Free shared gateway | git-agent — Yes | commitlintyes — no LLM |
| Config-file based scope definitions | git-agentyes — .git-agent/config.yml | commitlintyes — .commitlintrc.js |
install
git-agent
brew install gitagenthq/brew/git-agentcommitlint
npm install -g @commitlint/cli @commitlint/config-conventionaloutput example
git-agent
refactor(store): extract price calculation into a dedicated module
- move discount, tax, and shipping logic from OrderStore into PriceCalculator
- keep public API unchanged — all callers still import from the store module
- add unit tests for PriceCalculator in isolation
The OrderStore had grown to 800 lines with mixed concerns; extracting
pricing makes the store focused on order lifecycle only.commitlint
N/A — commitlint lints messages, it does not generate themFAQ
Can commitlint and git-agent be used together?Yes. Use git-agent to author commits and commitlint to validate them in CI. git-agent's own pre-commit hook already validates Conventional Commits format, so commitlint's linting is complementary for CI enforcement.
Does git-agent need a .commitlintrc.js configuration file?No. git-agent uses its own .git-agent/config.yml for scope definitions and does not read commitlint config. The messages it generates follow the Conventional Commits spec and pass commitlint's default rules.
Can git-agent help me write commits that satisfy commitlint rules?Yes. git-agent generates messages that follow the Conventional Commits specification, which is the foundation of commitlint's default ruleset. Any custom commitlint rules you add will need to be compatible with the spec.