Skip to content

feat: code agent post-script and provider#248

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

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

Conversation

@ben-alkov
Copy link
Copy Markdown
Contributor

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 #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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 15, 2026

Site preview

Preview: https://29ce96f4-site.fullsend-ai.workers.dev

Commit: 60a334cbbf6c519904c960a3c9763e4dfd43ddaa

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)
@ralphbean
Copy link
Copy Markdown
Contributor

Closing this after discussion in slack.

@ralphbean ralphbean 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.

2 participants