The current host-side discovery path is slow because it repeatedly reconstructs the same repo identity information from scratch using Bash loops and many short-lived subprocesses. The slow part is not the Docker analysis pipeline itself. The slow part is the pre-analysis scanner that tries to answer these questions on every run:
- Which local transcript/session directories exist?
- Which working directory did each one come from?
- Which repo/worktree does that path belong to?
- What is the canonical remote for that repo?