-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.windsurfrules
More file actions
63 lines (47 loc) · 1.41 KB
/
Copy path.windsurfrules
File metadata and controls
63 lines (47 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# OpenCode MCP Server Rules
Project rules for AI coding agents.
## Project Overview
MCP server that exposes OpenCode as a tool/subagent for IDEs and AI clients.
## Available Tools (21)
| Category | Tools |
|----------|-------|
| Execution | opencode_run, session_create, session_prompt, session_list, session_abort |
| Files | file_read, file_search, find_files, find_symbols |
| Config | model_list, model_configure, provider_list, config_get, config_update |
| Agents | agent_list, agent_delegate |
| Skills | skill_list, skill_create |
| MCP | mcp_list, mcp_enable |
| Tools | tool_list |
## Tool Usage
### Implementation
```
opencode_run({ prompt: "Task", workingDirectory: "/path" })
```
### Analysis Only
```
opencode_agent_delegate({ agent: "plan", prompt: "Review X" })
```
### Exploration
```
opencode_agent_delegate({ agent: "explore", prompt: "Find Y" })
```
### Configuration
```
opencode_model_configure({ provider, model, options: { reasoningEffort: "high" } })
```
## Agents
- `build`: Implementation tasks
- `plan`: Analysis without changes
- `explore`: Fast discovery
## Model Options
- `reasoningEffort`: low | medium | high
- `maxTokens`: number
- `thinking`: { type: "enabled", budgetTokens: number }
## Decision Guide
```
Coding? → opencode_run
Analyzing? → agent_delegate(agent="plan")
Exploring? → agent_delegate(agent="explore")
Multi-step? → Create session
Complex? → reasoningEffort="high"
```