# direnv

Unclutter your .profile with per-directory environment variables

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

## Embed the badge

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

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

| 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) |  |
| WARN | Quiet mode available | [P7](https://anc.dev/p7) | no --quiet/-q flag detected in --help output |
| 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) |
| SKIP | Flags advertise env-var bindings in --help | [P1](https://anc.dev/p1) | target exposes no flags in --help |
| SKIP | Pager-using CLI ships --no-pager escape hatch | [P6](https://anc.dev/p6) | no pager signal (less/more/$PAGER/--pager) in --help |
| PASS | Respects NO_COLOR | [P6](https://anc.dev/p6) |  |

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

## Reproduce locally

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