feat(api): expose open-PR pressure strategy for contributors - #1187
Closed
jaso0n0818 wants to merge 2 commits into
Closed
feat(api): expose open-PR pressure strategy for contributors#1187jaso0n0818 wants to merge 2 commits into
jaso0n0818 wants to merge 2 commits into
Conversation
Wire the existing queue-pressure simulator into a self-scoped extension endpoint and MCP tool so agents can compare open-new-work, wait, and cleanup-first options before submitting another PR. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1187 +/- ##
==========================================
- Coverage 94.68% 94.66% -0.03%
==========================================
Files 157 159 +2
Lines 19074 19123 +49
Branches 6904 6915 +11
==========================================
+ Hits 18061 18103 +42
- Misses 424 426 +2
- Partials 589 594 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
JSONbored
reviewed
Jun 24, 2026
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
GET /v1/extension/contributors/:login/open-pr-pressure— self-scoped, public-safe strategy simulation (open new work / wait / cleanup first) built from cached queue + role context.gittensory_simulate_open_pr_pressureand planning promptgittensory_plan_open_pr_strategyfor agent-native pre-submission guidance.simulateOpenPrPressureengine via newopen-pr-pressure-response+extension-open-pr-pressureshaping layers with forbidden-term redaction.Test plan
npx vitest run test/unit/open-pr-pressure-response.test.ts test/unit/extension-open-pr-pressure.test.tsnpx vitest run test/unit/mcp-output-schemas.test.ts -t simulate_opennpx vitest run test/integration/api.test.ts -t "contributor extension context"