Skip to content

feat: Improve AnySWE result folder structure + fixes - #1948

Merged
cmunley1 merged 5 commits into
NVIDIA-NeMo:cmunley1/anyswefrom
elisam0:elisam0/anyswe-folder-and-config-fixes
Jul 9, 2026
Merged

cmunley1 merged 5 commits into
NVIDIA-NeMo:cmunley1/anyswefrom
elisam0:elisam0/anyswe-folder-and-config-fixes

Conversation

@elisam0

@elisam0 elisam0 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

AnySWE: folder-structure & config fixes to align with AnyTerminal / Harbor

Summary

Small follow-up fixes on top of the AnySWE work to bring it in line with the
AnyTerminal setup and remove duplication between the two. Three things:

  1. Fix the SWE Hermes config to match the Harbor setup we already use in AnyTerminal.
  2. Refactor the AnySWE folder structure (deps + results) to match AnyTerminal so it's easier to use.
  3. Move agent dependency scripts into their respective agent folders so AnyTerminal and AnySWE no longer keep duplicate copies.

Changes

1. Hermes config aligned with Harbor (configs/anyswe_hermes.yaml)

Replaced the ad-hoc agent kwargs with the same knobs Harbor/AnyTerminal use:

  • max_turns 30 → 90
  • Dropped temperature, enabled_toolsets, and the inline system_prompt override (use the agent defaults)
  • Added terminal_timeout: 180, compression_enabled: true, compression_threshold: 0.85

2. Folder structure refactor (app.py, .gitignore)

  • Agent deps now install under deps/anyswe_<agent>_deps instead of a flat anyswe_<agent>_deps at the parent level.
  • Setup scripts are resolved from the agent's own folder (responses_api_agents/<agent>/scripts/) and requirements from the agent's requirements.txt, rather than local copies.
  • _portable_python.sh is passed to the dep script via PORTABLE_PYTHON_SH so the script no longer assumes its own location.
  • Added a results_dir config option: when set, results are written there (session id derived from the dir name); otherwise falls back to the previous auto-generated anyswe_results_<session_id> workspace dir.
  • .gitignore updated for the new results/ and deps/ dirs.

3. De-duplicated agent dependency scripts

Dep scripts moved out of anyswe_agent/setup_scripts/ into each agent's own folder:

  • hermes_agent/scripts/hermes_agent_deps.sh
  • openclaw_agent/scripts/openclaw_agent_deps.sh
  • claude_code_agent/scripts/claude_code_agent_deps.sh (removed the duplicate under AnySWE)

AnySWE and AnyTerminal now both consume these from a single source instead of maintaining their own copies.

Tests

  • Updated anyswe_agent/tests/test_app.py, swe_env/tests/test_swe_env.py, and swe_env/tests/test_swebench.py for the new paths.

Notes

  • .gitignore currently lists results/ twice — harmless, worth squashing if we touch it again.

elisam0 added 3 commits July 7, 2026 15:39
Signed-off-by: Elisa Martinez Abad <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@nemo-automation-bot nemo-automation-bot Bot added the community-request Issue reported or requested by someone from the community label Jul 7, 2026
@elisam0
elisam0 marked this pull request as ready for review July 9, 2026 09:35
agent_kwargs:
max_turns: 30
temperature: 1.0
max_turns: 90

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i feel like this should be 200 or something maybe?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Harbor uses 90 as default so I set it to that to compare evals. I do agree that we probably need higher number of turns. For example, Claude Code has unlimited

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can always revisit this. but we see low scores in some models with a limit of 100, and typically set 200+.

The official swebench eval uses 250 i believe: https://github.com/SWE-agent/mini-swe-agent/blob/main/src/minisweagent/config/benchmarks/swebench.yaml#L112

enabled_toolsets: null
system_prompt: "You are an expert software engineer. The source code repository is at /testbed. Explore the code, reproduce the bug, fix the root cause, and verify the fix. You MUST actually use terminal and file tools to explore, edit, and test the code; do not just describe what to do."
terminal_timeout: 180
compression_enabled: true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compression will have strange behavior in training in nemo RL right now

im fine with this default, just maybe worth leaving a comment like # should disable for training

@cmunley1
cmunley1 merged commit 7810960 into NVIDIA-NeMo:cmunley1/anyswe Jul 9, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-request Issue reported or requested by someone from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants