-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json
More file actions
75 lines (75 loc) · 2.3 KB
/
opencode.json
File metadata and controls
75 lines (75 loc) · 2.3 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
64
65
66
67
68
69
70
71
72
73
74
75
{
"$schema": "https://opencode.ai/config.json",
"model": "anthropic/claude-sonnet-4-5",
"small_model": "anthropic/claude-haiku-4-5",
"theme": "opencode",
"autoupdate": true,
"instructions": ["ARCHITECTURE.md", "DATABASE.md"],
"formatter": {
"oxfmt": {
"command": ["pnpm", "format"],
"extensions": [".ts", ".tsx", ".js", ".jsx", ".json", ".jsonc"]
},
"oxlint": {
"command": ["pnpm", "lint:fix"],
"extensions": [".ts", ".tsx", ".js", ".jsx"]
}
},
"command": {
"validate": {
"template": "Run full validation: linting, type-checking, and formatting",
"description": "Validate code quality",
"agent": "build"
},
"dev": {
"template": "Start development server at http://localhost:3000",
"description": "Start dev server",
"agent": "build"
},
"build": {
"template": "Build the application for production",
"description": "Build project",
"agent": "build"
},
"db-migrate": {
"template": "Generate and run database migrations using drizzle-kit",
"description": "Run database migrations",
"agent": "build"
},
"db-studio": {
"template": "Open Drizzle Studio to view and manage the database at the browser",
"description": "Open database studio",
"agent": "build"
}
},
"tools": {
"bash": true,
"read": true,
"write": true,
"edit": true,
"glob": true,
"grep": true
},
"permission": {
"bash": {
"git commit": "ask",
"git push": "ask",
"git rebase": "ask",
"git reset": "ask",
"git merge": "ask"
},
"write": "allow",
"edit": "allow"
},
"agent": {
"explore": {
"description": "Fast codebase exploration and analysis",
"model": "anthropic/claude-haiku-4-5"
},
"code-reviewer": {
"description": "Reviews code for best practices, security, and TypeScript types",
"model": "anthropic/claude-sonnet-4-5",
"prompt": "You are an expert code reviewer for TypeScript and React projects. Focus on: 1) Type safety and proper TypeScript usage, 2) React best practices and hooks, 3) Security issues (especially in server actions and API routes), 4) Performance implications, 5) Code organization and maintainability. Provide specific, actionable feedback."
}
}
}