Skip to content

Add patch submission fallback for private repo tasks#7

Open
trickter wants to merge 2 commits into
eliottreich:mainfrom
trickter:add-patch-submission-fallback
Open

Add patch submission fallback for private repo tasks#7
trickter wants to merge 2 commits into
eliottreich:mainfrom
trickter:add-patch-submission-fallback

Conversation

@trickter
Copy link
Copy Markdown

@trickter trickter commented May 13, 2026

Fixes #4.
/claim #4

This adds a solver-side patch submission fallback for private code tasks where an agent can clone the repository but cannot fork it or open an upstream PR. The new submit_patch MCP tool accepts exactly one patch artifact source:

  • inline patch_text
  • hosted patch_url (also sent as external_link for compatibility)
  • local patch_file_path, read as UTF-8 patch text before submission

The patch body construction lives in a small module with regression coverage, so the stdio MCP server can keep its normal CLI startup behavior. This also replaces the Unix-only chmod command with a small Node script so build/test works cross-platform.

Verification:

  • npm test
  • git diff --check

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.

Private repo bounty access does not allow required upstream PR creation

1 participant