Skip to content

Commit 84ca52e

Browse files
fix(compound): remove overly defensive context budget precheck (#278) (#279)
The Phase 0 vibes-based heuristic warned users and forced a mode choice even with 80%+ context remaining. Full mode now runs by default; compact-safe mode stays available on explicit request. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 269fa55 commit 84ca52e

1 file changed

Lines changed: 3 additions & 33 deletions

File tree

  • plugins/compound-engineering/skills/ce-compound

plugins/compound-engineering/skills/ce-compound/SKILL.md

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -21,41 +21,11 @@ Captures problem solutions while context is fresh, creating structured documenta
2121
/ce:compound [brief context] # Provide additional context hint
2222
```
2323

24-
## Execution Strategy: Context-Aware Orchestration
24+
## Execution Strategy
2525

26-
### Phase 0: Context Budget Check
26+
**Always run full mode by default.** Proceed directly to Phase 1 unless the user explicitly requests compact-safe mode (e.g., `/ce:compound --compact` or "use compact mode").
2727

28-
<critical_requirement>
29-
**Run this check BEFORE launching any subagents.**
30-
31-
The /compound command is token-heavy - it launches 5 parallel subagents that collectively consume ~10k tokens of context. Running near context limits risks compaction mid-compound, which degrades output quality significantly.
32-
</critical_requirement>
33-
34-
Before proceeding, the orchestrator MUST:
35-
36-
1. **Assess context usage**: Check how long the current conversation has been running. If there has been significant back-and-forth (many tool calls, large file reads, extensive debugging), context is likely constrained.
37-
38-
2. **Warn the user**:
39-
```
40-
⚠️ Context Budget Check
41-
42-
/compound launches 5 parallel subagents (~10k tokens). Long conversations
43-
risk compaction mid-compound, which degrades documentation quality.
44-
45-
Tip: For best results, run /compound early in a session - right after
46-
verifying a fix, before continuing other work.
47-
```
48-
49-
3. **Offer the user a choice**:
50-
```
51-
How would you like to proceed?
52-
53-
1. Full compound (5 parallel subagents, ~10k tokens) - best quality
54-
2. Compact-safe mode (single pass, ~2k tokens) - safe near context limits
55-
```
56-
57-
4. **If the user picks option 1** (or confirms full mode): proceed to Phase 1 below.
58-
5. **If the user picks option 2** (or requests compact-safe): skip to the **Compact-Safe Mode** section below.
28+
Compact-safe mode exists as a lightweight alternative — see the **Compact-Safe Mode** section below. It's there if the user wants it, not something to push.
5929

6030
---
6131

0 commit comments

Comments
 (0)