# watchexec

Execute commands in response to file modifications

**Score:** 89% pass rate
**Principles:** 5/7 met

## Embed the badge

This score (89%) clears the [badge floor](https://anc.dev/badge) (80%). Copy this into your README:

```markdown
[![agent-native](https://anc.dev/badge/watchexec.svg)](https://anc.dev/score/watchexec)
```

| Status | Check | Principle | Evidence |
|--------|-------|-----------|----------|
| PASS | Help flag produces useful output | [P3](https://anc.dev/p3) |  |
| PASS | Version flag works | [P3](https://anc.dev/p3) |  |
| SKIP | Structured output support | [P2](https://anc.dev/p2) | no --output/--format flag detected |
| PASS | Rejects invalid arguments | [P4](https://anc.dev/p4) |  |
| PASS | Quiet mode available | [P7](https://anc.dev/p7) |  |
| PASS | Handles SIGPIPE gracefully | [P6](https://anc.dev/p6) |  |
| PASS | Non-interactive by default | [P1](https://anc.dev/p1) |  |
| SKIP | Non-interactive gate flag advertised in --help | [P1](https://anc.dev/p1) | target satisfies P1 via alternative gate (help-on-bare or stdin-primary) |
| PASS | Flags advertise env-var bindings in --help | [P1](https://anc.dev/p1) |  |
| WARN | Pager-using CLI ships --no-pager escape hatch | [P6](https://anc.dev/p6) | pager referenced in --help but no --no-pager escape hatch advertised |
| PASS | Respects NO_COLOR | [P6](https://anc.dev/p6) |  |

**Repo:** [watchexec/watchexec](https://github.com/watchexec/watchexec)
**Language:** Rust
**Version scored:** 2.5.1
**Audit date:** 2026-05-01 10:09:13 UTC
**Duration:** 54ms
**Platform:** `linux/x86_64`
**Mode:** command
**Anc build:** 0.3.0
**Install:** `brew install watchexec`

## Reproduce locally

```bash
anc check --command watchexec --output json
```
