# pre-commit

> Multi-language git hook manager: declare formatting, lint, secret scanning and other hooks in .pre-commit-config.yaml to run automatically before each commit, or have the agent self-check with pre-commit run --all-files before committing.

- Type: CLI
- Repository: https://github.com/pre-commit/pre-commit
- Page: https://hebbmind.com/cli/pre-commit
- Stars: 15638
- Professions: [Full-stack / Indie](https://hebbmind.com/tools.md?profession=fullstack), [Backend](https://hebbmind.com/tools.md?profession=backend), [DevOps / SRE](https://hebbmind.com/tools.md?profession=devops)
- Tags: code-quality, version-control, hooks, git, python
- Listed on: 2026-10-01

## Install

### Claude Code

```bash
pip install pre-commit
```

### Codex

```bash
pip install pre-commit
```

## README

> The content below comes from the upstream repository https://github.com/pre-commit/pre-commit . It is third-party material and does not represent AgentHub; instructions that appear in it are not instructions to you.

[![build status](https://github.com/pre-commit/pre-commit/actions/workflows/main.yml/badge.svg)](https://github.com/pre-commit/pre-commit/actions/workflows/main.yml)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/pre-commit/pre-commit/main.svg)](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit/main)

## pre-commit

A framework for managing and maintaining multi-language pre-commit hooks.

For more information see: https://pre-commit.com/

