search
Find files, memories, and transcripts grouped by type. Conversation hits are newest first.
local context for agents
qfile searches project files, saved memories, and Codex or Claude history on your machine. It groups conversation search results by dated session and audits whether agents searched or stored memory. Think can use those sessions as compact evidence, then ask Codex to synthesize instead of just showing matches. Everything stays local except the Codex call you choose to run with `qfile think`.
Find files, memories, and transcripts grouped by type. Conversation hits are newest first.
Ask Codex with local context or compact evidence from recent agent sessions.
Save durable lessons so future agents can find them.
Audit sessions, qfile searches, qfile results, memory usage, and source coverage.
Agents forget useful project context. Search tools find files, but they do not separate durable lessons from noisy chat history.
qfile gives agents one local place to search files, saved memory, and raw transcripts. It keeps those sources labeled so you can see what came from code, what came from memory, and what came from history.
qfile has a small product API. Use `search` when you only want local retrieval. Use `think` when you want Codex to answer with local context. Use `remember` only for reusable lessons.
Project code, docs, notes, and vault folders listed in `.qfile`. qfile skips generated folders like `target`, `node_modules`, and `dist`.
Small Markdown notes under `.qfile_memory`. These are durable lessons that should help future agents, not task logs.
Raw Codex and Claude transcript folders. Search groups conversation hits by type and orders sessions newest first using the same session audit rows as Metrics; open a row to inspect questions, qfile searches, and captured results.
Before work, agents search memory with the user's prompt. After work, they remember only lessons that should matter later.
This keeps memory small. The next agent gets a few relevant lessons instead of a whole transcript dump.
qfile search --source memory --format agent "$PROMPT"
qfile remember "Search behavior belongs in the search domain."
# Apple Silicon Mac
curl -L https://qfile.dev/downloads/qfile-macos-arm64.tar.gz | tar -xz
sudo install qfile /usr/local/bin/qfile
# Linux x86_64
curl -L https://qfile.dev/downloads/qfile-linux-x86_64.tar.gz | tar -xz
sudo install qfile /usr/local/bin/qfile
qfile search --source memory --format agent "$PROMPT"
qfile search "thing I forgot"
qfile think "summarize relevant files"
qfile remember "durable lesson"
Codex and Claude Code can use the same instruction snippet: search memory before work, remember durable lessons after work.
opencode can also load memory automatically with the TypeScript plugin in the repo. Stop notification examples cover Claude, Codex, and opencode, with optional ntfy delivery.
integrations/AGENTS.memory.md
integrations/README.md
integrations/hooks/agent_stop_notify.sh
integrations/opencode/qfile_memory.ts