Skip to content

feat(acp): agent_delegate — synchronous agent-to-agent delegation#63

Open
DorianZheng wants to merge 1 commit intomainfrom
feat/agent-delegate
Open

feat(acp): agent_delegate — synchronous agent-to-agent delegation#63
DorianZheng wants to merge 1 commit intomainfrom
feat/agent-delegate

Conversation

@DorianZheng
Copy link
Copy Markdown
Member

@DorianZheng DorianZheng commented Apr 19, 2026

Summary

  • Adds agent_delegate(target_group_jid, prompt, timeout_ms?) action to AcpOutboundClient
  • Unlike acp_prompt, this action is synchronous — it awaits the full sub-agent response before returning
  • Each call creates an isolated session (no shared caller context)
  • Timeout default: 5 minutes, configurable per call via timeout_ms
  • Cancels peer session on timeout (best-effort)

Test plan

  • Unit tests: success, peer not found, timeout
  • E2E tests: success with test-peer, forced timeout
  • npm test or bun test passes
  • PR opened on boxlite-ai/agentlite

@DorianZheng DorianZheng changed the title [codex] feat(acp): add agent_delegate synchronous delegation action feat(acp): agent_delegate — synchronous agent-to-agent delegation Apr 19, 2026
@DorianZheng DorianZheng marked this pull request as ready for review April 22, 2026 10:27
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