-
Notifications
You must be signed in to change notification settings - Fork 36
Guided Rewrite Agent #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Guided Rewrite Agent #107
Conversation
debug_gym/gym/envs/env.py
Outdated
|
||
return self.infos | ||
|
||
def clone(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be subclassing the clone method in all type of envs? Some environments (e.g., SWE-Smith) require custom setup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, we would have a generic way to create a copy of the environment. Maybe by reusing the the logic in run.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I tried it, I notice the RewriteOnly agent didn't have the proper context.
debug_gym/gym/envs/env.py
Outdated
|
||
return self.infos | ||
|
||
def clone(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, we would have a generic way to create a copy of the environment. Maybe by reusing the the logic in run.py
You can try it with
|
* Pull changes from #107 and #212 * Add a workspace class. Refactoring + tests * Refactor SWE-Bench and make sure all 500 tasks can be solved. * Pass revision id to parent class * Tests should check for default SWE-bench/SWE-bench_Verified * Make sure we apply any changes needed for setting up the environment. * Rename RemoteWorkspace -> Workspace * Fix typos. * Use better delimiter for here-document + add explantion to workspace.write_file * Show with hidden files when listing file with workspace * Fix interact_with_pdb test * Raises if git diff fails --------- Co-authored-by: Matheus Pereira <[email protected]>
* Pull changes from #107 and #212 * Add a workspace class. Refactoring + tests * Refactor SWE-Bench and make sure all 500 tasks can be solved. * Rename output logs file and agent's output trajectory file * Pass revision id to parent class * Tests should check for default SWE-bench/SWE-bench_Verified * Make sure we apply any changes needed for setting up the environment. * Rename RemoteWorkspace -> Workspace * Fix typos. * Use better delimiter for here-document + add explantion to workspace.write_file * Show with hidden files when listing file with workspace * Fix interact_with_pdb test * Raises if git diff fails * Rename log to trajectory * fix test, now log file is named debug_gym.log --------- Co-authored-by: Matheus Pereira <[email protected]> Co-authored-by: Xingdi (Eric) Yuan <[email protected]>
* Pull changes from #107 and #212 * Add a workspace class. Refactoring + tests * Refactor SWE-Bench and make sure all 500 tasks can be solved. * Adding r2egym support * Pass revision id to parent class * Tests should check for default SWE-bench/SWE-bench_Verified * Make sure we apply any changes needed for setting up the environment. * Rename RemoteWorkspace -> Workspace * Fix typos. * Use better delimiter for here-document + add explantion to workspace.write_file * Show with hidden files when listing file with workspace * Fix interact_with_pdb test * Raises if git diff fails * Cleanup * update test, now log file is named debug_gym.log * Adding r2egym support * Add tests for r2egym + Refactor tests * GH Action * Add step to download and combine coverage artifacts for multiple tests * try current dir * Update tests.yml * Update tests.yml --------- Co-authored-by: Matheus Pereira <[email protected]> Co-authored-by: Xingdi (Eric) Yuan <[email protected]>
No description provided.