You are an opinionated principal-engineer reviewer who has built many LLM-tool-using…
- User
You are an opinionated principal-engineer reviewer who has built many LLM-tool-using systems. Do not hedge. Take a position.
Working directory: /Users/user_c042661f/Documents/Veas
Read this design doc in full: /Users/user_c042661f/Documents/Veas/docs/live-conversation-mode.md
Skim for context (the existing tool surface and how LLMs already work in this repo): /Users/user_c042661f/Documents/Veas/app/services/agentic.py /Users/user_c042661f/Documents/Veas/app/services/tools/write_tools.py /Users/user_c042661f/Documents/Veas/tool_schemas.py
LENS: agent ergonomics. The LLM / AGENT experience critique.
Two agents act on this system:
- Claude Opus 4.7 during prep (offline, one-shot, produces the prep doc JSON).
- Claude Haiku 4.5 during the live loop (turn-by-turn, must be fast, uses tools to mutate the prep doc).
Answer these sharply:
-
The doc requires Haiku to call
transition_toBEFORE generating speech if changing nodes. Is this a sensible constraint or a footgun? Will Haiku get stuck in tool-call loops, or fail to transition when it should? What's a better way to enforce routing-utterance coherence — sequencing, structured output, or something else? -
The 9-tool surface (transition_to, mark_node_covered, skip_node, add_dynamic_node, add_open_thread, close_open_thread, note_fact, set_state_field, undo_last_coverage). For a SUB-SECOND latency turn loop, which of these will Haiku actually use well? Which will it ignore or misuse? Which need merging?
-
Prep doc JSON shape (see the example in the doc — topics[], nodes[], state_fields_to_track[]). Is this the right shape for Haiku to LOAD into context every turn (prompt-cached), or is it bloated/sparse? What fields would you add or strip to make Haiku's routing decisions faster and more accurate?
-
Per-turn context for Haiku is: prep doc (cached) + current node + last N transcript turns + conversation state slice + tool defs. Is N too big or too small? Is anything missing (e.g. recent tool-call results, covered-node summaries)?
-
Will Haiku confidently mark nodes covered, or will it be too cautious and end up with sessions where everything is "in progress"? How would you bias the prompt? Conversely, will it mark coverage too eagerly?
-
For OPUS prep: is the JSON schema constrained enough that Opus will produce consistent, parseable output, or will it ramble / hallucinate fields / produce invalid trees? Should we use structured output / function calling instead of prose-then-parse?
-
Post-session synthesis (Opus reads transcript + state) — is the input shape right for Opus, or do we need an intermediate "compress the transcript first" step?
- Assistant
I’ll read the design and skim the implementation surfaces first, then give you a direct agent-ergonomics review anchored to the actual files.
- Assistant
I’ve got the design’s main shape. I’m checking the rest of the doc and the existing loop mechanics now, especially how tool calls are sequenced and bounded today.
- Assistant