From 53797d1f9bbaf73778cbb9dd6ad2f857ba1a88e2 Mon Sep 17 00:00:00 2001 From: main Date: Tue, 24 Mar 2026 13:17:59 -0400 Subject: Reuse consult context per cwd by default --- assets/codex-skills/phone-opus/SKILL.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'assets/codex-skills/phone-opus/SKILL.md') diff --git a/assets/codex-skills/phone-opus/SKILL.md b/assets/codex-skills/phone-opus/SKILL.md index 1b087a4..3750531 100644 --- a/assets/codex-skills/phone-opus/SKILL.md +++ b/assets/codex-skills/phone-opus/SKILL.md @@ -15,13 +15,14 @@ should be taken as authoritative or final. It is a pure consultant. - Ask for a second opinion on code, architecture, debugging, or design. - Point Claude at a specific repository with `cwd`. -- Reuse `session_id` from an earlier call when you want Claude to continue the same conversation. +- By default, phone_opus reuses the remembered Claude context for that `cwd`. +- Set `fresh_context: true` when you explicitly want a fresh Claude context instead of the remembered `cwd`-scoped one. ## Tool surface - `consult` - required: `prompt` - - optional: `cwd`, `session_id`, `render`, `detail` + - optional: `cwd`, `fresh_context`, `render`, `detail` - `health_snapshot` - `telemetry_snapshot` @@ -32,9 +33,9 @@ should be taken as authoritative or final. It is a pure consultant. - Uses `--dangerously-skip-permissions`, but wraps Claude in an external `systemd-run --user` sandbox. - The sandbox keeps the filesystem globally read-only, gives Claude a separate persistent home under phone-opus state, leaves `/tmp` and `/var/tmp` writable, and forces the consulted `cwd` read-only when that tree would otherwise be writable. - Previous consult outputs can be found in `/tmp/phone_opus-consults`. -- For related follow-ups, strongly prefer reusing `session_id`; cold-start Opus burns quota rereading files, while session reuse is much cheaper. +- For related follow-ups on the same repository, keep using the same `cwd`; phone-opus will reuse that remembered context by default, which is much cheaper than cold-starting Opus. - This surface is consultative only. Edit tools are unavailable. -- The returned `session_id` is reusable: pass it back into a later `consult` call to continue that Claude conversation. +- The returned `session_id` is still surfaced for traceability, but context reuse is now automatic per `cwd` instead of caller-managed. ## Example -- cgit v1.2.3