Skip to content

feat: code agent post-script and provider#1

Closed
ben-alkov wants to merge 5 commits into
mainfrom
feat/code-agent-post-script
Closed

feat: code agent post-script and provider#1
ben-alkov wants to merge 5 commits into
mainfrom
feat/code-agent-post-script

Conversation

@ben-alkov
Copy link
Copy Markdown
Owner

Summary

  • Add .fullsend/providers/github.yaml — maps FULLSEND_CODE_BOT_TOKEN to GH_TOKEN on the host side (ADR-0017)
  • Add .fullsend/harness/code.yaml — wires agent, provider, post-script, and runner env vars
  • Add .fullsend/scripts/post-code.sh — pushes agent feature branch and opens a PR linking to the originating issue
  • Update dispatch/github/workflows/code.yml to export ISSUE_NUMBER and REPO_FULL_NAME

Depends on PR fullsend-ai#231 (fullsend run CLI) and Marta's repo extraction work.

Test plan

  • Verify YAML syntax: python3 -c "import yaml, sys; yaml.safe_load(open(sys.argv[1]))" .fullsend/harness/code.yaml
  • Verify shellcheck passes on post-code.sh
  • E2E test after repo extraction lands: mock runDir/repo/ with a feature branch, set env vars, run post-code.sh

@ben-alkov ben-alkov force-pushed the feat/code-agent-post-script branch from 2155c47 to 5f1bded Compare April 17, 2026 13:32
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)
@ben-alkov ben-alkov force-pushed the feat/code-agent-post-script branch from 5f1bded to 60a334c Compare April 22, 2026 23:13
@ben-alkov ben-alkov closed this Apr 23, 2026
@ben-alkov ben-alkov deleted the feat/code-agent-post-script branch April 23, 2026 21:08
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