You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***lint:** disable no-explicit-any rule for AST manipulation code ([41547da](https://github.com/PatrickSys/codebase-context/commit/41547da2aa5529dce3d539c296d5e9d79df379fe))
7
+
-**lint:** disable no-explicit-any rule for AST manipulation code ([41547da](https://github.com/PatrickSys/codebase-context/commit/41547da2aa5529dce3d539c296d5e9d79df379fe))
9
8
10
9
## [Unreleased]
11
10
11
+
### Added
12
+
13
+
-**Preflight evidence lock**: `search_codebase` edit/refactor/migrate intents now return risk-aware preflight guidance with evidence lock scoring, impact candidates, preferred/avoid patterns, and related memories.
14
+
-**Trust-aware memory handling**: Added git-aware memory pattern support and confidence decay tests so stale or malformed evidence is surfaced as lower-confidence context instead of trusted guidance.
15
+
16
+
### Changed
17
+
18
+
-**Search ranking**: Removed framework-specific anchor/query promotion heuristics from core ranking flow to keep retrieval behavior generic across codebases.
19
+
-**Search transparency**: `search_codebase` now returns `searchQuality` with confidence and diagnostic signals when retrieval looks ambiguous.
20
+
-**Incremental indexing state**: Persist indexing counters to `indexing-stats.json` and restore them on no-op incremental runs to keep status reporting accurate on large codebases.
-**No-op incremental stats drift**: Fixed under-reported `indexedFiles` and `totalChunks` after no-change incremental refreshes by preferring persisted stats over capped index snapshots.
26
+
-**Memory date validation**: Invalid memory timestamps now degrade to stale evidence rather than being surfaced as semi-trusted data.
Copy file name to clipboardExpand all lines: README.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,7 @@ Before an edit happens, the agent gets a preflight briefing: what to use, what t
103
103
- Failure memories bump risk level and surface as explicit warnings
104
104
- Confidence decay: memories age (90-day or 180-day half-life). Stale guidance gets flagged, not blindly trusted
105
105
- Epistemic stress detection: when evidence is contradictory, stale, or too thin, the preflight card says "insufficient evidence" instead of guessing
106
+
- Search quality transparency: `search_codebase` includes `searchQuality` (`ok`/`low_confidence`, signals, confidence, next steps) so ambiguous retrieval is explicit instead of hidden
| Internal library detection | 336 uses of `@company/ui-toolkit` vs 3 direct PrimeNG|
125
+
| DI pattern consensus | 98% `inject()` adoption detected, constructor DI flagged |
126
+
| Test framework detection | 74% Jest, 26% Jasmine/Karma, per-module awareness |
127
+
| Wrapper discovery |`ToastEventService`, `DialogComponent` surfaced over raw |
128
+
| Golden file identification | Top 5 files scoring 4-6 modern patterns each |
128
129
129
130
Without this context, AI agents default to generic patterns: raw PrimeNG imports, constructor injection, Jasmine syntax. With the second brain active, generated code matches the existing codebase on first attempt.
130
131
@@ -278,7 +279,7 @@ This tool runs locally on your machine.
278
279
279
280
-**Initial indexing**: First run may take several minutes (e.g., 2-5 min for 30k files) to compute embeddings.
280
281
-**Subsequent queries**: Instant (milliseconds) from cache.
281
-
-**Updates**: `refresh_index`re-scans the codebase. True incremental indexing (processing only changed files) is on the roadmap.
282
+
-**Updates**: `refresh_index`supports full or incremental mode (`incrementalOnly: true`) to process only changed files.
0 commit comments