ワンクリックで
memory-query
Read from the knowledge graph — natural language questions, semantic search, or hybrid search over objects and documents.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Read from the knowledge graph — natural language questions, semantic search, or hybrid search over objects and documents.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | memory-query |
| description | Read from the knowledge graph — natural language questions, semantic search, or hybrid search over objects and documents. |
| metadata | {"author":"emergent","version":"2.0"} |
New to Emergent? Load the
memory-onboardskill first to set up the project's knowledge graph schema before querying. Want to write to the graph? Load thememory-graphskill to create, update, or delete objects and relationships.
Query an Emergent project knowledge base using the memory query command.
.env.local containing MEMORY_PROJECT or MEMORY_PROJECT_ID. If .env.local is present anywhere above the current directory, --project is not needed. Only pass --project <id> explicitly when overriding or when no .env.local exists.Agent mode (default) — AI reasoning over the knowledge graph. Best for complex or multi-hop questions.
memory query "who directed fight club and what are their other movies?"
memory query --project <id> "list all requirements for the auth module"
memory query --show-tools "what are the key relationships between X and Y?"
Search mode — Direct hybrid search (semantic + lexical), no AI reasoning. Best for finding specific content fast.
memory query --mode=search "fight club"
memory query --mode=search --result-types=graph --limit=20 "authentication"
memory query --mode=search --result-types=text "API rate limiting"
After each agent query, a session ID is printed:
Session: abc123 (use --session abc123 to continue)
Pass it back to continue the conversation with full history:
memory query "what are the main services?"
# Session: abc123 (use --session abc123 to continue)
memory query --session abc123 "which of those handles auth?"
Sessions are scoped to the project. Only supported in --mode=agent.
| Flag | Default | Notes |
|---|---|---|
--mode | agent | agent or search |
--project | from config | Override target project |
--session | — | Continue a previous query session (agent mode only) |
--json | false | Machine-readable output |
--show-tools | false | Show agent tool calls (agent mode only) |
--limit | 10 | Max results (search mode only) |
--result-types | both | graph, text, or both (search mode only) |
--fusion-strategy | weighted | weighted, rrf, interleave, graph_first, text_first |
--project is set, the CLI uses the default project from config; ask the user to confirm or specify one if the context is ambiguous--output json + --json for downstream processing or to pass results to another tool--session <id> to continue with full conversation historyAgent mode streams the response and prints a final answer. Search mode returns a table (or JSON) of matching objects/documents with scores.
Use --json to get structured output suitable for parsing:
memory query --mode=search --json "authentication" | jq '.[].title'
Full Memory CLI command reference with all subcommands and flags. Use when you need exact command syntax, flag names, or usage examples for any `memory` CLI command.
Full Memory CLI command reference with all subcommands and flags. Use when you need exact command syntax, flag names, or usage examples for any `memory` CLI command.
Create a versioned release — commit, tag, push, and deploy to servers. Use when the user wants to release, deploy, publish, or push a new version.
Analyze and dump OpenCode sessions from any project. Use when the user asks to read a session, find a session by title, list sessions for a project, dump session content, or show usage stats (skills, tools, tokens, cost) for any project directory.
Read from the knowledge graph — natural language questions, semantic search, or hybrid search over objects and documents.
Create and manage graph branches — isolated workspaces for staging changes before merging to main. Use for what-if analysis, planning, or any work that should not immediately affect the main graph.