Commit d8b06bc
codejunkie99
feat(onboard): opt-in [BETA] toggle for memory search + fix PR #2 review
Written by Minimax-M2.7 in Claude Code Harness.
Integrates sergi-rz's FTS5 memory search (#2) behind a beta feature
flag. Default OFF; users opt in through the onboarding wizard or by
editing .agent/memory/.features.json directly. Addresses the three
codex review findings on that PR at the same time.
Beta feature framework
- onboard_features.py (new): read/write .agent/memory/.features.json
with a simple {key: {enabled: bool, beta: bool}} schema.
- onboard.py: adds a final "Optional features" step to the wizard.
Default answer is No — beta features stay off unless the user
explicitly opts in. --yes (non-interactive) path writes the
features file too, all off.
- memory_search.py gates search/rebuild behind feature_enabled().
--status still works regardless so users can see the toggle.
Codex review fixes on PR #2
- [P1] needs_rebuild now compares the set of memory files currently
on disk with the set already in the index; any previously-indexed
file that no longer exists flags the index stale. Without this,
deleted/renamed files kept appearing in results until some
unrelated file bumped the index.
- [P2] search_grep now passes explicit .md/.jsonl target paths to
grep instead of scanning the whole .agent/memory/ tree. Source
files (archive.py, auto_dream.py, etc.) no longer pollute
fallback search results.
- [P3] .gitignore now ignores .agent/memory/.index/ correctly.
The previous rule was cancelled by the !.agent/memory/**
negation placed below it; moved the .index/ exclusion AFTER
the negation so the later rule wins. Verified with
git status --ignored.1 parent a012575 commit d8b06bc
4 files changed
Lines changed: 186 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
14 | | - | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
| |||
22 | 28 | | |
23 | 29 | | |
24 | 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 | + | |
25 | 58 | | |
26 | 59 | | |
27 | 60 | | |
| |||
36 | 69 | | |
37 | 70 | | |
38 | 71 | | |
39 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
40 | 82 | | |
41 | 83 | | |
42 | 84 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
47 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
48 | 102 | | |
49 | 103 | | |
50 | 104 | | |
| |||
79 | 133 | | |
80 | 134 | | |
81 | 135 | | |
82 | | - | |
83 | | - | |
84 | | - | |
| 136 | + | |
85 | 137 | | |
86 | 138 | | |
87 | 139 | | |
| |||
90 | 142 | | |
91 | 143 | | |
92 | 144 | | |
93 | | - | |
| 145 | + | |
| 146 | + | |
94 | 147 | | |
95 | 148 | | |
96 | 149 | | |
| |||
99 | 152 | | |
100 | 153 | | |
101 | 154 | | |
102 | | - | |
| 155 | + | |
103 | 156 | | |
104 | 157 | | |
105 | 158 | | |
| |||
123 | 176 | | |
124 | 177 | | |
125 | 178 | | |
126 | | - | |
127 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
128 | 189 | | |
129 | | - | |
| 190 | + | |
130 | 191 | | |
131 | 192 | | |
132 | 193 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
137 | 198 | | |
138 | | - | |
139 | 199 | | |
140 | 200 | | |
141 | 201 | | |
| |||
147 | 207 | | |
148 | 208 | | |
149 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
150 | 217 | | |
151 | 218 | | |
152 | 219 | | |
| |||
163 | 230 | | |
164 | 231 | | |
165 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
166 | 244 | | |
167 | 245 | | |
168 | 246 | | |
169 | 247 | | |
170 | | - | |
| 248 | + | |
171 | 249 | | |
172 | 250 | | |
173 | 251 | | |
174 | 252 | | |
175 | 253 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 254 | + | |
| 255 | + | |
180 | 256 | | |
181 | 257 | | |
182 | 258 | | |
183 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
184 | 267 | | |
185 | 268 | | |
186 | 269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
60 | 71 | | |
61 | 72 | | |
62 | 73 | | |
| |||
71 | 82 | | |
72 | 83 | | |
73 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
74 | 89 | | |
75 | | - | |
| 90 | + | |
| 91 | + | |
76 | 92 | | |
77 | 93 | | |
78 | 94 | | |
79 | 95 | | |
80 | 96 | | |
81 | 97 | | |
82 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
83 | 106 | | |
84 | 107 | | |
85 | 108 | | |
86 | | - | |
| 109 | + | |
| 110 | + | |
87 | 111 | | |
88 | 112 | | |
89 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
0 commit comments