Skip to content

feat(skills): inherit parent agent_type when spawning child nodes#37

Merged
rguiu merged 2 commits into
mainfrom
feat/inherit-agent-type-on-spawn
Jun 17, 2026
Merged

feat(skills): inherit parent agent_type when spawning child nodes#37
rguiu merged 2 commits into
mainfrom
feat/inherit-agent-type-on-spawn

Conversation

@rguiu

@rguiu rguiu commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Child nodes now ALWAYS inherit the parent's agent_type by default. The previous decision tree allowed agents to auto-select 'bash' for any task involving shell commands, which caused orchestrators running as 'opencode' to spawn 'bash' children unintentionally.

Changes:

  • Detect parent's agent_type via GET /api/nodes/:id at spawn time
  • Use $MY_AGENT in all spawn examples instead of hardcoded values
  • Remove decision tree that gave agents permission to auto-select bash
  • Bash override now only allowed when the user explicitly requests it
  • Updated complete orchestration example to use inherited agent type

rguiu added 2 commits June 17, 2026 23:41
Child nodes now ALWAYS inherit the parent's agent_type by default.
The previous decision tree allowed agents to auto-select 'bash' for
any task involving shell commands, which caused orchestrators running
as 'opencode' to spawn 'bash' children unintentionally.

Changes:
- Detect parent's agent_type via GET /api/nodes/:id at spawn time
- Use $MY_AGENT in all spawn examples instead of hardcoded values
- Remove decision tree that gave agents permission to auto-select bash
- Bash override now only allowed when the user explicitly requests it
- Updated complete orchestration example to use inherited agent type
@rguiu rguiu merged commit 0e65b9b into main Jun 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant