-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbtw.schema.json
More file actions
75 lines (75 loc) · 2.66 KB
/
btw.schema.json
File metadata and controls
75 lines (75 loc) · 2.66 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": "http://json-schema.org/draft-07/schema#",
"title": "opencode-btw Configuration",
"description": "Configuration for the opencode-btw hint injection plugin",
"type": "object",
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string",
"description": "JSON Schema reference for IDE auto-completion"
},
"defaultPinned": {
"type": "boolean",
"default": false,
"description": "Whether newly added hints are pinned (persistent) by default. When false, hints are transient and auto-clear after the model turn."
},
"autoClear": {
"type": "object",
"description": "Controls when transient hints are automatically cleared",
"additionalProperties": false,
"properties": {
"onIdle": {
"type": "boolean",
"default": true,
"description": "Auto-clear transient hints when the session goes idle (model finishes responding)"
},
"onQuestionTool": {
"type": "boolean",
"default": true,
"description": "Auto-clear transient hints when the model uses the question tool"
}
}
},
"injection": {
"type": "object",
"description": "Controls how and where hints are injected into the model's context",
"additionalProperties": false,
"properties": {
"target": {
"type": "string",
"enum": ["both", "system", "user"],
"default": "both",
"description": "Where to inject hints: 'both' injects into system prompt AND user message, 'system' only into system prompt, 'user' only into user message"
},
"systemPromptPosition": {
"type": "string",
"enum": ["prepend", "append"],
"default": "prepend",
"description": "Whether to prepend or append the hint block in the system prompt"
},
"systemInstructions": {
"type": ["string", "null"],
"default": null,
"description": "Custom framing text for the system prompt hint block. Set to null to use the built-in default. This replaces the '## Active User Preferences' section."
},
"userMessagePrefix": {
"type": "string",
"default": "BTW, ",
"description": "Prefix for single-hint injection into user messages (e.g., 'BTW, ')"
}
}
},
"debug": {
"type": "boolean",
"default": false,
"description": "Enable debug mode by default (verbose toast logging)"
},
"toastDuration": {
"type": "number",
"default": 3000,
"minimum": 100,
"description": "Default toast notification duration in milliseconds"
}
}
}