Skip to content

Add support for custom command, args, and env in sandbox.agent for both AWF and SRT#5356

Merged
pelikhan merged 7 commits intomainfrom
copilot/update-sandbox-agent-definition
Dec 3, 2025
Merged

Add support for custom command, args, and env in sandbox.agent for both AWF and SRT#5356
pelikhan merged 7 commits intomainfrom
copilot/update-sandbox-agent-definition

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 3, 2025

  • Extend custom fields (command, args, env) to work with SRT
    • Update struct comments to clarify fields work for both AWF and SRT
    • Update JSON schema documentation to mention both AWF and SRT
    • Skip SRT installation when custom command is specified
    • Support custom command in SRT execution
    • Add tests for SRT with custom fields
    • Update example workflow to document both AWF and SRT usage
  • Move example workflow to test workflows folder (pkg/cli/workflows/)
Original prompt

Update the "sandbox.agent" frontmatter definition to allow specifying an object to configure awf or srt

sandbox:
   agent:
     id: awf
     command: "..."
     args: ["..", ".."]
     env:
       ...

The command replaces the download of the awf binary, the args are added to the command args, the env is set on the step


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits December 3, 2025 04:28
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update sandbox.agent frontmatter to configure awf or srt Add support for custom AWF command, args, and env in sandbox.agent Dec 3, 2025
Copilot AI requested a review from pelikhan December 3, 2025 04:51
@pelikhan
Copy link
Copy Markdown
Collaborator

pelikhan commented Dec 3, 2025

@copilot custom fields are also applicable to srt

Comment thread pkg/cli/workflows/test-custom-agent.md
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Dec 3, 2025

@copilot custom fields are also applicable to srt

Done! Extended custom fields (command, args, env) to work with both AWF and SRT.

Changes in commit d77da32:

  • Updated struct and schema docs to clarify fields apply to both AWF and SRT
  • Skip SRT installation when custom command is specified (similar to AWF)
  • Support custom command in SRT execution with args appended
  • Custom env variables already worked for both (shared code path)
  • Added test for SRT with custom fields
  • Updated example workflow to document both AWF and SRT usage

Example SRT configuration:

features:
  sandbox-runtime: true
sandbox:
  agent:
    id: srt
    command: "custom-srt-wrapper"
    args: ["--custom-arg"]
    env:
      SRT_DEBUG: "true"

Copilot AI changed the title Add support for custom AWF command, args, and env in sandbox.agent Add support for custom command, args, and env in sandbox.agent for both AWF and SRT Dec 3, 2025
Copilot AI requested a review from pelikhan December 3, 2025 05:08
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review December 3, 2025 05:20
@pelikhan pelikhan merged commit 3fb6bc2 into main Dec 3, 2025
4 checks passed
@pelikhan pelikhan deleted the copilot/update-sandbox-agent-definition branch December 3, 2025 05:21
github-actions Bot added a commit that referenced this pull request Dec 3, 2025
Add documentation for the custom command, args, and env fields introduced
in PR #5356 for both AWF and SRT agent sandboxes. These fields allow users
to replace the standard agent installation with custom commands, add
additional arguments, and set environment variables.

Changes:
- Added "Custom AWF Configuration" section with usage example and field reference
- Added "Custom SRT Configuration" section with similar documentation
- Updated "Legacy Format" section to clarify the new 'id' field and its
  precedence over the legacy 'type' field

Related PR: #5356

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
pelikhan pushed a commit that referenced this pull request Dec 3, 2025
Add documentation for the custom command, args, and env fields introduced
in PR #5356 for both AWF and SRT agent sandboxes. These fields allow users
to replace the standard agent installation with custom commands, add
additional arguments, and set environment variables.

Changes:
- Added "Custom AWF Configuration" section with usage example and field reference
- Added "Custom SRT Configuration" section with similar documentation
- Updated "Legacy Format" section to clarify the new 'id' field and its
  precedence over the legacy 'type' field

Related PR: #5356

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants