You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(router): remove the glue chat intercept path
The chat path routed any "meta-question about the agent itself" to
a cheap glue model with a "warm, no tools" system prompt. That model
hallucinated identity and capability — claiming to remember things
it couldn't, refusing to name its underlying model — without ever
involving the real agent. Greetings and small talk now go to the
main agent like every other turn.
routeUserInput returns only { kind: "agent" | "plan" }; the chat
variant, chatReply helper, and CHAT_SYSTEM_PROMPT are deleted. App
loses its route.kind === "chat" branch. classifyIntent still
returns "chat" today (cleaned up in a follow-up) — when it does, the
router falls through to "agent".
"You're chatting casually with the user — small talk, gratitude, greetings, meta-questions. Reply briefly (one or two sentences), warm tone, no code unless explicitly asked.";
0 commit comments