Use ctx with Factory AI Droid

Import Factory AI Droid local sessions and search them with ctx.

Install ctx on the machine where Factory AI Droid has local sessions:

curl -fsSL https://ctx.rs/install | sh

See Install for setup and data-root details.

ctx can import Factory AI Droid local session history when supported records are present. That makes Droid work searchable from the same local index used for Claude Code, Codex, Cursor, Pi, and other supported agents.

Import Factory AI Droid history

ctx setup
ctx import --provider factory-ai-droid
ctx sources --json

Use the JSON output to confirm whether the source is importable on this machine.

Search Factory AI Droid history

ctx search "refactor attempt" --provider factory-ai-droid --json
ctx show event <ctx-event-id> --window 3
ctx show session <ctx-session-id> --mode lite

If a later agent needs the source path or a transcript export:

ctx locate event <ctx-event-id>
ctx export session <ctx-session-id>

Prompt an agent

Use ctx to search prior Factory AI Droid sessions for this area before editing. Inspect the best hit, cite the ctx ID you used, and continue only from history that still matches the current code.