Repository navigation
refactor(cortex): remove the codebase indexer - #6774
Merged
Merged
Conversation
Agents search files on demand, so the prebuilt codebase index goes. This removes the startup pass that indexed every registered repository through the codebase-memory binary and republished its state every 5 s while it ran, src/lib/codebase-memory, the /api/cortex/codebase-memory route, the native Settings indexing page, the graph retriever in Brain answers (the SQL, full-text, facts and corrections sources stay), and the up-to-3 symbol lines in the worker prompt's context block. Directives, outcomes, corrections, review outcomes, project scope and the pending spec stay in that block, which moves to src/lib/cortex/context-block.ts. Setup and the MCP config writers no longer add a codebase-memory server for Claude Desktop, Claude Code, Gemini or OpenCode, and Connect no longer waits on or warns about its download. An entry already in a user's config file is left as it is, including on disconnect. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hurttlocker
enabled auto-merge
November 25, 2026 00:23
📝 o8.run docs may need updatingThis PR changes source that the public docs describe. Review whether these pages are still accurate (and bump their stamp in o8-site if so):
Flagged by docs-drift against https://o8.run/api/docs/manifest. Docs only — nothing is auto-edited. |
🔍 PR Review Bot
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes the codebase indexer. The owner decided this on 2026-11-24: coding agents search files on demand and don't need a prebuilt index.
Removed
ensureCodebaseMemoryBootIndex/indexAllRepos, started fromsrc/lib/panel/status-boot.ts. On every server start it indexed each registered repository through thecodebase-memory-mcpbinary, waiting up to 5 minutes for the binary, and republished its state every 5 s while it ran.src/lib/codebase-memory: the indexer, binary resolver, MCP client, symbol client, state store and live-state publisher./api/cortex/codebase-memoryroute and its native registration.settings_indexing.rs, with its tests and navigation).retrievers/graph.ts), with thesymbolcitation kind it produced. The SQL, full-text, facts and corrections sources stay.<context>block.codebase-memoryserver from the Tool-Spine registry. Setup and the MCP config writers no longer add it for Claude Desktop, Claude Code, Gemini or OpenCode, and Connect no longer waits for or warns about its download. Readiness is now just "the bundled operator server exists".TS: −2,383 lines net. Rust: −561 lines net.
status-bootand the prompt builder.codebase-memory-mcpchild per repository) and its 5 s state publisher.Kept
src/lib/cortex/context-block.ts. Directives, outcomes, corrections, review outcomes, project scope and the pending spec stay.codebase-memoryentry is left as it is. Disconnect now removes only theo8entry, so o8 never edits that server's entry again.O8_CODEBASE_MEMORY_BINpass-through. The classic shell is out of scope, and other agents own the launcher. Nothing in the server reads the variable any more./api/cortex/reingest). It belongs to the notes index (item 15), and Settings no longer calls it./api/mobileroute or mobile code imported anything removed.Tests
o8d-cortex-owner-real-pathando8d-cortex-owner-transport-real-pathnow cover only the diagnostics owner.mcp-setup-readinessnow covers the bundled-server gate.codebase-memoryis never written, even with the binary on disk.project-codebase-dispatch-real-path. It fails on unchangedmain(the non-main repository worker never launches), and this PR edits it for the moved import.review-outcome-reuse,delegate-dispatch-mergeandws-work-soakstill carry avi.mockof a deletedcodebase-memorymodule. Vitest treats a mock of a missing path as a no-op. All three fail on unchangedmain(Real-path suites drifted on main because they only run when their own files change #6761). Skipping cases inreview-outcome-reusecascades, because later cases depend on the first case's state.Verification
Based on
2cf9aa89c.npm run typecheck:fast,tsc -p cli/tsconfig.jsonand ESLint on the changed files pass.cargo check --testsfornative/o8-next, with no new warnings in the settings files.project-codebase-dispatch, which fails identically onmainand is now quarantined.src/lib/{mcp,cortex}, the status route, the session-rules prompt test andmcp-setup-readiness: 247 of 247.npm run verify:ci: Lint, Type Check, Test Classification, Hermetic Unit Tests, Server Bundle Size, Security Audit and Governance Smoke pass.api-front-doordelegate-dispatch-mergeandws-work-soak, which fail identically onmainand are now left untouchedreview-outcome-reuse, also left untouched; its two failures matchmain🤖 Generated with Claude Code