Skip to content

Feature: add named delegation capability profiles for subagents #4928

@malaiwah

Description

@malaiwah

Summary

Add named delegation capability profiles for delegate_task so subagents can be scoped by policy instead of ad hoc toolset choices.

Why

Right now subagent policy is coarse:

  • child tool access is mostly toolset-based
  • children either skip memory entirely or inherit too much runtime behavior implicitly
  • there is no clean way to bundle memory policy and terminal backend selection into a named preset

That makes it hard to give Hermes a safe default child profile and a more trusted profile for stronger tasks.

Proposed shape

Add delegation.default_profile plus delegation.profiles in config, and allow delegate_task(profile=...).

A profile should be able to define:

  • default child toolsets
  • memory access mode: none, read, or write
  • whether external memory-provider tools are exposed
  • terminal overrides like backend/image/cwd

Built-in profiles could cover the common cases:

  • restricted: minimal tools, no memory writes
  • friendly: read-only memory context
  • privileged: write-capable memory for trusted child agents

Notes

This should also harden delegated tool scoping to work on resolved tools instead of exact toolset-name intersection, which helps with dynamic MCP toolsets and umbrella toolsets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/agentCore agent loop, run_agent.py, prompt buildertool/delegateSubagent delegationtype/featureNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions