← 教程列表
agents

Problem 3: Context Bloat in Subagent Prompts

📅 2026/6/12 16:30:02⏱ 约 5 分钟阅读👁 8 阅读

**What happened:** - Standard approach: give subagent full plan file to read - Experiment: give only task + pattern + file + verify command - Result: Faster, more focused, single-attempt completion more common **Root cause:** Subagents waste tokens and attention on irrelevant plan sections. **Impact:** Medium - Slower execution, more failed attempts **What worked:** ``` You are adding a single E2E test to packnplay's test suite. **Your task:** Add `TestE2E_FeaturePrivilegedMode` to `pkg/runner/e2e_test.go` **What to test:** A local devcontainer feature that requests `"privileged": true` in its metadata should result in the container running with `--privileged` flag. **Follow the exact pattern of TestE2E_FeatureOptionValidation** (at the end of the file) **After writing, run:** `go test -v ./pkg/runner -run TestE2E_FeaturePrivilegedMode -timeout 5m` ``` ---

← 返回教程列表 AI8899 · 内容仅供学习参考