Context Approaches
**Full Plan (default):** Use when tasks are complex or have dependencies: ``` Read Task N from [plan-file] carefully. ``` **Lean Context (for independent tasks):** Use when task is standalone and pattern-based: ``` You are implementing: [1-2 sentence task description] File to modify: [exact path] Pattern to follow: [reference to existing function/test] What to implement: [specific requirement] Verification: [exact command to run] [Do NOT include full plan file] ``` **Use lean context when:** - Task follows existing pattern (add similar test, implement similar feature) - Task is self-contained (doesn't need context from other tasks) - Pattern reference is sufficient (e.g., "follow TestE2E_FeatureOptionValidation") **Use full plan when:** - Task has dependencies on other tasks - Requires understanding of overall architecture - Complex logic that needs context ``` **Example:** ``` Lean context prompt: "You are adding a test for privileged mode in devcontainer features. File: pkg/runner/e2e_test.go Pattern: Follow TestE2E_FeatureOptionValidation (at end of file) Test: Feature with `"privileged": true` in metadata results in `--privileged` flag Verify: go test -v ./pkg/runner -run TestE2E_FeaturePrivilegedMode -timeout 5m Report: Implementation, test results, any issues." ``` **Why this works:** Reduces token usage, increases focus, faster completion when appropriate. ---