# Kilo Code Memory: Project Memory, Auto-Save and Hindsight

> How Kilo Code remembers: per-project memory it saves itself, the /memory commands and recall tools, where files are stored, and adding Hindsight through the Kilo CLI plugin. Limits included.

Source: https://aiagentmemory.org/articles/kilo-code-memory/ · Updated 2026-12-02 · aiagentmemory.org


## What is Kilo Code memory?

**Kilo Code keeps project memory for each repo, saves it on its own, and loads a short index each session.**
Turn on project memory and auto-save, and Kilo reviews finished turns and stores project facts and
session digests. At the start of a new session it adds a compact index, and it fetches full details
only when it needs them. The Kilo memory docs (kilo.ai/docs/customize/context/memory, read 2 December
2026) describe this design.

## Turn it on and check it

| Action | How |
|---|---|
| Turn project memory on | Settings, Context, **Project memory** switch, or `/memory on` |
| Turn auto-save on or off | Settings, or `/memory auto on` and `/memory auto off` |
| See what is stored | `/memory status` and `/memory show` |
| Open the storage folder | `/memory inspect` |

Auto-save is **on by default** once memory is on. It reviews finished turns, and the docs say it is
throttled, so not every turn triggers a save. Explicit saves are not throttled.

## What Kilo saves and where

Kilo keeps memory outside your repo, under its global data directory (usually `~/.local/share/kilo`,
or `XDG_DATA_HOME` if set). Each project gets a folder named after the project and a hash of its path,
for example `memory/<project-slug>-<sha1-12>/`. The folder holds three source files and a `sessions/`
folder of session digests in Markdown. Linked git worktrees share one folder.

Kilo filters secret-like content before it writes anything. Session digests are redacted, and entries
that match common secret patterns are dropped. The docs also say memory is local and scoped to one
project: personal or user-level memory is not supported.

## Commands and recall tools

| Command | What it does |
|---|---|
| `/memory remember <text>` | Save a project note |
| `/memory correct <text>` | Save a correction |
| `/memory forget <query>` | Remove matching memory |
| `/memory rebuild` | Rebuild the index from the source files, if it looks stale |
| `/memory purge confirm` | Delete all project memory files |

Kilo can also use two tools by itself. `kilo_memory_save` saves, corrects or forgets memory when you ask
it to. `kilo_memory_recall` searches saved memory in four modes: search, typed, digest and catalog. Both
ask for approval by default. The docs say recall can be allowed always, and saving asks each time.

The docs also say: "Memory is context, not instruction. Current messages, repository files, and
AGENTS.md take precedence over saved memory." Keep rules that must always apply in AGENTS.md. Use memory
for facts that came out of the work.

You can use a smaller model for auto-save with `memory_model` in `kilo.jsonc`. The setting does not change
explicit saves or recall.

## Adding Hindsight to the Kilo CLI

The Hindsight Coding Agents package has a Kilo CLI entry. Its page (hindsight.vectorize.io/sdks/integrations/coding-agents,
read 2 December 2026) lists it as a persistent plugin with native tools.

1. Run `npx @vectorize-io/hindsight-coding-agents install kilo`.
2. The installer adds a plugin entry to `~/.config/kilo/kilo.json` (or `kilo.jsonc`).
3. Capture runs in the background from the repo's git history and conversations. There is no setup command.

By default the repo's bank is `coding-agent::{gitProject}`, which Kilo shares with OpenCode, Claude Code and
Codex. Change the bank name to `{harness}-{gitProject}` to split it per agent. Coding Agents 0.9.0 (30 November
2026) says memory comes back after a compaction for Kilo, and that `sessionContext` pins pages at session start.
Source: hindsight.ai/oss/blog/2026/11/30/coding-agents-090.

**Limits:**

- Hindsight memory lives in Hindsight Cloud (an API key is needed), a server you run, or a local daemon.
- Kilo's built-in memory and the Hindsight plugin can both be on. Kilo's notes stay in its own folder, and Hindsight's live in its bank. Check both before you rely on either one alone.
- We found no independent benchmark of this plugin with Kilo in the sources we checked, so the page makes no performance claim.

## Where this fits

Kilo's built-in memory works without a server and keeps everything on your machine, one project at a time. It
does not share memory across a team. Hindsight fits when you want one bank that several agents share for the
same repo, or when you want memory that a server keeps. Use AGENTS.md for rules, built-in memory for project
facts, and a bank only when you need the sharing.

For the same question on other tools, see [AI coding agent memory](/articles/ai-coding-agent-memory/),
[OpenCode memory](/articles/opencode-memory/) and [Qwen Code memory](/articles/qwen-code-memory/).

## Sources

- Kilo Code memory: https://kilo.ai/docs/customize/context/memory (read 2 December 2026)
- Hindsight Coding Agents, Kilo CLI entry: https://hindsight.vectorize.io/sdks/integrations/coding-agents (read 2 December 2026)
- Hindsight Coding Agents 0.9.0: https://hindsight.ai/oss/blog/2026/11/30/coding-agents-090 (30 November 2026)


## FAQ

### Does Kilo Code have memory?

Yes. Project memory is on when you turn it on in Settings, or with /memory on. Kilo saves project facts and session digests on its own, keeps them outside your repo, and loads a short index at the start of each session. Memory is stored locally and scoped to one project.

### Where does Kilo Code store project memory?

In a per-project folder under Kilo's global data directory, usually ~/.local/share/kilo/memory/. Linked git worktrees share one folder. Run /memory inspect to open the exact path for your project.

### How do I add Hindsight memory to Kilo Code?

For the Kilo CLI, run npx @vectorize-io/hindsight-coding-agents install kilo. It adds a plugin entry to ~/.config/kilo/kilo.json. The memory goes to Hindsight Cloud, a server you run, or a local daemon.

