Add Cursor Agent as a core SkillOpt target backend#160
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Cursor Agent as a target-only core SkillOpt execution backend. This is the core harness portion split from #159 so it can be reviewed independently from SkillOpt-Sleep.
Changes
cursor_execas a target backend, withcursorandcursor_agentaliasescursor-agentthrough stdin and parses terminal stream-JSON results--forceinside the benchmark workspaceallow_file_edits=Truewithcursor_exec_sandbox=disabledbefore spawning Cursor AgentRead-only Ask-mode rollouts may explicitly disable Cursor sandboxing. File-edit rollouts require sandboxing to remain enabled.
This PR does not add Cursor as an optimizer backend and contains no SkillOpt-Sleep plugin, transcript harvesting, or replay code. That work remains in #159, where Cursor tool-aware Sleep replay has now been disabled pending live permission-boundary validation.
Validation
python -m pytest tests/test_cursor_exec_backend.py -q: 15 passedpython -m pytest -q: 333 passed, 5 skippedpython -m mkdocs build --strict: passedgit diff --check: passedThe Cursor CLI arguments and stream-JSON behavior were also checked by the #159 reviewer against Cursor Agent CLI 2026.07.17.