Repository navigation
Expand file tree
/
Copy pathopencode.jsonc
More file actions
51 lines (47 loc) · 1.68 KB
/
Copy pathopencode.jsonc
File metadata and controls
51 lines (47 loc) · 1.68 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
{
// OpenCode configuration for this repository.
//
// These settings travel with the clone: a fresh work machine gets the same
// token-saving behaviour from this file alone. A value set here wins over the
// same value in the global config (project configuration overrides global).
"$schema": "https://opencode.ai/config.json",
// Skills are the OpenCode default: directories under `.opencode/skills/` are
// discovered automatically, so nothing has to be named here.
// Token savers OpenCode itself exposes: compact a long conversation before it
// outgrows the model's usable input, and cap how much of a large tool result is
// kept, so a session does not keep resending the whole history.
"compaction": {
"auto": true,
"keep": { "tokens": 15000 },
"buffer": 20000
},
"tool_output": {
"max_lines": 2000,
"max_bytes": 51200
},
"media": {
"image": {
"auto_resize": true,
"max_width": 2000,
"max_height": 2000,
"max_base64_bytes": 5242880
}
},
// Working directories that are never source: a change under them must not
// wake the session, and the built trees are large.
"watcher": {
"ignore": ["node_modules/**", "**/dist/**", ".worktree/**", "coverage/**"]
},
// Codebase memory (codebase-memory-mcp): indexes this repository locally — no
// cloud, no API key, no telemetry — so the agent queries the code graph
// instead of re-reading files one by one. Declared here, and not globally, so
// the server and its context cost exist only while working in this project.
"mcp": {
"servers": {
"cbm": {
"type": "local",
"command": ["codebase-memory-mcp"]
}
}
}
}