- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json
More file actions
Latest commit
40 lines (40 loc) · 1.37 KB
/
Copy pathopencode.json
File metadata and controls
40 lines (40 loc) · 1.37 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
{
"$schema": "https://opencode.ai/config.json",
"agent": {
"memorize": {
"mode": "subagent",
"prompt": "You are a memory consolidation agent. Read the workspace diff file and update MEMORY.md, memory_summary.md, and skills/ under the memory workspace only. Do not read or edit project source files outside that memory root. Keep memory_summary.md under 10000 chars (2500 tokens). Prune stale entries. Do not access the network.",
"permission": {
"*": "deny",
"bash": "deny",
"webfetch": "deny",
"websearch": "deny",
"task": "deny",
"todowrite": "deny",
"read": "allow",
"edit": "allow",
"write": "allow",
"glob": "allow",
"grep": "allow"
}
},
"memorize-extract": {
"mode": "subagent",
"prompt": "You are a memory extraction agent. The session transcript is provided inline in the prompt. Extract raw_memory, rollout_summary, and rollout_slug as JSON. Exclude AGENTS.md/instruction content. Redact secrets.",
"permission": {
"*": "deny",
"bash": "deny",
"webfetch": "deny",
"websearch": "deny",
"task": "deny",
"todowrite": "deny",
"read": "deny",
"write": "deny",
"edit": "deny",
"glob": "deny",
"grep": "deny",
"StructuredOutput": "allow"
}
}
}
}