Skip to content

Conversation

chisingh
Copy link
Contributor

No description provided.

@chisingh chisingh marked this pull request as ready for review May 21, 2025 19:23
@chisingh chisingh requested a review from MarcCote May 21, 2025 19:23
@chisingh chisingh requested a review from MarcCote May 23, 2025 15:50

return self.infos

def clone(self):
Copy link
Collaborator

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.

Copy link
Collaborator

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

Copy link
Collaborator

@MarcCote MarcCote left a 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.


return self.infos

def clone(self):
Copy link
Collaborator

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

@MarcCote
Copy link
Collaborator

You can try it with

python scripts/run.py scripts/config_mini_nightmare.yaml --agent guided_agent -v -p base.llm_name='gpt-4o-mini' -p base.problems=['pandas_dataframe'] --no-live

@MarcCote MarcCote changed the title HITL agent Guided Rewrite Agent Jul 21, 2025
matheper added a commit that referenced this pull request Aug 6, 2025
matheper added a commit that referenced this pull request Aug 11, 2025
MarcCote pushed a commit that referenced this pull request Aug 18, 2025
MarcCote added a commit that referenced this pull request Sep 10, 2025
* 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]>
MarcCote added a commit that referenced this pull request Sep 11, 2025
* 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]>
matheper added a commit that referenced this pull request Sep 12, 2025
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants