-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathopenclaw.plugin.json
More file actions
59 lines (59 loc) · 1.89 KB
/
Copy pathopenclaw.plugin.json
File metadata and controls
59 lines (59 loc) · 1.89 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
{
"id": "mega-compact",
"activation": {
"onStartup": true
},
"enabledByDefault": false,
"name": "Mega Compact",
"description": "Layered, local, vector-backed context compressor (Trident engine) for OpenClaw compaction.",
"configSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"stateDir": {
"type": "string",
"minLength": 1,
"description": "Directory for vector store persistence. Defaults to ~/.pi/agent/extensions/pi-mega-compact or MEGA_COMPACT_STATE_DIR env var."
},
"dedupSim": {
"type": "number",
"minimum": 0,
"maximum": 1,
"default": 0.9,
"description": "Cosine similarity threshold for dedup detection (0-1). Higher = stricter matching."
},
"preserveRecent": {
"type": "integer",
"minimum": 0,
"default": 4,
"description": "Number of recent messages to always keep verbatim (not compacted)."
},
"debug": {
"type": "boolean",
"default": false,
"description": "Enable debug logging."
}
}
},
"uiHints": {
"stateDir": {
"label": "State Directory",
"help": "Directory for vector store persistence. Leave empty to use the default (~/.pi/agent/extensions/pi-mega-compact)."
},
"dedupSim": {
"label": "Dedup Similarity Threshold",
"help": "Cosine similarity threshold for detecting duplicate compaction regions. 0.9 is a good default; lower for more aggressive dedup, higher for stricter matching.",
"advanced": true
},
"preserveRecent": {
"label": "Preserve Recent Messages",
"help": "Number of recent messages to always keep verbatim and never compact.",
"advanced": true
},
"debug": {
"label": "Debug Logging",
"help": "Enable verbose debug logging for the compaction engine.",
"advanced": true
}
}
}