Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Change(tools): Don't append \n to new file (#1114)

Kilian Lieretce56deacda88
diff --git a/tools/defaults/bin/create b/tools/defaults/bin/create
index 46aa175b..5242b766 100644
--- a/tools/defaults/bin/create
+++ b/tools/defaults/bin/create
@@ -18,7 +18,7 @@ def main():
print(f"Warning: File '{path}' already exists.")
sys.exit(1)
- path.write_text("\n")
+ path.touch()
wfile = WindowedFile(path=path)
wfile.first_line = 0