comparison

git-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.

Featuregit-agentcommitlint
Atomic commit splittinggit-agent — Yescommitlint — No
LLM-backed message draftinggit-agent — Yescommitlint — No
Conventional Commits formatgit-agent — Yescommitlintyes — linting focus
Pre-commit hook integrationgit-agent — Yescommitlintyes — linting only
Dry-run previewgit-agent — Yescommitlint — No
Amend last commit messagegit-agent — Yescommitlint — No
Free shared gatewaygit-agent — Yescommitlintyes — no LLM
Config-file based scope definitionsgit-agentyes — .git-agent/config.ymlcommitlintyes — .commitlintrc.js
git-agent
brew install gitagenthq/brew/git-agent
commitlint
npm install -g @commitlint/cli @commitlint/config-conventional
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 them
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.