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
{{ message }}
Repository navigation
[Refactor] Extract system prompt & context management from Task.ts #25
Extract the system prompt construction, context condensing/truncation, and environment detail logic from src/core/task/Task.ts into a dedicated module.
Scope
Methods to extract:
condenseContext()
getSystemPrompt()
handleContextWindowExceededError()
buildCleanConversationHistory()
getEnabledMcpToolsCount()
getFilesReadByRooSafely()
getCurrentProfileId()
State owned: None directly — read-only access to other state
Estimated size: ~300–400 lines
Notes
This cluster integrates with MCP, prompt generation, and context management subsystems but owns no mutable state itself, making it a clean extraction target. Resolving this directly reduces the file size AI coding agents must load when working on Task.ts (see cline/cline#3095).
Activity