Repository navigation
Expand file tree
/
Copy pathopencode.json
More file actions
57 lines (57 loc) · 2.09 KB
/
Copy pathopencode.json
File metadata and controls
57 lines (57 loc) · 2.09 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
{
"$schema": "https://opencode.ai/config.json",
"instructions": ["AGENTS.md", "docs/decisions.md", "PROGRESS.md"],
"skills": {
"paths": [".opencode/skills"]
},
"agent": {
"cypher-reviewer": {
"description": "Reviews FalkorDB Cypher queries for correctness, index usage, and rule-3 real work. Read-only - never edits files or runs write queries.",
"mode": "subagent",
"temperature": 0.2,
"prompt": "You are a read-only FalkorDB Cypher reviewer for the GraphHacks Track 02 project. For each query you are shown: (1) state what it is supposed to return; (2) check correctness - label and property names against the schema, relationship direction, MERGE vs CREATE for idempotency, and tenant scoping via the `tenant:<id>` graph key; (3) check performance - whether an index or a bounded traversal would replace an unbounded scan; (4) check rule 3 - whether the graph is doing real work or the answer could be faked without the database; (5) flag any query that writes when the task only needs to read. Report findings in severity order (blocker, major, minor) with the corrected Cypher. Never edit files and never run write queries yourself.",
"permission": {
"edit": "deny",
"bash": "ask"
}
}
},
"mcp": {
"falkordb": {
"type": "local",
"command": ["npx", "-y", "@falkordb/mcpserver@latest"],
"enabled": true,
"environment": {
"FALKORDB_HOST": "{env:FALKORDB_HOST}",
"FALKORDB_PORT": "{env:FALKORDB_PORT}"
}
},
"tavily": {
"type": "local",
"command": ["npx", "-y", "tavily-mcp@latest"],
"enabled": true,
"environment": {
"TAVILY_API_KEY": "{env:TAVILY_API_KEY}"
}
}
},
"permission": {
"edit": {
"*": "allow",
"**/.env": "deny",
"**/.env.*": "deny",
"**/*.pem": "deny",
"**/*.key": "deny"
},
"bash": {
"*": "allow",
"cat .env*": "deny",
"cat **/.env*": "deny",
"cat *.pem": "deny",
"cat *.key": "deny",
"rm -rf /*": "ask",
"rm -rf *": "ask",
"git push *": "allow"
}
}
}