# audrey

Local memory engine for coding agents. It recalls past session failures and intercepts risky commands with a Guard check before execution.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 26
- Author: Evilander
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Evilander/Audrey
- Updated: 2026-09-20
- HTML: https://affpapa.org/en/nevibecode/mcp/audrey

## What it does

Audrey maintains project context across independent agent sessions. When a new run opens, it injects a concise briefing with known project rules and recent hazards. During user prompts, durable instructions like "remember that" turn into persistent records.

The core mechanism is the Guard pre-action check. Before an agent executes a shell command or edits files, Audrey evaluates the fingerprint against recorded historical failures. If an identical command failed previously, Guard blocks execution with evidence. Meanwhile, benign inspection commands such as `grep`, `git status`, or `cat` pass through silently without triggering false alerts.

Runtime requirements are strict: Node.js 22.16+ or 24+ is mandatory because storage relies on Node's built-in SQLite engine. By default, hook timeouts or internal errors fail open so sessions do not freeze, but setting `AUDREY_HOOK_FAIL_CLOSED=1` enforces strict blocking instead.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `AUDREY_DATA_DIR`, `AUDREY_AGENT` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env AUDREY_DATA_DIR=<AUDREY_DATA_DIR> --env AUDREY_AGENT=<AUDREY_AGENT> --transport stdio audrey -- npx -y audrey
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add audrey --env AUDREY_DATA_DIR=<AUDREY_DATA_DIR> --env AUDREY_AGENT=<AUDREY_AGENT> -- npx -y audrey
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "audrey": {
            "command": "npx",
            "args": [
                "-y",
                "audrey"
            ],
            "env": {
                "AUDREY_DATA_DIR": "<AUDREY_DATA_DIR>",
                "AUDREY_AGENT": "<AUDREY_AGENT>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "audrey": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "audrey"
            ],
            "env": {
                "AUDREY_DATA_DIR": "<AUDREY_DATA_DIR>",
                "AUDREY_AGENT": "<AUDREY_AGENT>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e AUDREY_DATA_DIR=<AUDREY_DATA_DIR> -e AUDREY_AGENT=<AUDREY_AGENT> audrey npx -y audrey
```
Replace <…> with your own values

## When to use it
- prevent agents from running previously failed build or deploy scripts
- retain repository conventions across brand-new agent sessions
- block accidental commits of generated files before actions execute
- filter out harmless read-only terminal commands from error tracking

## Example prompts
- Remember that we must generate the database client before running migrations.
- Check the repository status and run the test deployment.
- Do not commit auto-generated configuration files in this project.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
