refactor(indexing): delete the workspace codesearch indexer

The index built google/codesearch over the chat workspace on every daemon
start, for the process lifetime, through a child-process helper and a
SQLite metadata DB -- and grep consulted it only for searches confined to
the workspace root, which the analysed sessions showed was a small
fraction of searches. The compute was continuous; the benefit was not.

Removes internal/indexing, the workspace-codesearch helper subcommand,
the [indexing] config section, and the GrepIndex accelerator seam from
the grep tool, which returns to its direct walk. google/codesearch
leaves go.mod with it.
This commit is contained in:
sam committed 2026-09-23 00:36:38 +10:00
1 parent 024dfbbe49
commit 2a4e764718
25 files changed
+139 -1463

No files matched your search

-6
View File
@@ -15,11 +15,5 @@ func main() {
if archied.IsSetupArgs(args) {
os.Exit(archied.RunSetup(args[1:], os.Stdin, os.Stdout, os.Stderr))
}
// The codesearch helper is dispatched before the daemon's flags are
// parsed: it is this same binary re-invoked as a short-lived child by
// internal/indexing, and it must not touch config, the store or NATS.
if archied.IsCodesearchHelperArgs(args) {
os.Exit(archied.RunCodesearchHelper(args[1:], os.Stdout))
}
os.Exit(archied.Run())
}