mini-swe-agent 1.6.0__tar.gz → 1.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. {mini_swe_agent-1.6.0/src/mini_swe_agent.egg-info → mini_swe_agent-1.7.0}/PKG-INFO +1 -1
  2. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0/src/mini_swe_agent.egg-info}/PKG-INFO +1 -1
  3. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/__init__.py +1 -1
  4. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/agents/default.py +2 -2
  5. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/config/default.yaml +2 -4
  6. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/config/extra/swebench.yaml +5 -5
  7. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/config/github_issue.yaml +3 -3
  8. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/config/mini.yaml +2 -4
  9. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/config/mini_no_temp.yaml +2 -4
  10. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/LICENSE.md +0 -0
  11. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/README.md +0 -0
  12. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/pyproject.toml +0 -0
  13. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/setup.cfg +0 -0
  14. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/mini_swe_agent.egg-info/SOURCES.txt +0 -0
  15. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/mini_swe_agent.egg-info/dependency_links.txt +0 -0
  16. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/mini_swe_agent.egg-info/entry_points.txt +0 -0
  17. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/mini_swe_agent.egg-info/requires.txt +0 -0
  18. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/mini_swe_agent.egg-info/top_level.txt +0 -0
  19. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/__main__.py +0 -0
  20. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/agents/__init__.py +0 -0
  21. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/agents/interactive.py +0 -0
  22. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/agents/interactive_textual.py +0 -0
  23. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/config/README.md +0 -0
  24. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/config/__init__.py +0 -0
  25. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/config/extra/__init__.py +0 -0
  26. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/config/mini.tcss +0 -0
  27. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/environments/__init__.py +0 -0
  28. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/environments/docker.py +0 -0
  29. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/environments/extra/__init__.py +0 -0
  30. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/environments/extra/swerex_docker.py +0 -0
  31. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/environments/local.py +0 -0
  32. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/environments/singularity.py +0 -0
  33. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/models/__init__.py +0 -0
  34. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/models/anthropic.py +0 -0
  35. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/models/litellm_model.py +0 -0
  36. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/models/test_models.py +0 -0
  37. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/models/utils/__init__.py +0 -0
  38. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/models/utils/cache_control.py +0 -0
  39. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/models/utils/key_per_thread.py +0 -0
  40. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/py.typed +0 -0
  41. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/run/__init__.py +0 -0
  42. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/run/extra/__init__.py +0 -0
  43. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/run/extra/config.py +0 -0
  44. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/run/extra/swebench.py +0 -0
  45. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/run/extra/swebench_single.py +0 -0
  46. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/run/extra/utils/__init__.py +0 -0
  47. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/run/extra/utils/batch_progress.py +0 -0
  48. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/run/github_issue.py +0 -0
  49. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/run/hello_world.py +0 -0
  50. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/run/inspector.py +0 -0
  51. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/run/mini.py +0 -0
  52. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/run/mini_extra.py +0 -0
  53. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/run/utils/__init__.py +0 -0
  54. {mini_swe_agent-1.6.0 → mini_swe_agent-1.7.0}/src/minisweagent/run/utils/save.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mini-swe-agent
3
- Version: 1.6.0
3
+ Version: 1.7.0
4
4
  Summary: Nano SWE Agent - A simple AI software engineering agent
5
5
  Author-email: Kilian Lieret <kilian.lieret@posteo.de>, "Carlos E. Jimenez" <carlosej@princeton.edu>
6
6
  License: MIT License
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mini-swe-agent
3
- Version: 1.6.0
3
+ Version: 1.7.0
4
4
  Summary: Nano SWE Agent - A simple AI software engineering agent
5
5
  Author-email: Kilian Lieret <kilian.lieret@posteo.de>, "Carlos E. Jimenez" <carlosej@princeton.edu>
6
6
  License: MIT License
@@ -8,7 +8,7 @@ This file provides:
8
8
  unless you want the static type checking.
