- Simplify the introduction, installation, and examples; document Codex and Claude Code plugin upgrades and correct outdated capability claims
- Prepare the dated changelog and application version for the release PR
- Merge the release PR, then tag and publish native binaries
- Update plugin versions and checksums from the published release assets
- Fix combined release checksum generation: the current path-stripping command also removes hashes; individual
.sha256assets are valid
- Cache dependency downloads and Mill build outputs with toolchain-aware keys, preserving all test and native checks
- Validate cold and restored-cache runs: 4m04s → 1m45s on the same commit, with all 505 tests and native smoke checks passing
- Reproduce line-shift false positives, missed body edits, ignored path filters, and the silent file cap in regression tests; also reproduce collapsed overloads and same-named methods in different owners
- Compare declaration content independently of source position, preserve owners and overloads, apply file filters before analysis, and limit display rather than examined files
- Validate nine diff regressions, all 505 tests, native issue reproductions, and performance: unchanged 41,121,631-byte index, cold indexing +2.3% within budget, warm indexing −4.5%, definition −2.1%, references +1.2% within observed run variability
- Replace the long command tutorial with concise query selection and evidence interpretation; consolidate detailed syntax in the command reference and validate shared packaging (frontmatter, links, 496 tests, and benchmark compilation)
- Reproduce and fix native-only Java parse failures, with a native regression check (492 JVM tests; full-workspace native/JVM parity)
- Reuse deserialized file paths and avoid full name-map construction for simple isolated lookups; preserve reusable indexes for qualified/composite/batch queries
- Reuse reference confidence, sort keys, and classification patterns without changing results
- Measure complete requests and command/render phases without double-counting nested timings
- Document opt-in native heap tuning; keep portable defaults unchanged
- Validate native/JVM parity, 496 tests, and separate before/after performance measurements: definition latency −47%, references −46%, unchanged cache size, cold indexing within the 5% budget
-
Upgrade Scala, Mill, libraries, and formatting tools to the latest stable releases and validate compatibility
-
Preserve valid JSON under output budgets; route summaries and diagnostics through typed command results
-
Propagate Git failures and CLI usage errors with structured diagnostics and nonzero exit codes
-
Construct immutable, ready-to-query workspace index snapshots
-
Separate query filters, output options, and command options; centralize command metadata
-
Organize Git, persistence, scanning, extraction, models, and rendering by responsibility with explicit ownership
-
Strengthen regression and process-level tests; use a standard test-only JSON parser
-
Make temporary test repositories independent of global Git identity and signing settings
-
Run tests, fatal-warning compilation, and shared skill validation in PR CI
-
Consolidate contributor/build documentation and normalize Scala brace/import conventions
-
Validate all 491 tests, fatal-warning compilation, formatting, and native CLI smoke checks
-
Benchmark the latest build separately: cold index, warm index, query latency, cache size, CPU/allocation profiles, and native GC
-
Codex CLI and desktop plugin packaging, marketplace installation, and shared skill validation (local install verified with Codex CLI 0.153.4)
-
Publish Codex marketplace changes and verify installation from GitHub; optionally submit to OpenAI's public plugin directory
-
Publish plugin to Claude Code marketplace
- graph module: delete dead library surface (
EdgeType/connections,CrossingCalculator,OccupancyGrid,GraphUtils.topologicalSort/hasCycle, six unusedGraphmethods,QuadTree.collisions,Utils.removeFirst/signum, misc dead members) - graph module: collapse single-implementation abstractions (
Lensmachinery,VertexRenderingStrategy,LayoutPrefs/RendererPrefstrait tower, redundantrenderGraphoverload); replace the twelve per-character renderer defs with three indexed glyph strings; fix swappedlineHorizontalChar/lineVerticalCharnames;Directionas Scala 3 enum - Bug fix:
Diagramparsing drops sibling nested boxes (boxContainskeyed.toMapby outer box keeps only the last pair); each box now links to its smallest container (regression test added) - Perf fix:
collectTextrebuilds the all-edge-labels point set once per scanned character; hoisted to a parser-level lazy val - src/: delete parallel types (
AstPatternMatch→ reuseSymbolInfo; deadCategorizedRef;OverviewData.hubTypes→ derive frommostExtended; deadSymbolList.total/StringList.total; deadTestCaseInfo.suiteName/suiteFile;HierarchyNodeholdsOption[SymbolInfo]instead of four parallelOptionfields; explicitCmdResult.Silentreplaces the empty-StringListsentinel). Behavior change:ast-pattern --jsongainsparents/typeParamParents/annotationsfields (now sharesjsonSymbol) - src/: fold duplicated logic (
index()cached/uncached parse branches, tier-ranking behindsearch/searchFiles/owner-scoped suggestions,findImplementationsbranches,cmdGrepresult-building arms,grepInSymbolper-body file re-read,renderOverviewconcise/full print blocks,renderCategorizedRefstriple confidence resolve,extractRawSymbolstype-defn arms,fixPosixRegexfallback,jKindCounts/InheritedGroupshared fragments) - Micro-cleanups: identical
ifbranches (requiredWidth), identicalcatcharms,var→val, pass-through aliases/wrappers, hand-rolled stdlib equivalents - Net: −443 lines across 29 files; deferred as not worth the churn:
KinkRemovermirror-case helper (delicate choreography),gitShowFile/runGitLinesunification (semantic differences in a perf-tuned area),TestCaseResult/TestSuiteResultmerge,SymbolKind.idvsordinal(persisted-format decoupling is deliberate)
- JSON emission helpers (
jStr/jArr/jStrArr/jOpt/jsonMemberFields/jsonBodyFields) replacing ~50 hand-rolledjsonEscapeinterpolation fragments informat.scala - Bug fix:
grep --jsonemits invalid JSON when the auto-corrected pattern contains\or"(unescaped"corrected"hint incmdGrep) -
overview --architecture/--concisereads imports from the index (WorkspaceIndex.fileImports) instead of re-parsing every file from disk; reusesparseImportTargetinstead of the hand-rolled lastDot package split (~3.7s → warm-query latency on scala3) - Deadline-scan chassis (
DeadlineScan): one shared parallel file-scan (deadline + result queue + unreadable counter + stderr report) behindgrepFiles,findReferences,findImports; behavior fix: per-line deadline expiry now setstimedOutin all three - Shared path/test filter predicate (
pathPredicate) behindfilterSymbols,filterRefs,grepFiles,astPatternSearch,cmdTests -
requireArghelper for the 21 identicalargs.headOption match … UsageErrorcommand preambles -
buildMultiIndexhelper for the inverted lazy indexes (parentIndex,typeParamParentIndex,annotationIndex);distinctByfordistinctSymbols - Shared name-match tier classifier (
nameMatchTier) behindsearch,searchFiles,mkOwnerScopedSuggestions - Context-window slicing helper +
readSourceLinesreuse informat.scala(fixesrenderSourceBlocksreading the same file twice) - Numbered source-line printer + member-line formatters; behavior change: line numbers uniformly left-aligned (refs
-Cpreviously right-aligned) -
renderShowntruncation-footer helper across the render sites - Java extraction helpers (
javaParams,javaMethodSig,javaFieldInfo,javaLine,addBody) deduplicating symbol vs member vs body extraction -
findTypeDefsshared type-definition lookup acrossmembers/body/def/inherited-member collection - Shared constants:
refCategoryOrder,Confidence.label/explanation,wildcardImportPkg,SymbolKind.label; one recursive hierarchy printer for both directions - Policy/layering: removed
returnfrombench.scala; graph-command flag strip-list derived fromscalexFlagsregistry (fixesgraph --render … --limit 5corrupting the edge list); not-found hint computed incmdCoverageinstead of the renderer - Guard tests: structural JSON validator sweep over every
--jsoncommand; locks on search ranking, overview package deps, Java signature consistency, truncation footers, context rendering
- New
clibaseMill module — app-agnostic CLI plumbing: declarative flag registry (declare a flag once: names, value shape, default, help), single-pass lenient parser (unknown--longflags ignored), typedFlagsbag, generated options help,Timings,OutputBudget(line-boundary truncation),BatchLoop(stdin REPL) - Migrate scalex onto clibase: delete
ParsedFlags, the hand-written parser match, and the hand-written options help; each flag declared once insrc/flags.scala;CommandContextbuilt in a single place (flagsToContext) - Extract the self-contained
asciiGraphpackage (src/graph/) into its owngraphMill module - Behavior change: when both
-wand--workspaceare passed, the last occurrence wins (was:--workspacealways won) - Behavior fix:
--expandwithout a numeric value no longer consumes a following flag
- Unify the duplicated member-extraction traversals (
extractScalaMembers/extractMembersWithSpans) behind one origin-tagged core (extractScalaMemberTree) - Factor the repeated body-slice blocks in
extractScalaBodyinto a singleaddBodyhelper with aTypeDefnextractor - Deduplicate the Scala 3 → Scala 2.13 parse fallback into
parseSource; addreadSource/readSourceLineshelpers - Rewrite
parseFlagsas a single position-aware pass — fixes positional args being dropped when they equal a flag value elsewhere in the arg list - Return
timedOutfromfindReferences/findImports/categorizeReferencesas a value instead of a shared mutable field onWorkspaceIndex - Close git subprocess readers (
Using.resource); sharedrunGitLineshelper; survive a missing git binary - Report the cause when the binary index fails to load (
ClassName: message) instead of a generic message - Remove all 34
returnstatements fromsrc/(boundary/break or restructuring); zero-returnpolicy now holds codebase-wide - New tests: cache corruption/truncation/version-mismatch recovery, refs timeout reporting, flag-parser regressions, member-origin extraction
- Add Mill build definition for Scalex CLI and tests
- Move local/native build commands from scala-cli to Mill
- Update docs and scripts to describe Mill workflows
-
--max-output Nglobal output budget — truncate any command's output at N characters with pagination hint; wrapsrender()centrally viaBudgetPrintStreaminrunCommand; also serves as per-query budget inbatchmode -
--in-package PKG— filter symbols and references to files whose package declaration matches prefix; applied infilterSymbolsandfilterRefs; cheaper than--pathfor cross-compiled projects where package != directory - Deferred:
--format agentcompact output — maintenance burden of dual formatters across 25+ renderers;--max-output+ existing--brief/--shallow/--no-docflags cover the same need - Discarded: stale symbol hints in
explain— false positives (cross-repo impls, macros) waste more agent tokens than they save; agent can runimpl+refsdirectly - Deferred:
members --diff <ref>— medium effort, niche;diff+git diffalready cover this well
-
grep --in <Type> --each-method— iterate members of a type, grep each method body for the pattern, report which methods matched with counts; combinesextractMembers+extractBody+ regex match in a single command
-
overview --concise— fixed-size summary (~60 lines) regardless of codebase size; compact header, inline symbols, top packages, dep stats (not full graph), hub types, drill-down hints; implies--architecture
- Owner-qualified fallback in
findDefinition— resolvesOuter.Innerby finding owner type, then filtering symbols by same file; fixesmembers,hierarchy,def,explainautomatically -
impl Outer.Inner— verify owner exists viafindDefinition, then use simple name for parentIndex lookup; returnNilfor unknown owners -
body --in Outer.Inner— extract simple name from dotted--inowner forextractBody Centralize— not needed;resolveDottedMember()findDefinitionfallback makes it a dead path for type members; still useful for non-type members (defs/vals inside objects)
- Hybrid
isStdlibTypecheck: minimal predef set (Option,List,Map, etc.) + package-based filtering via index for non-predef names - Project-defined types with library names (
Task,Stream,IO, etc.) correctly surface; only Scala predef auto-imports and unindexed stdlib types are suppressed
- Better hub detection in
overview --architecture— deprioritize types not defined in the indexed source (java., scala., scala.collection.*); rank project-defined types higher using index membership check; extends existingisStdlibParentfilter -
explain --related— extract type names from member signatures (param types, return types, field types), cross-reference with index to find definitions, list as "Related types" section; cuts agent exploration round-trips in half -
package --explain— composite mode: runexplain --brieffor each definition in the package; batch-style output (definition + top members + impl count per type); single command replaces N sequentialexplaincalls
- Port ascii-graphs library to scalex as
graphcommand -
graph --render "A->B, B->C"— Sugiyama-style layered ASCII/Unicode graph rendering -
graph --parse— parse ASCII diagrams from stdin into boxes + edges - Flags:
--unicode/--no-unicode,--vertical/--horizontal,--rounded,--double,--json - Round-trip: render → parse → structured data
- When
--in Owneris specified and the symbol is indexed in a different file, also search the owner's file for nested defs
-
members --limit 0— show all members without truncation -
members --offset N— skip first N members for pagination
-
overview --architecturededup — skip "Most extended" section when--architectureis active; "Hub types" already covers the sameparentIndexdata with identical sorting; applies to both text and JSON output — nice idea but hard to get right; auto-selecting which types to explain risks wrong choices and bloated output; coding agents already do selective sequential calls (tourcomposite commandoverview→ pick interesting types →explain), which adapts better than a fixed composite
-
members --body/explain --body— inline method bodies into member listings; combine existingmembersextraction withbodyspan extraction in the same file pass;--max-lines Nto skip large bodies -
body -C N— context lines above/below the extracted span (line arithmetic around existing span) -
body --imports— prepend the file's import block to body output (extract top-levelImportnodes from same AST) -
overrides --body— show each override's body inline;overridesalready locates symbols + files, reuseextractBodyon each;--max-lines Nto cap -
grep --in <symbol>— scope grep to a specific class/method body; parse AST to find symbol span, restrict grep to those line ranges; supportsOwner.memberdot syntax - Fix
explaindisambiguation to respect--path— verify--pathfilters before disambiguation (may already work correctly) -
explain --near <file>— parse file's import block to rank/resolve ambiguous candidates (nice-to-have)
- When
defreturns 0 results, use bloom filters to find candidate files, parse them on-the-fly, and search for local defs/vals/vars inside method bodies matching the query name - Return results marked as "local" with owner chain (package > class > method > local def)
- Zero index size growth — pays parse cost only on the miss path
- Performance safeguards: file count limit, timeout consistent with refs/imports (20s)
- Consider extending to
explainandbodycommands as well
- Copy-paste disambiguation commands — when
explainhits multiple matches, print ready-to-runscalex explain pkg.Namecommands instead of just a count + generic hint. Saves one round-trip per disambiguation. -
explain --brief— condensed output: definition + top 3 members only. No doc, companion, inherited, impls, imports. Pairs withbatchfor lightweight multi-explain.
-
searchreverse-suffix matching — queries likeScalaJSClassEmittersuggestClassEmitter -
explainsuffix auto-resolve — auto-shows best match when query is a superset - Unified not-found suggestions —
search,coveragenow show "Did you mean?" hints - Extracted
resolvePackage()/mkPackageNotFound()— deduplicated package resolution frompackage/api/summary
Bugs:
-
explainimport refs now filtered by--path/--exclude-path— were unfiltered before -
isTestFiledetects root-leveltests/,test/,testing/—startsWithadded alongsidecontains
Disambiguation & ambiguity (reported in #132, #133, #134):
-
explaindisambiguation hints — "(N other matches — use package-qualified name or --path to disambiguate)" -
explainpackage fallback — falls back tosummarywhen symbol matches a package -
explain --shallow— skip implementations and import refs -
explain --no-doc— suppress Scaladoc section (#157)
Overview quality (#132, #133, #135):
- Hub type casing — PascalCase preserved via
symbolsByNamelookup - Hub type noise filter — single-char names excluded; sorted by distinct-package count
- Hub type signatures — one-line signature shown inline
-
overview --path— scopes all overview data to path prefix
Filtering (#133, #135):
-
--exclude-path— negative path filter on all commands viafilterSymbols/filterRefs -
symbols --summary— grouped counts by kind
Output control (#134):
- Members deduplication — companion members deduplicated against primary in
explain -
explaintotalImpls hint — "(showing N of M — use --impl-limit to adjust)" - Batch output size estimation — warn or auto-limit when a single query in a batch would produce >100KB output
-
explain --inherited— merge parent members into explain output, marking provenance;members --inheritedalready exists, expose it in the composite view -
refs --top N— rank files by reference count (descending) instead of flat list; heaviest users surface first for impact analysis - Directory-level dependency graph —
scalex dir-deps --path src/modules/auth/aggregates imports by target directory with file counts; more granular thanoverview --architecturepackage-level graph (deferred — package→directory mapping adds complexity)
-
explainpackage fallback warning — stderr message when silently falling back to package summary -
entrypointscommand — find@main,def main(,extends App, test suites; small effort, useful for onboarding - Override markers in
members --inherited— show[override]vs[inherited from Parent]markers
- Option bloom filters —
identifierBloom: Option[BloomFilter]replaces null sentinel; index v8 - Error handling — narrow
Exceptioncatches toIOExceptionfor file I/O; stderr logging for parse failures and unreadable files - Deduplicate extraction — shared
extractRawSymbolsused by bothextractSymbolsandextractSymbolsFromSource; fixes missing Given/Extension/Pkg.Object in diff command
— splitrefs --category CallSiteUsageintoCallSitevsUsageby checking if symbol appears in function position ofTerm.Apply; text heuristic (name(/name[) is cheap but noisy for common names (get,apply,map); AST-based detection adds parsing cost per file; same reasoning as discarded call-site extraction (#137) and call-site vs override distinction (#103)
Approximate call graph (— same reasoning as rejected "Static call graph (#101, #102)"; name-matched call targets produce false positives for common methods (callscommand)apply,map,get)Pipeline/flow command— same reasoning as rejected in #121, #135; BFS without type resolution is fragileCo-occurrence analysis— pure text co-occurrence is what grep does; unclear value overrefs --categorize
Companion member dedup in— already shipped in #136explainCall-site extraction— without type resolution, method name matching has high false positives for common names (get,apply,map); grep already does\.method\(matching; same reasoning as rejected "Static call graph (#101, #102)" and "Call-site vs override distinction (#103)"
Java member extraction (#135) [regex-based]— regex-based approach was fragile; replaced with JavaParser AST-based extraction in #167Re-exported type ranking (#132)— detecting alias chains requires type resolution (unavailable without build server); name-based heuristics would produce false positivesModule/subproject awareness (#135)— already discarded in #103; build file detection couples to external conventions— already discarded; BFS without type resolution is fragile via name collisionsflow/pipelinecommand (#135)—explain --expand-members(#133, #134)explain --expand N+body member --in Typealready covers this workflow; adding selective member expansion has diminishing returns vs composing existing commandsCross-project most-imported ranking (#132)—searchalready ranks by import count (shipped in #119)
— BFS without type resolution is fragile via name collisions; fails "better than grep" gate (same reasoning as rejectedscalex flow <from> <to>scalex pathin #102)—scalex sealed <trait>hierarchy --down --depth 1already serves this use case; marginalSmarter default limits— auto-summarize is hard to get right universally; better to give users explicit flags (--members-limit,--definitions-only)
- Replace regex-based Java symbol extraction with JavaParser AST parsing
- Java symbol extraction (classes, interfaces, enums, records, methods, fields)
- Java member extraction (constructors, nested types, enum constants, @Override detection)
- Java body extraction with owner filtering
- Centralized
isJavaFile()routing — eliminates scattered.endsWith(".java")checks
- Stop indexing local vals/defs inside method bodies — traversal skips
Defn.Def/Val/Var/Given/GivenAliasbodies - Case class constructor params in
extractMembers— case class params are public vals; regular class params only if markedval/var
package --definitions-only— filter out vals/defs, show only class/trait/object/enumoverviewhub types filter stdlib — skip scala/java base types (object, serializable, anyval) to surface real domain hub typesexplainmembers sorted by kind — classes before defs before vals;--members-limit Nflag (default 10)explainfuzzy fallback — if exact match fails, auto-show best fuzzy match with stderr hinthierarchytruncation count — "... and 87 more children" at depth limit instead of silent cut-offscalex summary <package>— sub-package view with symbol counts; middle ground betweenoverviewandpackage
overviewdefaults to--no-tests;--include-teststo opt inOwner.memberdotted syntax forexplainanddef—def MyService.findUserresolves directlyexplain --verbose— show member signatures inline instead of just namesexplaininlines "Imported by" file list when count ≤ 10, shows count + hint otherwiserefs --countsummary mode — "12 importers, 4 extensions, 30 usages" without full file lists- Companion-aware
members— auto-shows companion object/class members api --used-by <package>— coupling analysis: which types from pkg A are used by pkg Bsearchranks by import count — heavily-imported types surface firstsearch --returns <Type>/--takes <Type>— signature substring filter
- Git file listing, Scalameta parsing, in-memory index, find definition, find references, CLI
.scalex/index.binbinary persistence with string interning, OID-based skip, auto-reindex- Search ranking (exact → prefix → substring),
--kindfilter,--limit N, quiet indexing - Claude Code plugin:
plugin.json,SKILL.md, launcher script, install instructions - GraalVM native image (28MB standalone binary),
build-native.sh - Binary format v3, bloom filters (Guava) for refs pre-screening, 20s timeout
- GitHub Actions: native images on tag push (macOS arm64/x64, Linux x64)
- GitHub Releases,
install.shin plugin
batch,def --verbose,impl,refs --categorize,imports- Fallback hints, Scala 2 dialect fallback
- 243 MUnit tests (ExtractionSuite: 50, IndexSuite: 68, AnalysisSuite: 23, CliSuite: 102)
- Coverage: symbol extraction, persistence roundtrip, OID caching, bloom filters, search ranking, refs categorization, word boundary matching
| Project | Files | Symbols | Cold Index | Warm Index |
|---|---|---|---|---|
| Production monorepo | 13,979 | 214,301 | 4.6s | 540ms |
| Scala 3 compiler | 18,485 | 144,211 | 2.7s | 349ms |
- Confidence annotation (High/Medium/Low) based on imports; wildcard import resolution
- Alias tracking (
import X as Y,import {X => Y});[via alias Y]annotation in output
- Eliminate double file read, skip save when nothing changed
- Lazy bloom filter deserialization (~45% off load time)
- Pre-compute search deduplication, adaptive bloom capacity
- Single-pass post-index map building (2 passes vs 7)
- Track/list files with parse errors via
scalex index --verbose
- "hms" matches
HttpMessageService; ranked below exact/prefix/substring
- Bash re-exec guard,
-w/--workspaceflag, path-as-symbol hint
--kindfilter ondef,--no-testsglobal flag,--pathfilterrefs -C Ncontext lines, smarterdefranking
scalex annotated <annotation>with filters; annotations stored in binary index (v5)
scalex grep <pattern>— regex search with--path,--no-tests,-C N, 20s timeout,--count- Multi-pattern
-eflag, POSIX regex auto-correction (\|→|)
--prefix/--exactfor search,-calias for--categorize, condensed batch not-found--categorizedefault on refs,--flatopt-in
members,doc,search --definitions-only,refs --category,overview
body,explain,hierarchy(parents up + children down),overridesmembers --inherited,overview --architecture,deps,contextast-pattern,diff
tests(MUnit, ScalaTest, specs2),bodyfor test cases,coverage-
tests --countdynamic test site detection — reports non-literal test names separately (#259)
- Exclude stdlib/framework types from hub rankings; surface project-own types
explainusesdefranking,hierarchycycle-detection fix
--timingsflag, async-profiler scripts, JFR config, microbenchmark harness,bench.sh/bench-compare.sh
- Lazy map building — 1.3–2.2x faster on scala3 (17.7k files)
- Fuzzy "did you mean?" on not-found,
packagecommand overview --no-tests,overview --focus-package
scalex api <package>— show which symbols are imported by other packages (public API surface); cross-reference import data withpackageToSymbols; zero index change, pure in-memory query
- Package-qualified symbol lookup, type param indexing in extends clauses
- Companion merging in
explain,explain --expand N - Smarter refs/search ranking, lightweight Java file awareness
deps --depth N,members --verbosedefault,refs --strictscalex file <query>— fuzzy camelCase-aware file search
Items tried or evaluated and rejected — documented here to avoid re-exploring.
Bottleneck: every query pays ~290ms cache-load + ~230ms build-symbolsByName. Cheapest commands ~361ms, most expensive ~666ms. Root cause is 269K readUTF string constructions — I/O and file size are not the bottleneck.
Round 1 — discarded after benchmarking:
Separate bloom storage— only ~38ms difference;skipBytesalready efficientVarint encoding— smaller file doesn't help CPU-bound string constructionParallel index-build— ~130ms savings on a phase lazy maps already skipMemory-mapped I/O— bottleneck is string construction; 23MB is OS page-cached
Round 2 — attempted v7 format, reverted (all results within σ):
Blooms at end— skip 12MB saves ~67ms, but lowerName strings grew index 22→24MB, net zero2-byte string indices— actual table has 269K entries (need 4 bytes), dead code on real codebasesPre-interned lowercase names— +80K strings, +2MB;groupByhash map building is the cost, nottoLowerCase
Hyperfine v6 vs v7 (7 runs, warmup 2): file 361→371ms, def 591→580ms, impl 387→395ms, refs 666→646ms. All within σ.
Round 2 — remaining ideas, also discarded:
Lazy symbol deserialization— custom lazy format, high complexity for a subset of commandsPre-grouped symbol storage— similar to pre-interned names which already failed in v7
Reverse alias lookup— agent can do 2-step lookup; risks worse-than-grep perfMulti-workspace / cross-project awareness (#64)— unnecessary; use-wflag on target workspace— marginal for coding agents who infer patterns fromscalex pattern <name>(#53)explainStatic call graph (#101, #102)— name-matched call targets produce false positives (apply,map,get); fails "better than grep" gate; AST traversal risks blowing perf budget— BFS without type resolution is fragile via name collisions; niche use case vsscalex path <A> <B>(#102)deps/refsModule/subproject awareness (#103)— detecting build files couples to external conventions that change; directory heuristics unreliable across project layoutsCall-site vs override distinction in refs (#103)—refs --categorizealready provides ExtendedBy/UsedAsType/Usage categories; marginal improvement for significant complexityStructural pattern detection (#103)— marginal for coding agents who infer patterns fromexplainoutput—scalex imports <file>depsalready shows symbol-level dependencies; agent can read file top for imports