opencode-cursor-agent/config.example.yaml

39 lines
1.5 KiB
YAML
Raw Normal View History

2026-04-18 14:08:01 +00:00
port: 8976
cursor_cli_path: agent
default_model: claude-sonnet-4-20250514
timeout: 300
max_concurrent: 5
use_acp: false
# Isolate Cursor CLI / ACP child in an empty temp workspace with
# HOME / CURSOR_CONFIG_DIR / XDG_CONFIG_HOME overridden so the agent can
# neither read the adapter's cwd nor load global rules from ~/.cursor.
# Recommended: true. Set to false only if you intentionally want the
# Cursor agent to see the adapter's working directory.
chat_only_workspace: true
2026-04-25 13:18:22 +00:00
# How to launch the Cursor CLI subprocess.
# plan (default): pass --mode plan; the CLI never executes tools, it
# just proposes plans. The proxy translates brain-side
# <tool_call>...</tool_call> sentinels into real Anthropic
# tool_use blocks for the calling client to execute.
# agent: omit --mode and add --trust; the CLI runs in its native agent
# mode with full filesystem/shell tools and acts inside
# workspace_root. Use this when you want the CLI itself to be
# the executor (e.g. let it reorganise ~/Desktop directly).
cursor_mode: plan
# Absolute directory the Cursor CLI subprocess runs in. Setting this
# disables the chat-only temp workspace isolation. Required when
# cursor_mode: agent if you want the CLI to act on a real folder.
# Per-request override: clients can send `X-Cursor-Workspace: /abs/path`.
# Example: workspace_root: /Users/daniel/Desktop
workspace_root: ""
2026-04-18 14:08:01 +00:00
log_level: INFO
available_models:
- claude-sonnet-4-20250514
- claude-opus-4-20250514
- gpt-5.2
- gemini-3.1-pro