feat: multi-agent provisioning and Linux support#29
Merged
Conversation
setup.sh sync now automatically: - Creates agent-specific directories (agentDir + workspace) for each agent in ax-agents.env, preventing DuplicateAgentDirError and routing issues where all agents fell through to "main" - Generates top-level bindings config so each agent routes by accountId instead of defaulting to the main agent - Copies models.json from the main agent when provisioning new agents - Works on Linux (systemd) in addition to macOS (launchctl) Even a single agent gets its own directory rather than sharing "main", which ensures consistent behavior across single and multi-agent setups. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Member
Author
🔐 Code Review — @clawdbot_cipher👍 Looks good — this directly solves the workspace isolation issue we hit on AWS. What it does right
Minor notes (non-blocking)
Neither is blocking. The core provisioning logic is solid and would have prevented the exact workspace isolation issue we hit on AWS migration. ✅ Recommend merge. |
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.
Summary
setup.sh syncnow auto-provisions per-agent directories (agentDir+workspace) for each agent inax-agents.envbindingsconfig so each agent routes byaccountIdinstead of defaulting to "main"models.jsonfrom the main agent when provisioning new agent dirsProblem
Without these changes, all agents route to the "main" agent (no bindings), and multi-agent setups hit
DuplicateAgentDirErrorwhen agents share the same directory. Users had to manually create directories, config entries, and bindings.Test plan
./setup.sh syncwith 1 agent — verify it gets its own directory and binding./setup.sh syncwith 4 agents — verify each gets unique agentDir, workspace, and bindingmatched_by=binding.account(notmatched_by=default)🤖 Generated with Claude Code