# Factory Droid Memory: AGENTS.md, Compaction and Hindsight

> How Factory's Droid carries project context: the AGENTS.md and context folders it reads, what its docs say about memory across sessions (none found), and adding Hindsight memory with one install command.

Source: https://aiagentmemory.org/articles/factory-droid-memory/ · Updated 2026-12-02 · aiagentmemory.org


## What is Factory Droid memory?

**Factory Droid keeps project rules in instruction files and gets no memory store from the docs we read.** You
write an AGENTS.md file, and Droid loads it as coding guidelines at the start of a session. The Factory docs
(docs.factory.ai, AGENTS.md page, read 2 December 2026) describe no automatic notes that carry over from one session
to the next. The docs index read the same day lists no memory feature. So for facts from past work, you add a
plugin or a memory server.

## Where Droid reads its instructions

Droid searches from the current folder up to the git root. At each level it checks these folders:

| Folder | Use |
|---|---|
| `.factory/` | Factory-specific project instructions |
| `.agents/` | Shared agent folder convention |
| `.agent/` | Singular agent folder convention |

It also checks your home folder: `~/.factory/`, `~/.agents/` and `~/.agent/`, for your own defaults across projects.

Droid reads these file names too, so older instruction files keep working: `agents.md`, `Agents.md`, `CLAUDE.md`
and `Claude.md`. The docs say to use `AGENTS.md` for new guidance.

The order is: the current user request first, then nested project files, which refine the root file for their
folder. Project files override personal defaults. Nested files load when Droid reads or edits files in their folder,
but shell commands do not trigger that. Keep the file short. The docs warn against pasting long run books into it:
link to the source instead, or move the steps into a skill, which loads only when needed.

## Add a memory layer

The Factory docs do not describe a memory feature, so the two layers to use are these:

- **Rules that never change:** AGENTS.md. Build and test commands, code style, folders to leave alone.
- **Facts from past work:** a memory bank, such as Hindsight. Past decisions, the cause of a bug, a setup that took an hour.

## Adding Hindsight to Factory Droid

The Hindsight Coding Agents package lists Factory Droid among its 22 supported CLI agents. Its docs
(hindsight.vectorize.io/sdks/integrations/coding-agents, read 2 December 2026) give this install:

1. Run `npx @vectorize-io/hindsight-coding-agents install factory-droid`.
2. The installer writes 4 hook registrations to `~/.factory/hooks.json` (user scope). It also adds a stdio MCP entry under `mcpServers.hindsight` in `~/.factory/mcp.json`, and a companion skill under `~/.factory/`.
3. Work as usual. Capture is automatic, with no setup command.

By default each repo gets one bank, `coding-agent::{gitProject}`, shared with the other coding agents you install.
Hindsight's docs say Droid saves the session transcript on Stop, and also on its cancellation notice.

Coding Agents 0.9.0 (30 November 2026) says Droid reports its compactions, so memory comes back after one: the
first prompt after a compaction gets recalled memory again. `sessionContext` pins pages and mental models at the
start of a session. Source: hindsight.ai/oss/blog/2026/11/30/coding-agents-090.

**Limits:**

- Memory lives in Hindsight Cloud (needs an API key), a server you run, or a local daemon. Pick one before you install.
- The install writes to your home folder (`~/.factory/`), so it applies to every project on the machine, not one repo.
- We found no independent benchmark of this plugin with Factory Droid in the sources we checked, so this page makes no performance claim.

## Where this fits

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

## Sources

- Factory AGENTS.md (discovery, compatible names, nested files): https://docs.factory.ai/cli/configuration/agents-md (read 2 December 2026)
- Factory docs index, checked for memory pages: https://docs.factory.ai/llms.txt (read 2 December 2026)
- Hindsight Coding Agents, Factory Droid 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 Factory Droid have memory?

The Factory docs we read on 2 December 2026 describe no memory store that carries facts from one session to the next. Droid loads AGENTS.md and related instruction files at the start of work and in nested folders when it reads them. For facts that must carry over, add a plugin or a memory server.

### Where does Factory Droid read AGENTS.md from?

From the current folder up to the git root, checking .factory/, .agents/ and .agent/ at each level, plus personal folders ~/.factory/, ~/.agents/ and ~/.agent/. Droid also reads the compatible names agents.md, Agents.md, CLAUDE.md and Claude.md.

### How do I add Hindsight memory to Factory Droid?

Run npx @vectorize-io/hindsight-coding-agents install factory-droid. It writes hook registrations to ~/.factory/hooks.json and an MCP entry to ~/.factory/mcp.json. Memory goes to Hindsight Cloud, a server you run, or a local daemon.

