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]
Enh(sh): Do not pollute working repo with logs (#1192)
Kilian Lieret8ea180bc9cf3
diff --git a/sweagent/run/run_shell.py b/sweagent/run/run_shell.pyindex 5312b8f2..e8373900 100644--- a/sweagent/run/run_shell.py+++ b/sweagent/run/run_shell.py@@ -23,7 +23,6 @@ from sweagent import CONFIG_DIRfrom sweagent.agent.agents import AbstractAgent, ShellAgentConfigfrom sweagent.agent.extra.shell_agent import ShellAgentfrom sweagent.agent.problem_statement import (- EmptyProblemStatement,GithubIssue,ProblemStatement,ProblemStatementConfig,@@ -33,7 +32,6 @@ from sweagent.environment.repo import PreExistingRepoConfigfrom sweagent.environment.swe_env import EnvironmentConfig, SWEEnvfrom sweagent.run.common import save_predictionsfrom sweagent.run.hooks.abstract import CombinedRunHooks, RunHook-from sweagent.run.run_single import _get_default_output_dirfrom sweagent.utils.config import load_environment_variablesfrom sweagent.utils.github import _is_github_issue_urlfrom sweagent.utils.log import add_file_handler, get_logger, set_stream_handler_levels@@ -149,12 +147,7 @@ def run_from_cli(args: list[str] | None = None):problem_statement = TextProblemStatement(text=problem_input,)- run_shell = RunShell(- env,- agent,- problem_statement=problem_statement,- output_dir=_get_default_output_dir(cli_args.repo, EmptyProblemStatement(), agent_config),- )+ run_shell = RunShell(env, agent, problem_statement=problem_statement, output_dir=Path.home() / "sweagent_shell")run_shell.run()