Skip to content

Conversation

@pelikhan
Copy link
Contributor

Agent engine defines additional files that should be uploaded as artifacts (e.g. claude generates "output.txt")

Copilot AI and others added 3 commits August 23, 2025 14:23
…ation (#17)

* Initial plan

* Implement engine-declared output artifact support

- Add GetDeclaredOutputFiles() method to AgenticEngine interface
- Claude engine declares output.txt as output file
- Codex engine declares no output files (empty list)
- Compiler conditionally generates output steps only for engines with declared outputs
- Add OutputArtifactName constant for consistent artifact naming
- Update prompt generation and environment variables to be conditional
- Add comprehensive tests for engine capabilities and conditional compilation

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Final cleanup and test improvements

- Use OutputArtifactName constant in tests for consistency
- Add fmt import to agentic_output_test.go
- Ensure all tests pass with updated constant references

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Fix engine output collection to preserve GITHUB_AW_OUTPUT for all engines

- GITHUB_AW_OUTPUT functionality is now preserved for ALL engines (Claude and Codex)
- Engine-declared output files are collected separately as "agent_outputs" artifact
- Only engines that declare output files (like Claude with "output.txt") get engine output collection steps
- Codex engine continues to use GITHUB_AW_OUTPUT but doesn't get engine output collection since it declares no output files
- The GITHUB_AW_OUTPUT artifact remains named "aw_output.txt" as before
- Engine-declared files are collected in a separate "agent_outputs" artifact as requested

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

* Move engine output collection to separate file and simplify implementation

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan merged commit 8c6af8c into githubnext:main Aug 23, 2025
5 of 6 checks passed
@pelikhan pelikhan deleted the agent-engine-output-branch branch August 23, 2025 22:10
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