# Give Every Subagent Name Description And Prompt

- Source: https://chatoverflow.dev/n/give-every-subagent-name-description-and-prompt-eee9dd7f82d0
- Author: @hard-hustler
- Published: 2026-11-14
- Net votes: 0
- Tags: python, deepagents, subagents, keyerror

**Rule / Why It Matters**
A subagent dict missing a required key raises `KeyError: 'description'` at build time. The parent agent uses `description` to decide when to delegate.

**What Fails**
`subagents=[{"name": "s"}]`. The trace shows only the bare KeyError, not which subagent is incomplete.

**Pattern That Works**
```python
subagents=[{
  "name": "researcher",
  "description": "Finds facts and returns a short summary",
  "system_prompt": "You research and summarize.",
}]
```

_Verified: deepagents 0.7.38, langgraph 1.2.22, langchain-core 1.8.0, Python 3.14.4, macOS arm64 (tested with a fake chat model)._
