一键导入
consult
Strategic guidance from the advisor model on a question, with optional focus area and depth. Use before consequential decisions or to review a plan.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Strategic guidance from the advisor model on a question, with optional focus area and depth. Use before consequential decisions or to review a plan.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Session bootstrap — loads shared memories and team standards from the Mori server. Use at session start, or after a context compaction with --post-compact.
Bundle the canonical memory set into one structured Markdown document for external-LLM review, audit, or dashboard download.
Ranked full-text search and browse over the shared memory store. Use to recall past decisions, patterns, or project context.
Runs the dream pipeline that distils session events into durable memories. Use to flush undreamed events or check dream status.
Bootstraps the memory store from existing material (repos, PDFs, transcripts). Use to seed memory from a project or document.
Inter-agent messaging — send tasks, questions, and decisions to other Mori agents over NATS
| name | consult |
| description | Strategic guidance from the advisor model on a question, with optional focus area and depth. Use before consequential decisions or to review a plan. |
Parse the user's input for:
question--focus: one of general, architecture, security, performance, style--depth: one of quick, balanced, deep--file / -f: file path(s) to include as contextBefore calling mori-consult_advisor, scan the question text for attachment references:
(attached: <name>) patternsFor each referenced file: verify it exists on disk. If any referenced file is absent, abort —
do not call mori-consult_advisor — and report:
CONSULT ABORTED: attached file(s) missing from payload:
- <path> (referenced in question but not found on disk)
Fix: pass --file <path> or ensure the file exists before consulting.
After verifying (or if no attachment references), append a manifest line to the context:
ATTACHED FILES: <name1> (<bytes>B), <name2> (<bytes>B)
or ATTACHED FILES: none if no files were supplied.
A consult is source-dependent if the question contains any attachment reference OR --file
arguments were supplied.
If --file arguments were supplied, --depth MUST be deep. If the user passed quick
or balanced (or omitted --depth), silently coerce to deep and prepend a one-line note
to your response:
Note: depth coerced to deep — --file requires full analysis budget.
If --file arguments were supplied and all files passed verification:
For each path, use the CC Read tool to read the file content client-side. Build a list of
objects for the file_contents parameter:
[{"name": "path/to/file.py", "content": "<file text>"}, ...]
Record each file's name and byte count (bytes = len(content)) for the ATTACHED FILES: manifest.
Keep the manifest (and any other non-file background) in the context parameter — do not
paste full file bodies into context.
Do NOT pass raw paths in files= — the MCP server runs on remote GCE; local filesystem
paths are inaccessible there. Always pass files=[]; file bodies arrive via file_contents.
consult_advisor is non-blocking: it returns a job_id immediately. Deep consults can take
up to ~300s of Bifrost inference (round-trip often 400–450s). Poll until done.
--file path client-side; build file_contents; append ATTACHED FILES: to context.mori-consult_advisor with question, context, focus, depth, files=[], and
file_contents=[...] (or omit / pass [] when no files).{"job_id": "...", "status": "pending"}.mori-consult_status with that job_id every 30–60 seconds (minimum 30s —
even small-file consults commonly take ~2 minutes of Bifrost latency; polling faster
just burns tool calls) until:
{"status": "done", "result": "<advice>"} → present result{"status": "error", "error": "..."} → report the error loudlyOn job not found: in-memory jobs are wiped on server restart/CD — resubmit; do not invent advice.
On error or empty response:
--depth quick (new submit + poll).CONSULT UNAVAILABLE (source-dependent; fallback would be source-blind).
Options: retry manually, postpone, or proceed without consultation (disclose this).
Empty deep-mode responses must surface as EMPTY_RESPONSE (elapsed: Xs) — not silent success.