Skip to content

Add optimized four-in-one prompt strategy - #3

Closed
bstee615 wants to merge 1 commit into
mainfrom
bstee615-add-four-in-one-strategy
Closed

Add optimized four-in-one prompt strategy#3
bstee615 wants to merge 1 commit into
mainfrom
bstee615-add-four-in-one-strategy

Conversation

@bstee615

Copy link
Copy Markdown
Owner

Summary

  • add the standalone PatchBased02OptimizedFourInOne prompting strategy
  • bake in the established eagernessPrompt: 'aggressionHighLow' option without requiring Proxy /models schema support
  • preserve existing PatchBased02 strategies and apply strategy config on default-model retries

Behavior

The strategy uses optimized PatchBased02 prompt/response handling. For high and low eagerness, it prepends the existing <|aggression|>...<|/aggression|> tag before the unchanged PatchBased02 postscript. Medium leaves the existing postscript unchanged.

Stack

Alternative to the Proxy-backed integration option. This PR depends only on base draft PR #1 and is based on bstee615-include-patchbased02optimized.

Validation

  • Copilot extension npm run typecheck
  • prompt options and prompt crafting: 79 tests passed
  • targeted provider strategy/config/retry coverage: 31 tests passed
  • ESLint on all changed files
  • staged npm run precommit hygiene

Add a standalone PatchBased02OptimizedFourInOne strategy that selects the established aggressionHighLow eagerness prompt, including default-model retry handling.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 13bd697b-ebe3-4c55-a34e-58dcf027cad6
bstee615 pushed a commit that referenced this pull request Aug 28, 2026
* Let the setup banner reload an agent's configuration

A user who finishes setup outside the app — `claude login` in a terminal,
an exported key — leaves no signal the app can see, so the banner kept
asking them to sign in to something they had already signed in to. Give
them a way to say "look again", and rename the docs link to "learn more"
now that it is one of two links rather than the only one.

The re-look is the tail of a download promoted to its own gesture:
restart chat discovery, then refresh models. `AgentSdkSetupChannel` grows
a second request key rather than per-agent code, so agent #3 still needs
no edit here — one consumed nonce per key, cleared as it is claimed, so a
repeat press still lands.

The reload clause folds into each of the four `noAccount` sentences
rather than trailing them: it is unconditional, so the table stays at
four branches and no localized string is assembled from fragments.

* Rank the no-account copy as the buttons rank it, and harden its links

Read the sentence in the order the routes are weighted: GitHub sign-in leads,
as the primary button; the provider sign-in follows; reload and docs trail,
being the copy's only links rather than buttons. Reload and docs become their
own sentences — kept as trailing clauses they would have fallen under the "if
you already set up Claude elsewhere" conditional, which does not scope docs.

Addresses review feedback: build both `command:` hrefs through
`createCommandUri` instead of by hand (`encodeURIComponent` leaves `)` alone,
so an agent id containing one closed the markdown link destination early), and
escape the host-supplied display name and sign-in provider before interpolating
them into markdown this banner trusts for two commands.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* Rewrite the no-account copy, and point Claude at its integrations docs

The four sentences now put every sign-in route and the reload into one "or"
list, ranked as the buttons rank them, and give the docs their own trailing
sentence. Claude's docs URL moves to the third-party integrations page, which
is what "other ways to set up Claude" actually means: Console, Bedrock, Vertex,
Foundry, Teams and Enterprise. "Set up" is the verb, two words, as the rest of
the string already had it.

Both agents' URL constants still described the workbench as labelling a button.
It has been a link since docs stopped being an action.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
@bstee615
bstee615 force-pushed the bstee615-add-four-in-one-strategy branch from af91c1b to 4cefbbd Compare August 28, 2026 23:15
@bstee615
bstee615 changed the base branch from bstee615-include-patchbased02optimized to main August 28, 2026 23:18
@bstee615

Copy link
Copy Markdown
Owner Author

Replaced by upstream draft PR microsoft#333302. Closing this fork-only draft.

@bstee615 bstee615 closed this Aug 29, 2026
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