feat: code agent post-script and provider#248
Closed
ben-alkov wants to merge 5 commits into
Closed
Conversation
Site previewPreview: https://29ce96f4-site.fullsend-ai.workers.dev Commit: |
2155c47 to
5f1bded
Compare
Automation layer that takes the code agent's local commit from the sandbox and turns it into a pushed branch and PR. Three files: harness YAML, provider YAML, and a post-script shell script. Depends on repo extraction (in-flight) and PR fullsend-ai#231 (fullsend run CLI). Assisted-by: Claude Code (Opus 4.6)
Pushes the agent feature branch and opens a PR that auto-closes the originating issue. Runs on the host after sandbox teardown with access to the extracted repo and GH_TOKEN. Assisted-by: Claude Code (Sonnet 4.6)
Wires the code agent to the GitHub provider, post-script, and runner env vars (ISSUE_NUMBER, REPO_FULL_NAME). References agents/code.md and policies/code.yaml which are out of scope for this change. Assisted-by: Claude Code (Sonnet 4.6)
Maps FULLSEND_CODE_BOT_TOKEN to GH_TOKEN on the host side. The token is used by the post-script for push and PR creation and never enters the sandbox (ADR-0017). Assisted-by: Claude Code (Opus 4.6)
Assisted-by: Claude Code (Opus 4.6)
5f1bded to
60a334c
Compare
Contributor
|
Closing this after discussion in slack. |
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
.fullsend/providers/github.yaml— mapsFULLSEND_CODE_BOT_TOKENtoGH_TOKENon the host side (ADR-0017).fullsend/harness/code.yaml— wires agent, provider, post-script, and runner env vars.fullsend/scripts/post-code.sh— pushes agent feature branch and opens a PR linking to the originating issuedispatch/github/workflows/code.ymlto exportISSUE_NUMBERandREPO_FULL_NAMEDepends on PR #231 (
fullsend runCLI) and Marta's repo extraction work.Test plan
python3 -c "import yaml, sys; yaml.safe_load(open(sys.argv[1]))" .fullsend/harness/code.yamlpost-code.shrunDir/repo/with a feature branch, set env vars, runpost-code.sh