Summary
The multi-repo foundation exists in CodeDB's SQLite schema (`repos` table). Extend this to support team-level code search across all repos associated with a team.
Near-term easier path
When querying, check if other repos for the same team have local indexes available (e.g., in sibling `.sageox/cache/codedb/` dirs). If they exist locally, include them in search results. Do NOT create indexes for repos that don't have them — only opportunistically use what's already there.
This gives cross-repo search without dedicated "team index" infrastructure.
Longer term
- `ox code index --team` discovers all team repos via `GET /api/v1/cli/repos` and indexes them
- Daemon could proactively index all team repos in background
- Also consider: querying other repo ledgers via ox for the same team to get broader context
Priority
P4 — backlog / future idea
Summary
The multi-repo foundation exists in CodeDB's SQLite schema (`repos` table). Extend this to support team-level code search across all repos associated with a team.
Near-term easier path
When querying, check if other repos for the same team have local indexes available (e.g., in sibling `.sageox/cache/codedb/` dirs). If they exist locally, include them in search results. Do NOT create indexes for repos that don't have them — only opportunistically use what's already there.
This gives cross-repo search without dedicated "team index" infrastructure.
Longer term
Priority
P4 — backlog / future idea