Skip to content

Add global agent selection with -a - #206

Open
gerrod3 wants to merge 2 commits into
pulp:mainfrom
gerrod3:feat/global-agent-selector
Open

gerrod3 wants to merge 2 commits into
pulp:mainfrom
gerrod3:feat/global-agent-selector

Conversation

@gerrod3

@gerrod3 gerrod3 commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Note

Posted by an agent on behalf of @gerrod3.

Agent environments currently require separate wrappers for testing, client generation, and container lifecycle commands. Add a global -a AGENT_ID / --agent AGENT_ID selector so ordinary commands use the selected agent's saved configuration and worktree mounts.

Reduce agent to create, ls, and destroy. Replace agent up with -a ID compose up -d followed by -a ID poll; use ordinary test, generate-client, and compose down commands with the selector. -a and -e are mutually exclusive, and invalid targets or missing mount overlays fail before executing a command. Saved agent target settings take precedence over conflicting shell variables.

Update the agent documentation and run the focused CLI regression tests in CI.

Validation:

  • All 8 CLI regression tests pass with mocked container commands.
  • Test lint/format checks and git diff --check pass.
  • Live containers were not exercised.

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