Factory Droid Memory: AGENTS.md, Compaction and Hindsight

3 min read

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.

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:

FolderUse
.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, OpenCode memory and Kimi Code memory.

Sources