open-swe: Command for GitHub Copilot

.github/prompts/resolve_preview_conflict.md

resolve_preview_conflict is a command for GitHub Copilot from langchain-ai/open-swe. It costs 0 tokens per session (240 once invoked), scanned A, original, MIT.

A command workflow for putting pull requests with merge conflicts into a preview deployment. A pull request is a proposed code change, and a merge conflict means the changes cannot be combined automatically.

In plain words
What is it for?
Use it to resolve listed pull-request conflicts, test the combined result as intended by each change, and report which requests were included or left out.
Why use it?
It gives the agent a precise result format and requires the preview branch to contain the compatible changes on top of its current commit. This avoids leaving the deployment state or merge decisions ambiguous.

Command for GitHub Copilot ✓ vendor

Written for GitHub Copilot: a Copilot chat mode or prompt.

This is langchain-ai/open-swe's own configuration. It tells GitHub Copilot how to work on open-swe itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything open-swe configures →

About the project

Open SWE is an open-source software factory that gives coding tasks to an asynchronous agent, which investigates repositories, changes code, validates the results, and delivers pull requests. Engineering teams use it to automate code changes, reviews, CI follow-up, and related repository work from dashboards and connected tools.

langchain-ai/open-swe · 11,133 stars · on GitHub · langchain.com

Reuse

Borrowing it

Nothing to install: this file belongs to langchain-ai/open-swe. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/langchain-ai/open-swe/main/.github/prompts/resolve_preview_conflict.md
Clone the repo
git clone --depth 1 https://github.com/langchain-ai/open-swe

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for resolve_preview_conflict

README.md
[![agentmods](https://agentmods.dev/badge/commands/langchain-ai/open-swe/resolve_preview_conflict/github.svg)](https://agentmods.dev/commands/langchain-ai/open-swe/resolve_preview_conflict)
Your own site
<a href="https://agentmods.dev/commands/langchain-ai/open-swe/resolve_preview_conflict"><img src="https://agentmods.dev/badge/commands/langchain-ai/open-swe/resolve_preview_conflict/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for resolve_preview_conflict

Your own site · 80×15
<a href="https://agentmods.dev/commands/langchain-ai/open-swe/resolve_preview_conflict"><img src="https://agentmods.dev/badge/commands/langchain-ai/open-swe/resolve_preview_conflict.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 240 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00240
Opus 5.5 $0.00000 $0.00096
Sonnet 5.5 $0.00000 $0.00048
Haiku 4.5 $0.00000 $0.00024

Measured yesterday against content hash eefca1d1a778, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

resolve_preview_conflict scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/prompts/resolve_preview_conflict.md · 21 lines

What it actually says

This checkout is the preview deployment being assembled: main plus every labelled pull request that merged cleanly. The pull requests listed below (#<number> <head sha> <title>) conflicted with it. Get them into the preview on top of HEAD, with the result behaving the way every side intended. Whatever is committed on HEAD when you finish is what deploys.

Finish with cli_result. A script parses stdout, so it must follow this format exactly:

merged: <numbers>
#<number>: <reason>
  • The first line is merged: followed by the numbers of every listed pull request now in the preview, each preceded by a single space, without # (merged: 12 34). If none went in, the line is just merged:.
  • Then one #<number>: <reason> line for each listed pull request you left out, with a one-sentence reason. Nothing for the ones you merged.
  • No other lines, no Markdown, no code fences.

exit_code is 0 if every listed pull request is merged, 1 otherwise.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +6 lines eefca1d1a778
  2. 1mo ago First seen · 15 lines · 0 tokens per session scan A 646db7946f91

Subscribe to this mod's changes

resolve_preview_conflict is a command published in the GitHub repository langchain-ai/open-swe (11,133 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 240 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-26.