Problem
Microservice and monorepo architectures split code across multiple repos/packages. An agent working on Service A can't trace a call that crosses into Service B or a shared library — the graph just ends at the module boundary.
Proposed Change
Add a --workspace concept that covers multiple root directories under one index:
codelens init --workspace /projects/myapp # covers services/api, services/worker, lib/shared
- Cross-repo edges become
CROSS_CALLS, CROSS_IMPORTS to distinguish them
trace can follow cross-repo edges with --cross-repo flag
get_architecture returns a combined service map
Minimum Viable Version
Just support multiple repo_path entries in .codelens/config.json — resolve imports against the combined symbol table from all indexed repos.
Problem
Microservice and monorepo architectures split code across multiple repos/packages. An agent working on Service A can't trace a call that crosses into Service B or a shared library — the graph just ends at the module boundary.
Proposed Change
Add a
--workspaceconcept that covers multiple root directories under one index:codelens init --workspace /projects/myapp # covers services/api, services/worker, lib/sharedCROSS_CALLS,CROSS_IMPORTSto distinguish themtracecan follow cross-repo edges with--cross-repoflagget_architecturereturns a combined service mapMinimum Viable Version
Just support multiple
repo_pathentries in.codelens/config.json— resolve imports against the combined symbol table from all indexed repos.