Skip to content

add mini-swe-agent workspace adapter#540

Merged
zomux merged 2 commits into
developfrom
feature/workspace-support-mini-swe-agent
Jul 13, 2026
Merged

add mini-swe-agent workspace adapter#540
zomux merged 2 commits into
developfrom
feature/workspace-support-mini-swe-agent

Conversation

@QuanCheng-QC

Copy link
Copy Markdown
Collaborator

What

Adds mini-SWE-agent as a Workspace coding-agent adapter.

It follows the existing Cline/Copilot pattern: configured by the Launcher, managed by the daemon, and executed in the user's project directory.

This is not a SWE-bench integration. No dataset browsing, Docker harness, evaluation, worktrees, or predictions.json support is included.

Key behavior

  • One mini process per Workspace message.
  • Runs with --yolo --exit-immediately in the task workspace.
  • Uses shell: false, argv arrays, and ignored stdin.
  • Sets MSWEA_CONFIGURED=true only for the child process to bypass mini's first-run wizard.
  • Supports full config files through MSWEA_MINI_CONFIG_PATH.
  • Streams output as thinking events and emits exactly one final response.
  • Handles cancel/timeout by terminating the whole process group.
  • Keeps trajectory output on failures for debugging.
  • Adds binary and model-configuration readiness checks.

Files

  • Adds MiniSweAgentAdapter
  • Registers mini-swe-agent in the adapter map and registry
  • Adds the Node-only SDK registry mirror
  • Adds 42 unit tests

Testing

  • Mini adapter tests: 42 passing
  • Full package suite: 660/660 passing
  • Real process smoke test passed for binary resolution, spawn, workspace cwd, wizard bypass, cleanup, and 401 error handling.

A successful model-backed file modification was not tested because the environment does not have a valid model API key.

Out of scope

  • Adding mini-SWE-agent to Launcher CORE_AGENTS
  • SWE-bench-related features
  • Existing build-registry.js issues

@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openagents-workspace Ready Ready Preview, Comment Jul 5, 2026 10:04am

Request Review

@zomux zomux left a comment

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.

Reviewed in depth (adapter pattern + security). Faithful clone of the amp.js pattern for the mini-swe-agent Python CLI. Spawn-safe (prompt as last argv element, shell:false on POSIX, injection-tested), secrets via child env only + redaction, correct Windows/node resolution (mini is a pip console-script — uses whichBinary + shouldUseShellForBinary, sidesteps the cline CI bug), proper process-group stop/teardown + idle watchdog, and CI-safe tests (stubs _miniBin + redirects sessions dir, so no dependence on a real binary or ~/.openagents portable node). --yolo auto-exec is consistent with the Goose/Copilot precedent. Non-blocking nits: idle-timeout surfaces 'exited with code null' instead of a timeout message; consider pipx install (PEP 668); one dead test param. LGTM.

@zomux
zomux merged commit 73f7f86 into develop Jul 13, 2026
10 of 14 checks passed
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.

2 participants