commit 05de13d75b766bf0cdc6b22851247af49476fbaf
parent 86343c50c65d8182a21caa39b34fb23655d25ea9
Author: andrewlaack-collab <andrew.laack@imbue.com>
Date: Thu, 5 Feb 2026 22:41:48 +0000
Updated skill (#20)
* Updated skill
* Black
* Updated promting
Diffstat:
3 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/skills/vet/SKILL.md b/skills/vet/SKILL.md
@@ -33,7 +33,7 @@ Always include conversation history for best results. Pass the session identifie
**OpenCode:**
```bash
-vet "goal" --history-loader "python ~/.agents/skills/vet/scripts/export_opencode_session.py --session-id <session-uuid>"
+vet "goal" --history-loader "python ~/.agents/skills/vet/scripts/export_opencode_session.py --session-id <ses_ID>"
```
**Codex:**
@@ -48,7 +48,11 @@ vet "goal" --history-loader "python ~/.claude/skills/vet/scripts/export_claude_c
### Finding Your Session
-**OpenCode:** The session ID appears in task metadata or can be found as the most recent file in `~/.local/share/opencode/storage/session/`.
+**OpenCode:** The `--session-id` argument requires a `ses_...` session ID. To find the current session ID, search for the first user message from this conversation in the part files:
+1. Take the **full text** of the first user message in this conversation (not a short snippet — use the entire message to avoid matching other sessions).
+2. Run: `grep -rl "FULL_FIRST_MESSAGE" ~/.local/share/opencode/storage/part/` to find the matching part file.
+3. Read the `sessionID` field from that part JSON file.
+4. Pass that value as `--session-id`.
**Codex:** Session files are stored in `~/.codex/sessions/YYYY/MM/DD/`. Find the most recently modified `.jsonl` file.
diff --git a/skills/vet/scripts/export_opencode_session.py b/skills/vet/scripts/export_opencode_session.py
@@ -5,7 +5,7 @@ import sys
from pathlib import Path
parser = argparse.ArgumentParser(description="Export OpenCode session history for vet")
-parser.add_argument("--session-id", required=True, help="OpenCode session UUID")
+parser.add_argument("--session-id", required=True, help="OpenCode session ID (ses_...)")
args = parser.parse_args()
STORAGE = Path.home() / ".local/share/opencode/storage"
@@ -13,6 +13,10 @@ MSG_DIR = STORAGE / "message" / args.session_id
PART_DIR = STORAGE / "part"
if not MSG_DIR.exists():
+ print(
+ f"WARNING: Message directory not found for session {args.session_id}",
+ file=sys.stderr,
+ )
sys.exit(0)
messages = []
diff --git a/vet/imbue_tools/util_prompts/conversation_prefix.py b/vet/imbue_tools/util_prompts/conversation_prefix.py
@@ -5,6 +5,7 @@ Examine the conversation carefully and be prepared to answer questions about it.
{% if conversation_truncated %}
Note: Earlier conversation messages were removed due to size constraints. Do not assume details about prior messages that are not visible.
{% endif %}
+Note: This conversation is being analyzed while still in progress. The agent's final messages may reference actions it is currently performing (such as running verification tools). Do not treat these as completed claims — the results may not yet be visible because the action is still executing at the time of this analysis.
Here is the conversation history between the user and the other agent.
{% filter indent(width=2) %}
```