9
9
  """
10
10
 
11
- __version__ = "1.6.0"
11
+ __version__ = "1.7.0"
12
12
 
13
13
  import os
14
14
  from pathlib import Path
@@ -18,7 +18,7 @@ class AgentConfig:
18
18
  system_template: str = "You are a helpful assistant that can do anything."
19
19
  instance_template: str = (
20
20
  "Your task: {{task}}. Please reply with a single shell command in triple backticks. "
21
- "To finish, the first line of the output of the shell command must be 'MINI_SWE_AGENT_FINAL_OUTPUT'."
21
+ "To finish, the first line of the output of the shell command must be 'COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT'."
22
22
  )
23
23
  timeout_template: str = (
24
24
  "The last command <command>{{action['action']}}</command> timed out and has been killed.\n"
@@ -125,5 +125,5 @@ class DefaultAgent:
125
125
  def has_finished(self, output: dict[str, str]):
126
126
  """Raises Submitted exception with final output if the agent has finished its task."""
127
127
  lines = output.get("output", "").lstrip().splitlines()
128
- if lines and lines[0].strip() == "MINI_SWE_AGENT_FINAL_OUTPUT":
128
+ if lines and lines[0].strip() in ["MINI_SWE_AGENT_FINAL_OUTPUT", "COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT"]:
129
129
  raise Submitted("\n".join(lines[1:]))
@@ -15,8 +15,6 @@ agent:
15
15
  </format_example>
16
16
 
17
17
  Failure to follow these rules will cause your response to be rejected.
18
- To finish, issue the following command: `echo MINI_SWE_AGENT_FINAL_OUTPUT`
19
- without any other command.
20
18
  instance_template: |
21
19
  Please solve this issue: {{task}}
22
20
 
@@ -31,7 +29,7 @@ agent:
31
29
  3. Edit the source code to resolve the issue
32
30
  4. Verify your fix works by running your script again
33
31
  5. Test edge cases to ensure your fix is robust
34
- 6. Submit your changes and finish your work by issuing the following command: `echo MINI_SWE_AGENT_FINAL_OUTPUT`.
32
+ 6. Submit your changes and finish your work by issuing the following command: `echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT`.
35
33
  Do not combine it with any other command. <important>After this command, you cannot continue working on this task.</important>
36
34
 
37
35
  ## Important Rules
@@ -130,7 +128,7 @@ agent:
130
128
  {%- endif -%}
131
129
  format_error_template: |
132
130
  Please always provide EXACTLY ONE action in triple backticks, found {{actions|length}} actions.
133
- If you want to end the task, please issue the following command: `echo MINI_SWE_AGENT_FINAL_OUTPUT`
131
+ If you want to end the task, please issue the following command: `echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT`
134
132
  without any other command.
135
133
  Else, please format your response exactly as follows:
136
134
 
@@ -159,15 +159,15 @@ agent:
159
159
  ```
160
160
 
161
161
  ## Submission
162
- When you've completed your changes or can't make further progress
162
+ When you've completed your work (reading, editing, testing), and cannot make further progress
163
163
  issue exactly the following command:
164
164
 
165
165
  ```bash
166
- echo MINI_SWE_AGENT_FINAL_OUTPUT && git add -A && git diff --cached
166
+ echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT && git add -A && git diff --cached
167
167
  ```
168
168
 
169
- This command will submit your changes.
170
- You cannot continue working on this task after submitting.
169
+ This command will submit your work.
170
+ You cannot continue working (reading, editing, testing) in any way on this task after submitting.
171
171
  </instructions>
172
172
  action_observation_template: |
173
173
  <returncode>{{output.returncode}}</returncode>
@@ -225,5 +225,5 @@ environment:
225
225
  model:
226
226
  model_name: "claude-sonnet-4-20250514"
227
227
  model_kwargs:
228
+ drop_params: true
228
229
  temperature: 0.0
229
- drop_params: true
@@ -15,7 +15,7 @@ agent:
15
15
  </format_example>
16
16
 
17
17
  Failure to follow these rules will cause your response to be rejected.
18
- To finish, issue the following command: `echo MINI_SWE_AGENT_FINAL_OUTPUT`
18
+ To finish, issue the following command: `echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT`
19
19
  without any other command.
20
20
  instance_template: |
21
21
  Please solve this issue: {{task}}
@@ -35,7 +35,7 @@ agent:
35
35
  2. The action must be enclosed in triple backticks
36
36
  3. Directory or environment variable changes are not persistent. Every action is executed in a new subshell.
37
37
  However, you can prefix any action with `MY_ENV_VAR=MY_VALUE cd /path/to/working/dir && ...` or write/load environment variables from files
38
- 4. To finish, issue the following command: `echo MINI_SWE_AGENT_FINAL_OUTPUT`.
38
+ 4. To finish, issue the following command: `echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT`.
39
39
  Do not combine it with any other command.
40
40
 
41
41
  ## Formatting your response
@@ -117,7 +117,7 @@ agent:
117
117
  {%- endif -%}
118
118
  format_error_template: |
119
119
  Please always provide EXACTLY ONE action in triple backticks, found {{actions|length}} actions.
120
- If you want to end the task, please issue the following command: `echo MINI_SWE_AGENT_FINAL_OUTPUT`
120
+ If you want to end the task, please issue the following command: `echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT`
121
121
  without any other command.
122
122
  Else, please format your response exactly as follows:
123
123
 
@@ -15,8 +15,6 @@ agent:
15
15
  </format_example>
16
16
 
17
17
  Failure to follow these rules will cause your response to be rejected.
18
- To finish, issue the following command: `echo MINI_SWE_AGENT_FINAL_OUTPUT`
19
- without any other command.
20
18
  instance_template: |
21
19
  Please solve this issue: {{task}}
22
20
 
@@ -31,7 +29,7 @@ agent:
31
29
  3. Edit the source code to resolve the issue
32
30
  4. Verify your fix works by running your script again
33
31
  5. Test edge cases to ensure your fix is robust
34
- 6. Submit your changes and finish your work by issuing the following command: `echo MINI_SWE_AGENT_FINAL_OUTPUT`.
32
+ 6. Submit your changes and finish your work by issuing the following command: `echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT`.
35
33
  Do not combine it with any other command. <important>After this command, you cannot continue working on this task.</important>
36
34
 
37
35
  ## Important Rules
@@ -130,7 +128,7 @@ agent:
130
128
  {%- endif -%}
131
129
  format_error_template: |
132
130
  Please always provide EXACTLY ONE action in triple backticks, found {{actions|length}} actions.
133
- If you want to end the task, please issue the following command: `echo MINI_SWE_AGENT_FINAL_OUTPUT`
131
+ If you want to end the task, please issue the following command: `echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT`
134
132
  without any other command.
135
133
  Else, please format your response exactly as follows:
136
134
 
@@ -16,8 +16,6 @@ agent:
16
16
  </format_example>
17
17
 
18
18
  Failure to follow these rules will cause your response to be rejected.
19
- To finish, issue the following command: `echo MINI_SWE_AGENT_FINAL_OUTPUT`
20
- without any other command.
21
19
  instance_template: |
22
20
  Please solve this issue: {{task}}
23
21
 
@@ -32,7 +30,7 @@ agent:
32
30
  3. Edit the source code to resolve the issue
33
31
  4. Verify your fix works by running your script again
34
32
  5. Test edge cases to ensure your fix is robust
35
- 6. Submit your changes and finish your work by issuing the following command: `echo MINI_SWE_AGENT_FINAL_OUTPUT`.
33
+ 6. Submit your changes and finish your work by issuing the following command: `echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT`.
36
34
  Do not combine it with any other command. <important>After this command, you cannot continue working on this task.</important>
37
35
 
38
36
  ## Important Rules
@@ -131,7 +129,7 @@ agent:
131
129
  {%- endif -%}
132
130
  format_error_template: |
133
131
  Please always provide EXACTLY ONE action in triple backticks, found {{actions|length}} actions.
134
- If you want to end the task, please issue the following command: `echo MINI_SWE_AGENT_FINAL_OUTPUT`
132
+ If you want to end the task, please issue the following command: `echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT`
135
133
  without any other command.
136
134
  Else, please format your response exactly as follows:
137
135
 
File without changes
File without changes