princeton-nlp / SWE-agent

SWE-agent takes a GitHub issue and tries to automatically fix it, using GPT-4, or your LM of choice. It solves 12.47% of bugs in the SWE-bench evaluation set and takes just 1 minute to run.
https://princeton-nlp.github.io/SWE-agent/
MIT License
11.9k stars 1.19k forks source link

ensure variables work in special command docstring #628

Closed forresty closed 5 days ago

forresty commented 6 days ago

SYSTEM message changes:

before: moves the window down {WINDOW} lines after: moves the window down 100 lines

What does this implement/fix? Explain your changes.

I was playing it and found that in special commands section in the system message, {WINDOW} was not replaced with the desired value of 100. Dig into it a little bit and I believe this should fix it. Not sure if there would be side effects tho.

image

klieret commented 5 days ago

Very nice contribution ❤️

forresty commented 5 days ago

that was fast! thanks!