From 96dd9bef5f786cef28b50f1b7c4d7b2d7f003f83 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Fri, 28 Nov 2025 14:11:16 +0800 Subject: [PATCH] fix: Add 50k context threshold to prevent orchestrator overflow in lite-plan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .claude/commands/workflow/lite-plan.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.claude/commands/workflow/lite-plan.md b/.claude/commands/workflow/lite-plan.md index 5b14e6c2..467fcee3 100644 --- a/.claude/commands/workflow/lite-plan.md +++ b/.claude/commands/workflow/lite-plan.md @@ -38,6 +38,7 @@ Phase 1: Task Analysis & Exploration ├─ Parse input (description or .md file) ├─ intelligent complexity assessment (Low/Medium/High) ├─ Exploration decision (auto-detect or --explore flag) + ├─ ⚠️ Context protection: If file reading ≥50k chars → force cli-explore-agent └─ Decision: ├─ needsExploration=true → Launch parallel cli-explore-agents (1-4 based on complexity) └─ needsExploration=false → Skip to Phase 2/3 @@ -97,6 +98,8 @@ if (!needsExploration) { } ``` +**⚠️ Context Protection**: File reading ≥50k chars → force `needsExploration=true` (delegate to cli-explore-agent) + **Complexity Assessment** (Intelligent Analysis): ```javascript // analyzes task complexity based on: