Skip to content

feat(codelayer): limit subagent nesting to three agents - #69

Merged
K-Mistele merged 3 commits into
mainfrom
limit-codelayer-subagent-nesting-to-three-levels
Aug 18, 2026
Merged

feat(codelayer): limit subagent nesting to three agents#69
K-Mistele merged 3 commits into
mainfrom
limit-codelayer-subagent-nesting-to-three-levels

Conversation

@K-Mistele

Copy link
Copy Markdown
Contributor

Summary

  • configure CodeLayer fork agents so only the root and direct child can delegate
  • add authorization and task-selection guidance to CodeLayer's model-facing subagent tool
  • cover the bounded fork chain for core, normal CodeLayer, and RLM CodeLayer agents

Verification

  • bun test --conditions=source packages/agentlayer-core/test/subagent-tool.test.ts agents/codelayer/test/agent.test.ts agents/codelayer/test/coding-subagent-tool.test.ts
  • bun check

@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown

Docs Agent Review

Agent finished with reason: error


To apply these recommendations, comment: @docs-agent apply

@K-Mistele
K-Mistele merged commit 377f488 into main Aug 18, 2026
6 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