diff options
| author | main <main@swarm.moe> | 2026-03-24 13:17:59 -0400 |
|---|---|---|
| committer | main <main@swarm.moe> | 2026-03-24 13:17:59 -0400 |
| commit | 53797d1f9bbaf73778cbb9dd6ad2f857ba1a88e2 (patch) | |
| tree | 69b17b86e72b5f292bde42adf839a8ed8cf8005c /crates/phone-opus/src/mcp/catalog.rs | |
| parent | 690b4851ea0afd8b214ddaa5450eec3a8c3a7ec9 (diff) | |
| download | phone_opus-53797d1f9bbaf73778cbb9dd6ad2f857ba1a88e2.zip | |
Reuse consult context per cwd by default
Diffstat (limited to 'crates/phone-opus/src/mcp/catalog.rs')
| -rw-r--r-- | crates/phone-opus/src/mcp/catalog.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/phone-opus/src/mcp/catalog.rs b/crates/phone-opus/src/mcp/catalog.rs index 3570b1f..f17a3c5 100644 --- a/crates/phone-opus/src/mcp/catalog.rs +++ b/crates/phone-opus/src/mcp/catalog.rs @@ -41,7 +41,7 @@ impl ToolSpec { const TOOL_SPECS: &[ToolSpec] = &[ ToolSpec { name: "consult", - description: "Run a blocking consult against the system Claude Code install using a read-only built-in toolset, optionally resume a prior Claude session by session_id, and return the response plus execution metadata.", + description: "Run a blocking consult against the system Claude Code install using a read-only built-in toolset, automatically reuse the remembered context for the current cwd by default, optionally opt out with fresh_context, and return the response plus execution metadata.", dispatch: DispatchTarget::Worker, replay: ReplayContract::NeverReplay, }, @@ -90,9 +90,9 @@ fn tool_schema(name: &str) -> Value { "type": "string", "description": "Optional working directory for the Claude Code session. Relative paths resolve against the MCP host working directory." }, - "session_id": { - "type": "string", - "description": "Optional Claude session handle returned by a previous consult call. When set, phone_opus resumes that conversation instead of starting a fresh one." + "fresh_context": { + "type": "boolean", + "description": "When true, start a fresh Claude context instead of reusing the remembered context for this cwd. Defaults to false." } }, "required": ["prompt"] |