Skip to content

WIP: Integrate mini-SWE-agent as external baseline - #6

Open
bigboateng wants to merge 1 commit into
mainfrom
feature/swe-agent-integration
Open

WIP: Integrate mini-SWE-agent as external baseline#6
bigboateng wants to merge 1 commit into
mainfrom
feature/swe-agent-integration

Conversation

@bigboateng

Copy link
Copy Markdown
Contributor

Summary

  • Add MiniSWEAgentAdapter that invokes the mini-SWE-agent CLI as a subprocess, providing a recognized external baseline alongside the existing baseline and ZCA agents
  • Overhaul benchmark runner with weighted concurrency pools (heavy/light), CLI filters (--tasks, --agents, --levels), and dotenv support for .env-based API key loading
  • Fix first-run crash: set MSWEA_CONFIGURED=1 to skip mini's interactive setup wizard when spawned headless
  • Surface mini stderr on failure instead of swallowing it silently

Known remaining work

  • Trajectory metrics parser doesn't yet extract steps/tokens from mini v2 format (messages key, not history)
  • Remove debug shape logging from adapter once parser is fixed
  • Tune default timeout per task (currently 300s global)
  • Run full 4-task benchmark with all 4 agents and record results

Test plan

  • tsc --noEmit passes clean
  • Single-task smoke test: mini-swe-agent:parser_bug — PASS, exit code 0, verification confirmed
  • Full benchmark run with configs/benchmark-with-swe-agent.json
  • Verify trajectory parser produces correct step/token counts

Made with Cursor

Add MiniSWEAgentAdapter that spawns the mini CLI as a subprocess,
parses trajectory output, and verifies results with the same test/typecheck
verifiers used by other agents.

Runner changes: add "swe" agent type, weighted concurrency pools for
heavy/light jobs, CLI filters (--tasks, --agents, --levels), dotenv support.

Known remaining work:
- Trajectory metrics parser does not yet extract steps/tokens from mini v2
  format (messages key instead of history)
- Debug shape logging still in adapter (remove after parser is fixed)
- Default timeout bumped to 300s but may need tuning per task

Made-with: Cursor
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.

1 participant