# hooks (Pub package)

> A library that contains a Dart API for the JSON-based protocol for `hook/build.dart` and `hook/link.dart`.

- Version: 2.2.0
- Released: 2026-08-18
- License: License unknown
- Monthly downloads: 14,715,599
- Source repository: https://github.com/dart-lang/native ([in the GitHits index](https://index.githits.dev/repositories/github.com/dart-lang/native/))

## Pages

- [hooks on GitHits](https://index.githits.dev/packages/pub/hooks/)
- [Direct dependencies of hooks 2.2.0](https://index.githits.dev/packages/pub/hooks/2.2.0/dependencies/)
- [Security advisories of hooks 2.2.0](https://index.githits.dev/packages/pub/hooks/2.2.0/security/)
- [Documentation of hooks 2.2.0](https://index.githits.dev/packages/pub/hooks/2.2.0/docs/)

## Use it from a coding agent

GitHits gives coding agents version-aware access to hooks: they can search, grep and read its source and documentation, and check its dependencies and security advisories, through MCP or the CLI instead of guessing from training data.

Connect an agent with one command, which detects installed agents, configures them and signs in:

```sh
npx githits@latest init
```

- [Remote MCP server](https://mcp.githits.com) (Streamable HTTP)
- [Agent documentation index](https://docs.githits.com/llms.txt)
- [API overview](https://docs.githits.com/api/overview)
- [Explore the GitHits index](https://index.githits.dev/)
