Download deep/review.yaml from RightNowAI/RightNow-Mini: direct link, hf CLI and curl.
- Browser
- Download file 5.5 kB
-
https://huggingface.co/RightNowAI/RightNow-Mini/resolve/main/deep/review.yaml
- Command line
-
hf download hf://RightNowAI/RightNow-Mini/deep/review.yaml
-
curl -L -o review.yaml https://huggingface.co/RightNowAI/RightNow-Mini/resolve/main/deep/review.yaml
5.5 kB
| # Deep mode, rule C: the reviewing session. Used on top of mini-swe-agent's own swebench.yaml | |
| # (-c swebench.yaml -c deep/review.yaml): only the task text changes. The candidate patches of the earlier | |
| # attempts are put in /tmp/candidates/ before the session starts (deep/make_candidates.py, tools/review_run.sh). | |
| agent: | |
| instance_template: | | |
| <pr_description> | |
| Consider the following PR description: | |
| {{task}} | |
| </pr_description> | |
| <instructions> | |
| # Task Instructions | |
| ## Overview | |
| You're a software engineer interacting continuously with a computer by submitting commands. | |
| You'll be helping implement necessary changes to meet requirements in the PR description. | |
| Your task is specifically to make changes to non-test files in the current directory in order to fix the issue described in the PR description in a way that is general and consistent with the codebase. | |
| <IMPORTANT>This is an interactive process where you will think and issue AT LEAST ONE command, see the result, then think and issue your next command(s).</important> | |
| ## Candidate patches (read this first) | |
| Several earlier attempts at this task each produced a patch. The distinct ones are in /tmp/candidates/ (c1.diff, c2.diff, ...). | |
| /tmp/candidates/README.txt says how many attempts produced each one. They disagree, and some of them are wrong. | |
| In this session you decide what the final patch is, by testing the candidates instead of trusting them. | |
| For each response: | |
| 1. Include a THOUGHT section explaining your reasoning and what you're trying to accomplish | |
| 2. Provide one or more bash tool calls to execute | |
| ## Important Boundaries | |
| - MODIFY: Regular source code files in /testbed (this is the working directory for all your subsequent commands) | |
| - DO NOT MODIFY: Tests, configuration files (pyproject.toml, setup.cfg, etc.) | |
| ## Recommended Workflow | |
| 1. Read the PR description and the code it concerns, then read every candidate patch | |
| 2. Create a script in /tmp that reproduces the issue, and run it on the unchanged code to see it fail | |
| 3. Try each candidate in turn: `git apply /tmp/candidates/cK.diff`, run your script and the existing tests next to the changed code, note the result, then undo it with `git apply -R /tmp/candidates/cK.diff` | |
| 4. Apply the candidate that is correct and most general. If none is fully right, apply the closest one and correct it | |
| 5. Test edge cases, then submit the final state of the source files as described below | |
| ## Command Execution Rules | |
| You are operating in an environment where | |
| 1. You issue at least one command | |
| 2. The system executes the command(s) in a subshell | |
| 3. You see the result(s) | |
| 4. You write your next command(s) | |
| Each response should include: | |
| 1. **Reasoning text** where you explain your analysis and plan | |
| 2. At least one tool call with your command | |
| **CRITICAL REQUIREMENTS:** | |
| - Your response SHOULD include reasoning text explaining what you're doing | |
| - Your response MUST include AT LEAST ONE bash tool call. You can make MULTIPLE tool calls in a single response when the commands are independent (e.g., searching multiple files, reading different parts of the codebase). | |
| - Directory or environment variable changes are not persistent. Every action is executed in a new subshell. | |
| - However, you can prefix any action with `MY_ENV_VAR=MY_VALUE cd /path/to/working/dir && ...` or write/load environment variables from files | |
| ## Environment Details | |
| - You have a full Linux shell environment | |
| - Always use non-interactive flags (-y, -f) for commands | |
| - Avoid interactive tools like vi, nano, or any that require user input | |
| - You can use bash commands or invoke any tool that is available in the environment | |
| - You can also create new tools or scripts to help you with the task | |
| ## Submission | |
| When you've completed your work, you MUST submit your changes as a git patch. | |
| Follow these steps IN ORDER, with SEPARATE commands: | |
| Step 1: Create the patch file | |
| Run `git diff -- path/to/file1 path/to/file2 > patch.txt` listing only the source files that the final patch changes. | |
| Do NOT commit your changes. | |
| <IMPORTANT> | |
| The patch must only contain changes to the specific source files that fix the issue. | |
| Do not submit file creations or changes to any of the following files: | |
| - test and reproduction files | |
| - helper scripts, tests, or tools that you created | |
| - installation, build, packaging, configuration, or setup scripts unless they are directly part of the issue you were fixing (you can assume that the environment is already set up for your client) | |
| - binary or compiled files | |
| </IMPORTANT> | |
| Step 2: Verify your patch | |
| Inspect patch.txt to confirm it only contains your intended changes and headers show `--- a/` and `+++ b/` paths. | |
| Step 3: Submit (EXACT command required) | |
| You MUST use this EXACT command to submit: | |
| ```bash | |
| echo COMPLETE_TASK_AND_SUBMIT_FINAL_OUTPUT && cat patch.txt | |
| ``` | |
| If the command fails (nonzero exit status), it will not submit. | |
| <CRITICAL> | |
| - Creating/viewing the patch and submitting it MUST be separate commands (not combined with &&). | |
| - If you modify patch.txt after verifying, you SHOULD verify again before submitting. | |
| - You CANNOT continue working (reading, editing, testing) in any way on this task after submitting. | |
| </CRITICAL> | |
| </instructions> | |