From c50208d4130a2b4295bc2b34c8d099688e6fd826 Mon Sep 17 00:00:00 2001 From: Trevin Chow Date: Wed, 21 Jan 2026 15:25:51 -0800 Subject: [PATCH] feat(workflows:plan): Add smart research decision logic (#100) Previously, /workflows:plan always ran all 3 research agents (repo-research, best-practices, framework-docs) regardless of task complexity. This wasted tokens and time for simple tasks like UI tweaks or bug fixes with clear causes. Now the workflow: - Always runs repo research first (fast, local) - Makes an informed decision about external research based on: - Signals gathered during idea refinement (familiarity, intent, risk) - Repo research findings (existing patterns, CLAUDE.md guidance) - High-risk topics (security, payments, external APIs) always trigger research - Strong local context allows skipping external research - Announces the decision and proceeds, user can redirect if needed This makes the planning workflow smarter about when web research adds value.