scope option to target subagent logs individually.
Scope options
| Scope | Runs at session level | Runs at subagent level |
|---|---|---|
'session' (default) | Yes | No |
'subagent' | No | Yes |
'both' | Yes | Yes |
Subagent context fields
When running at subagent level, the context includes additional fields:| Field | Type | Description |
|---|---|---|
source | string | "agent-{id}" - matches entry._source directly |
subagentType | string | e.g. 'Explore', 'Bash' |
subagentDescription | string | Short description of what the subagent was doing |
parentSessionId | string | The parent session’s ID |
Filtering entries by source
Subagent-scoped evals receive the full combined data (session + all subagents), not just the subagent’s own entries. Use_source to filter to only the current subagent’s entries:
source in the context directly matches the _source value on entries, so the filter is always exact.
subagentType filtering
When you specify subagentType, the eval only runs for subagents of that type. Subagents of other types won’t see the eval panel at all.
Subagent enrichments and actions
The samescope and subagentType options apply to enrichments and actions:

