{"version":"2.1.335","anchor":"script-task-eviction-for-subagents","canonical_anchor":"script-task-eviction-for-subagents","heading":"Subagents can now clear out their script tasks","tier":"internal","area":"Subagents","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/script-task-eviction-for-subagents","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Subagents can now clear out their script tasks\n\nSubagents can now remove their script tasks from the task list, not only their shell tasks, when a build-time check allows it\n\n**Unclear.** It is not known whether the build-time check that enables this is on in released builds.\n\n**What**\n\nA subagent is a helper Claude starts to work on part of a job. When a check fixed at build time allows it, subagents now remove their script tasks from Claude Code's list of running tasks. Before, only shell tasks were removed this way. If removing a script task fails, Claude Code reports an error.\n\n**Why**\n\nThis tidies up task state left behind by subagents.\n\n- Area: Subagents\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}