- Notifications
You must be signed in to change notification settings - Fork907
feat: add hiddenCODER_AGENT_IS_SUB_AGENT
flag tocoder agent
#17783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Adds a new, hidden, flag `CODER_AGENT_IS_SUB_AGENT` to the `coder agent`command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull Request Overview
This PR introduces a new hidden flag, CODER_AGENT_IS_SUB_AGENT, to enable sub-agent behavior within the coder agent command.
- Added a boolean "subAgent" field to both CLI and agent option structures.
- Updated the CLI command to include a new hidden flag "is-sub-agent" with related documentation.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
cli/agent.go | Adds a new boolean flag and variable for sub-agent support in the CLI command configuration. |
agent/agent.go | Propagates the new sub-agent option through the agent options and uses it in agent initialization. |
Comments suppressed due to low confidence (2)
cli/agent.go:56
- [nitpick] Consider renaming the variable 'subAgent' to 'isSubAgent' to better reflect its boolean nature and align with the CLI flag naming convention.
subAgent bool
cli/agent.go:487
- Please add unit tests to verify that the hidden flag remains hidden in the CLI help output and functions correctly when set.
Flag: "is-sub-agent",
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM 👍
7f056da
intomainUh oh!
There was an error while loading.Please reload this page.
Closescoder/internal#620
Adds a new, hidden, flag
CODER_AGENT_IS_SUB_AGENT
to thecoder agent
command.