# 使用 Homebrew 安装 tach

查看 tach 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:tach
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tach
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:tach
- **软件包管理器:** Homebrew
- **版本:** 0.35.0
- **来源摘要:** Tool to enforce dependencies using modular architecture
- **主页:** <https://docs.gauge.sh/getting-started/introduction>
- **仓库:** <https://github.com/tach-org/tach>
- **最后更新:** 2026-07-25T10:58:07Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tach (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.35.0
## 项目历史与用法

Tach is a Python architecture-enforcement CLI that checks imports against declared module boundaries and public interfaces. Its official documentation frames it as a tool for pre-commit hooks, CI checks, and incremental adoption in existing Python repositories.

### 项目历史

The public GitHub repository was created in January 2024, and the project presents itself as a Rust-written tool for Python dependency and interface enforcement. The official docs describe `tach.toml` as the root project configuration and `tach.domain.toml` as an optional per-domain configuration file for teams that want ownership closer to module code.

### 采用历史

Tach's adoption story is centered on normal developer-tool channels: pip installation, Homebrew packaging, pre-commit hooks, CI, and VS Code integration. The repository metadata and documentation emphasize incremental adoption, which matters for large Python codebases where architecture checks must coexist with existing imports before being tightened.

### 使用方式

Typical use starts with `tach init`, then `tach check` in local workflows or CI. Other commands visualize dependency graphs, synchronize configuration with observed imports, check external package dependencies, generate dependency maps, and run impacted tests.

### 为什么软件包爱好者会关心

Package-manager users care about Tach because it turns package/module boundaries into a checked artifact that can travel with a repository. It sits in the same practical space as linters and type checkers: installable as a CLI, cheap enough for hooks, and useful for enforcing dependency contracts before packaging or deployment.

### 时间线

- 2024: Public GitHub repository created.
- 2024: Official docs describe Tach as open source, pip-installable, CI-friendly, and incrementally adoptable.
- 2026: Homebrew formula metadata lists `tach` as a package-manager-distributed CLI.

### Related projects

- Tach relates to Python linters, import-boundary checkers, pre-commit hooks, CI dependency checks, and monorepo tooling.

### 来源

- <https://api.github.com/repos/tach-org/tach>
- <https://docs.gauge.sh/getting-started/introduction>
- <https://docs.gauge.sh/usage/configuration/>
- <https://github.com/tach-org/tach>
- source_facts.package-manager


## 安全说明

没有找到 tach 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: tach.toml, tach.domain.toml

## Combined YAML source

View the package source record on GitHub. [combined/tach.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tach.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
