Repository navigation
demo: add actors by default in claude multiplex - #2982
Closed
Adam Wathieu (adamwathieu) wants to merge 1 commit into
Closed
Adam Wathieu (adamwathieu) wants to merge 1 commit into
Adam Wathieu (adamwathieu) wants to merge 1 commit into
Conversation
Create the three Actor by default (luna, mars, orion).
This was referenced Nov 2, 2026
Eitan Yarmush (EItanya)
pushed a commit
to kagent-dev/substrate
that referenced
this pull request
Nov 3, 2026
The claude-code-multiplex demo doesn't work as written: 1. `deploy demo claude-code-multiplex` creates the three agent templates but no actors, so the dashboard has no agents and "Give a task" fails with `no agents available in namespace`. 2. Even with actors created by hand, the agents can't reach the Anthropic API. Every actor starts with **no egress policy**, and the egress gateway blocks all traffic. 3. The WorkerPool sets no resource limits, so each pod advertises the whole node and all three agents run at once. The demo is about a third agent waiting for a free pod, and that never happens. How this PR fixes it: - It builds on Adam's change from agent-substrate#2982 is folded in, with him as co-author. Deploy creates the three actors, the dashboard resumes an agent when its task starts and suspends it when the task ends, and each pod is sized for one agent. - When both pods are busy, a new task stays queued until one finishes, instead of suspending an agent mid-task. - Gives each agent an egress policy that lets TLS to api.anthropic.com:443 pass through the gateway. - The pod memory is 2560Mi (request = limit), not 2Gi. The worker keeps part of it for itself, so a 2Gi agent didn't fit. - Update the README to match the code. agent-substrate#2488 by @Ziy1-Tan documents the same setup as manual steps. With this PR those steps aren't needed. Testing: tested on kind. AI use: Claude assisted and I reviewed - [x] Tests pass - [x] Docs updated Signed-off-by: Haven Xia <[email protected]> Co-authored-by: Adam Wathieu <[email protected]> (cherry picked from commit 43dc887) Signed-off-by: Eitan Yarmush <[email protected]>
Yufan Su (yufan-su)
pushed a commit
to yufan-su/substrate
that referenced
this pull request
Nov 3, 2026
The claude-code-multiplex demo doesn't work as written: 1. `deploy demo claude-code-multiplex` creates the three agent templates but no actors, so the dashboard has no agents and "Give a task" fails with `no agents available in namespace`. 2. Even with actors created by hand, the agents can't reach the Anthropic API. Every actor starts with **no egress policy**, and the egress gateway blocks all traffic. 3. The WorkerPool sets no resource limits, so each pod advertises the whole node and all three agents run at once. The demo is about a third agent waiting for a free pod, and that never happens. How this PR fixes it: - It builds on Adam's change from agent-substrate#2982 is folded in, with him as co-author. Deploy creates the three actors, the dashboard resumes an agent when its task starts and suspends it when the task ends, and each pod is sized for one agent. - When both pods are busy, a new task stays queued until one finishes, instead of suspending an agent mid-task. - Gives each agent an egress policy that lets TLS to api.anthropic.com:443 pass through the gateway. - The pod memory is 2560Mi (request = limit), not 2Gi. The worker keeps part of it for itself, so a 2Gi agent didn't fit. - Update the README to match the code. agent-substrate#2488 by @Ziy1-Tan documents the same setup as manual steps. With this PR those steps aren't needed. Testing: tested on kind. AI use: Claude assisted and I reviewed - [x] Tests pass - [x] Docs updated Signed-off-by: Haven Xia <[email protected]> Co-authored-by: Adam Wathieu <[email protected]>
Dmitry Berkovich (dberkov)
pushed a commit
that referenced
this pull request
Nov 3, 2026
The claude-code-multiplex demo doesn't work as written: 1. `deploy demo claude-code-multiplex` creates the three agent templates but no actors, so the dashboard has no agents and "Give a task" fails with `no agents available in namespace`. 2. Even with actors created by hand, the agents can't reach the Anthropic API. Every actor starts with **no egress policy**, and the egress gateway blocks all traffic. 3. The WorkerPool sets no resource limits, so each pod advertises the whole node and all three agents run at once. The demo is about a third agent waiting for a free pod, and that never happens. How this PR fixes it: - It builds on Adam's change from #2982 is folded in, with him as co-author. Deploy creates the three actors, the dashboard resumes an agent when its task starts and suspends it when the task ends, and each pod is sized for one agent. - When both pods are busy, a new task stays queued until one finishes, instead of suspending an agent mid-task. - Gives each agent an egress policy that lets TLS to api.anthropic.com:443 pass through the gateway. - The pod memory is 2560Mi (request = limit), not 2Gi. The worker keeps part of it for itself, so a 2Gi agent didn't fit. - Update the README to match the code. #2488 by @Ziy1-Tan documents the same setup as manual steps. With this PR those steps aren't needed. Testing: tested on kind. AI use: Claude assisted and I reviewed - [x] Tests pass - [x] Docs updated Signed-off-by: Haven Xia <[email protected]> Co-authored-by: Adam Wathieu <[email protected]> (cherry picked from commit 43dc887) Signed-off-by: Eitan Yarmush <[email protected]>
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.
Fix the "no agents available in namespace" error in claude multiplex demo
Since #1523, the template reconciler deletes the temporary golden actor once the golden snapshot tag is published in cmd/ateapi/internal/controlapi/actor_template.go:
claudemultiplex.Deploycreates 3ActorTemplates (agent-luna,agent-mars,agent-orion) and waited for their golden snapshots without ever creating the actual actors, depending on the template reconciler to not delete the actors. The demo regressed after the change and we still see no actors when we run the demoMake the demo spin up the three actors (luna, mars, orion) after deploying the actortemplates in
Deploy().After the fix:
AI use: AI created the fix, I reviewed it.