> ## Documentation Index
> Fetch the complete documentation index at: https://dench.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent memory for durable knowledge

> Save and search durable workspace facts, decisions, preferences, and conventions so Dench agents reuse stable knowledge across sessions.

Memory is for stable knowledge that should outlive a single run, not scratch
notes and not secrets.

## Save and search

```bash Save theme={null}
dench memory save deployment-policy \
  "Never deploy without human approval." \
  --kind decision --tags deployment,policy --json
```

```bash Search theme={null}
dench memory search "deployment policy" --json
```

## What belongs here

> [card] Save
>
> Facts, decisions, preferences, recurring goals, conventions, and tool notes.

> [card] Never save
>
> Passwords, tokens, private keys, one-time codes, raw secret-bearing email, or
> one-off scratch notes.

> [!NOTE]
>
> Entry-specific prose belongs in the CRM `Notes` field. Memory is for durable,
> workspace-wide knowledge. Sensitive memories are held for human review.

## Kinds

`fact`, `decision`, `preference`, `goal`, `tool_note`, `convention`,
`project_context`, `agent_lesson`, `docs_knowledge`, `open_goal`, `other`.

## Saved setup is separate from memory

Use `dench env` for explicitly saved scripts, packages and configuration, and
`dench secrets` for encrypted workspace credentials. Facts and preferences stay in
`dench memory`; a note is not proof that a key or dependency has been saved.
See [Reusable environments](https://dench.com/references/ENVIRONMENTS.md) and the
[generated CLI index](https://dench.com/references/CLI.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.