# OpenCLI Agent Pack: direnv

Use this when an AI agent needs to work with `direnv`.

## What this CLI is for
Per-project env vars, shell automation, and secrets hygiene from the terminal. Built by direnv.

Best for: per-project env vars, shell automation, and secrets hygiene from the terminal.

## Agent readiness
Human-first CLI (35/100)
- Supports non-interactive/scripted use.

## Install
```sh
brew install direnv
```

## Verify before real work
```sh
direnv --version
```
Expected signal: direnv responds locally and is ready for the first real command.

## Safe starting commands
```sh
direnv --version
```

```sh
echo 'layout python' > .envrc && direnv allow
```

## Guardrails for agents
- Prefer small commands and ask the agent to summarize plain text output.
- Start read-only, then ask before mutations.

## Suggested agent instruction
You may use direnv (`direnv`) for per-project env vars, shell automation, and secrets hygiene from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.

Source: OpenCLI
