r/opencode • • 5h ago

local project indexing in OCX

I've been working on and I wanted to share a more concrete update.

The goal wasn't just to add another search command.

OCX now builds a local SQLite index containing symbols, imports, references, JS/TS call relationships, and persisted test links. It also supports full-text search and dependency/impact exploration.

One thing I spent time on was rebuild reliability.

Instead of rebuilding the active index in place, OCX creates a temporary database, validates its integrity and completion, then activates it atomically. If the rebuild fails, the previous index remains available.

I tested it on a real repository:

  • 8,809 eligible files
  • 180,238 symbols
  • 63.6 seconds for a full rebuild

The index test suite currently passes 28 tests.

There are still performance improvements to make, especially around SQLite transactions and FTS.

I'm keeping OCX private while continuing validation, but I thought this was worth sharing because project indexing is becoming an important part of the system.

1 Upvotes

0 comments sorted by