Added three new detection patterns beyond the existing keyword checks:
1. Conversation history dumps: messages containing both "user:" and
"assistant:" role markers — real user messages never have both
2. Context synthesis phrases: "provided context", "following conversation",
"based on the conversation" (OW's query augmentation patterns)
3. Markdown template headers: "### " in messages >200 chars (OW uses
section headers in background templates; real mobile messages don't)
This closes the gap that caused "Fix CobraTrans ESET" to be created
spuriously in Agent Ecosystem from an OW history-dump background request.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Item noun phrases (job item, work item) checked before "add X to Y"
so the wrong " to " isn't captured in multi-clause sentences
- "please add X to [project], title" — comma after project = explicit title
- "work item to [project], title" — strips "to " filler then takes after comma
- Restructured function: explicit prefixes → item nouns → add-to pattern
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Intent classifier: task phrases now checked before query to prevent
"add task X" mis-routing; "job item"/"job ticket"/"work order" added
to TASK_PHRASES; "please add + project keyword" fallback added;
substring match bug fixed ("in" inside "incident" triggered query)
- brain.py: routes planning fallback to Hermes cloud (claude-sonnet-4-6)
via HERMES_URL/HERMES_API_KEY env vars; falls back to local Ollama
if Hermes is unavailable
- main.py: rolling 50-run log written to logs/jon-snow/runs.jsonl
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Open WebUI sends 4-5 extra requests per chat: query augmentation (Query: ...),
title generation, tag generation, and follow-up question suggestions. These all
include the full chat history, so they match execute/task intents incorrectly.
Added early return to classify_intent for Open WebUI system prompt patterns.
OpenAI-compatible API at :8900. Intent classifier routes status queries
to FAST_MODEL (Ollama), task submissions to Plane, planning to SMART_MODEL.
Reads agent-os logs for status context. Phase 3: approval gate + execution.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>