Advanced code review using OpenSWE Deep Agents with sandbox execution for security analysis, performance testing, and automated fixes.
This skill provides advanced code review capabilities using OpenSWE Deep Agents with sandbox execution for comprehensive analysis, security scanning, and automated issue resolution.
| Field | Type | Description |
|---|---|---|
layer | string | Must be "openswe" for OpenSWE skills |
execution_environment | string | "sandbox" for isolated execution |
integration_points | []string | Supported integrations (github, slack, linear) |
sandbox_config | object | Sandbox provider and resource configuration |
openswe_config |
| object |
| OpenSWE-specific configuration |
sandbox_config:
provider: modal|daytona|runloop|langsmith
timeout: 1800 # seconds
resources:
cpu: 2
memory: 4Gi
gpu: optional
disk: 20Gi
network_access: true
persistent_storage: false
openswe_config:
agent_type: "deep-agent" # Currently only deep-agent supported
model: "anthropic:claude-opus-4-6" # Model specification
middleware: # List of middleware hooks
- GitOpsSafetyMiddleware
- ToolErrorMiddleware
- check_message_queue_before_model
- open_pr_if_needed
tools: # Available tools in sandbox
- execute
- fetch_url
- http_request
- commit_and_open_pr
- read_file
- write_file
- edit_file
- grep
- ls
- task # subagent spawning
Use this skill when:
Trigger Detection
Context Gathering
Sandbox Provisioning
Analysis Execution
Result Delivery
Ensures all infrastructure changes flow through GitOps pipelines:
async def before_model(context):
if detect_infrastructure_changes(context):
await validate_gitops_compliance(context)
return context
Handles tool execution errors gracefully:
async def on_tool_error(error, context):
await log_error(error)
await attempt_recovery(context)
return context
Injects follow-up messages before model calls:
async def before_model(context):
follow_ups = await get_pending_messages(context.thread_id)
if follow_ups:
context.messages.extend(follow_ups)
return context
Creates PR if agent completes without doing so:
async def after_execution(result, context):
if not result.pr_created and should_create_pr(result):
await create_pr_from_changes(result)
return result
# Automatic PR review trigger