feat(delegate): add acp_command/acp_args override to delegate_task#3113
Closed
Mibayy wants to merge 1 commit into
Closed
feat(delegate): add acp_command/acp_args override to delegate_task#3113Mibayy wants to merge 1 commit into
Mibayy wants to merge 1 commit into
Conversation
Enables spawning ACP child agents from any parent (Discord, Telegram,
CLI) regardless of the parent's own transport.
## Use case
From a Discord/Telegram parent, delegate a task to Claude Code running
via its Max subscription OAuth (no separate API key needed):
delegate_task(
goal="Refactor this module for better testability",
acp_command="claude",
acp_args=["--acp", "--stdio"],
)
Or mix transports in a batch:
delegate_task(tasks=[
{"goal": "Research the topic", "toolsets": ["web"]},
{"goal": "Write the code", "acp_command": "claude", "acp_args": ["--acp", "--stdio"]},
])
## Changes
- _build_child_agent(): added override_acp_command / override_acp_args params
that take precedence over parent inheritance (same pattern as override_provider)
- delegate_task(): added acp_command / acp_args params, forwarded to _build_child_agent
- Tool schema: acp_command and acp_args added to top-level params and per-task items
- Registry handler: passes new params through
Closes NousResearch#2653
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2653
Problem
delegate_taskalways inheritedacp_command/acp_argsfrom the parent agent. If the parent was running via Discord, Telegram, or CLI (no ACP), it was impossible to spawn a child over ACP transport.Solution
Two new optional params on
delegate_task:acp_command"claude","copilot")acp_args["--acp", "--stdio"])Both can also be set per-task in batch mode.
Usage
Implementation
Same override pattern as the existing
override_provider/override_base_urlchain — explicit override takes precedence, falls back to parent inheritance when not set. No behaviour change for existing callers.65 existing delegation tests pass.