diff options
| author | main <main@swarm.moe> | 2026-03-23 16:13:37 -0400 |
|---|---|---|
| committer | main <main@swarm.moe> | 2026-03-23 16:13:37 -0400 |
| commit | 5cf9432092da40a2653c3d156ca5a4746e853827 (patch) | |
| tree | 6ffcbf5cd5cfec01d89cbd68f349c764c206af9b /crates/phone-opus/src/mcp/protocol.rs | |
| parent | 1422dfed798ff1356a63449a803a8bbdfab79ec8 (diff) | |
| download | phone_opus-5cf9432092da40a2653c3d156ca5a4746e853827.zip | |
Inject consult prompt prefix
Diffstat (limited to 'crates/phone-opus/src/mcp/protocol.rs')
| -rw-r--r-- | crates/phone-opus/src/mcp/protocol.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/phone-opus/src/mcp/protocol.rs b/crates/phone-opus/src/mcp/protocol.rs index 5cd8313..b1ee587 100644 --- a/crates/phone-opus/src/mcp/protocol.rs +++ b/crates/phone-opus/src/mcp/protocol.rs @@ -12,6 +12,20 @@ pub(crate) const HOST_STATE_ENV: &str = "PHONE_OPUS_MCP_HOST_STATE"; pub(crate) const FORCE_ROLLOUT_ENV: &str = "PHONE_OPUS_MCP_TEST_FORCE_ROLLOUT_KEY"; pub(crate) const WORKER_CRASH_ONCE_ENV: &str = "PHONE_OPUS_MCP_TEST_WORKER_CRASH_ONCE_KEY"; pub(crate) const CLAUDE_BIN_ENV: &str = "PHONE_OPUS_CLAUDE_BIN"; +pub(crate) const CLAUDE_CONSULT_PREFIX: &str = r"You are being invoked in a read-only consultation mode by another model. You cannot edit files or make changes; your role is to inspect, reason, and advise. + +Take your time. Think deeply, check assumptions, and prefer a careful, high-signal analysis over a fast, shallow response. + +Your job is to produce a report for the calling model, not for an end user. Make it actionable. Itemize your findings and prioritize them by importance and urgency. Focus on concrete issues, risks, design flaws, behavioral regressions, missing validations, and better alternatives when relevant. + +When useful, distinguish clearly between: +- confirmed findings +- plausible risks or hypotheses +- open questions that would change the recommendation + +Prefer specific recommendations over vague commentary. If there are no meaningful problems, say so plainly. + +The real prompt follows."; pub(crate) const CLAUDE_EFFORT: &str = "max"; pub(crate) const CLAUDE_MODEL: &str = "claude-opus-4-6"; pub(crate) const CLAUDE_TOOLSET: &str = "Bash,Read,Grep,Glob,LS,WebFetch,WebSearch"; |