Skip to content
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

Add collapsible view operations #66

Open
ryanhoangt opened this issue Feb 7, 2025 · 0 comments
Open

Add collapsible view operations #66

ryanhoangt opened this issue Feb 7, 2025 · 0 comments

Comments

@ryanhoangt
Copy link
Collaborator

W&B SWE agent uses an interesting approach to achieve top score on SWE-bench Verified, inspired by collapse a specific range in a code editor:

  • open_module(path): view a file with all functions collapsed by default
Example output Image
  • expand_function(path, fn_name): view that file again but with the fn_name function expanded
Example output Image Image

We can implement this by adjusting the str_replace_editor tool:

  • Modify the view command on file path to print file content with functions collapsed by default
  • Add an extra command expand_function
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

No branches or pull requests

1 participant