docs/design/2026-07-16-subagent-prompt-guardrails.md
The Agent tool currently encourages broad parallel delegation and says that subagent output should generally be trusted. The built-in prompts also omit a few execution and verification expectations, while the Explore and fork prompts contain unsafe or contradictory guidance.
Context inheritance and the default background-execution behavior are outside this change.
Focused unit tests assert the parent guidance, built-in prompt contents, Explore's tool allowlist, and fork reporting rule. The core package build and typecheck provide the broader compile-time check.