Loctree Report

# loctree/rmcp_mux/src

/Users/maciejgad/hosted/loctree/rmcp_mux/src

develop@b173bb1a

21files6476LOC1dups

###
Analysis Summary

21Files analyzed
6.5KTotal LOC
1Duplicate exports
2Re-export files
0Dynamic imports

###
Quick Commandsv0.6

#### Query API

Fast graph queries without full analysis

`loct query who-imports /Users/maciejgad/hosted/loctree/rmcp_mux/src/App.tsx`Files that import target
`loct query where-symbol useAuth`Find symbol definitions
`loct query component-of /Users/maciejgad/hosted/loctree/rmcp_mux/src/App.tsx`Graph component containing file

#### Snapshot Diff

Compare snapshots to track changes

`loct diff --since main`Compare against main branch
`loct diff --since HEAD~5`Delta since 5 commits ago

#### Suggested

Based on current analysis

`loct find --similar Button`Find before creating duplicates
`loct dead --confidence high`Unused exports (safe to remove)

### Top duplicate exports

1 duplicate export groups found

Symbol | Files | Prod | Dev | Canonical | Refactor targets
--- | --- | --- | --- | --- | ---
`check_health` | 2 | 2 | 0 | `lib.rs` | wizard/services.rs

### Re-export cascades

None

### Dynamic imports

None

### Tauri command coverage

No Tauri commands detected in this root.

### Crowds Analysis

8 crowd patterns found - files with similar names that may indicate fragmentation or duplication

`with`2 files
3.0severity
Usage Asymmetry (1+1 files)

File | Match Reason | Importers
--- | --- | ---
`scan.rs` | Name: with | 4
`lib.rs` | Name: with | 0

`status`5 files
7.5severity
Usage Asymmetry (1+3 files)Name Collision (5 files)

File | Match Reason | Importers
--- | --- | ---
`state.rs` | Name: status | 6
`scan.rs` | Name: status | 4
`lib.rs` | Name: status | 0
`runtime/status.rs` | Name: status | 0
`wizard/types.rs` | Name: status | 0

`server`6 files
8.0severity
Usage Asymmetry (1+4 files)Name Collision (6 files)

File | Match Reason | Importers
--- | --- | ---
`config.rs` | Name: server | 8
`state.rs` | Name: server | 6
`lib.rs` | Name: server | 0
`runtime/server.rs` | Name: server | 0
`runtime/types.rs` | Name: server | 0
`wizard/services.rs` | Name: server | 0

`service`6 files
8.5severity
Usage Asymmetry (1+5 files)Name Collision (6 files)

File | Match Reason | Importers
--- | --- | ---
`scan.rs` | Name: service | 4
`lib.rs` | Name: service | 0
`wizard/keys.rs` | Name: service | 0
`wizard/services.rs` | Name: service | 0
`wizard/types.rs` | Name: service | 0
`wizard/ui.rs` | Name: service | 0

`config`5 files
9.0severity
Usage Asymmetry (1+3 files)Export Overlap (1 symbols)Name Collision (5 files)

File | Match Reason | Importers
--- | --- | ---
`config.rs` | Name: config | 8
`scan.rs` | Name: config | 4
`lib.rs` | Name: config | 0
`wizard/persist.rs` | Name: config | 0
`wizard/services.rs` | Name: config | 0

`health`5 files
8.0severity
Usage Asymmetry (1+4 files)Name Collision (5 files)

File | Match Reason | Importers
--- | --- | ---
`lib.rs` | Name: health | 0
`runtime/mod.rs` | Name: health | 0
`wizard/services.rs` | Name: health | 0
`wizard/types.rs` | Name: health | 0
`wizard/ui.rs` | Name: health | 0

`client`7 files
9.0severity
Usage Asymmetry (1+6 files)Name Collision (7 files)

File | Match Reason | Importers
--- | --- | ---
`state.rs` | Name: client | 6
`lib.rs` | Name: client | 0
`runtime/client.rs` | Name: client | 0
`wizard/clients.rs` | Name: client | 0
`wizard/persist.rs` | Name: client | 0
`wizard/types.rs` | Name: client | 0
`wizard/ui.rs` | Name: client | 0

`state`3 files
6.0severity
Usage Asymmetry (1+2 files)Name Collision (3 files)

File | Match Reason | Importers
--- | --- | ---
`state.rs` | Name: state | 6
`lib.rs` | Name: state | 0
`wizard/types.rs` | Name: state | 0

###
Circular Imports0

No circular imports detected

###
Dead Exports

No dead exports detected

All exports are being imported somewhere in the codebase

###
Twins Analysis

0 dead parrots, 15 exact twins, 0 barrel issues

No dead parrots found - all exports are imported!

File (green = no dead parrots)File (red = many dead parrots)Shared symbol connection

Symbol | Locations | Canonical
--- | --- | ---
`MAX_PENDING` | `lib.rs:0` (reexport) - 0 imports ⭐ `runtime/types.rs:9` (decl) - 0 imports `runtime/mod.rs:0` (reexport) - 0 imports | `lib.rs`
`MAX_QUEUE` | `runtime/types.rs:6` (decl) - 0 imports `lib.rs:0` (reexport) - 0 imports ⭐ `runtime/mod.rs:0` (reexport) - 0 imports | `lib.rs`
`run_proxy` | `runtime/proxy.rs:15` (const) - 0 imports `lib.rs:0` (reexport) - 0 imports ⭐ `runtime/mod.rs:0` (reexport) - 0 imports | `lib.rs`
`ServerConfig` | `config.rs:50` (const) - 4 imports ⭐ `lib.rs:0` (reexport) - 0 imports | `config.rs`
`CliOptions` | `lib.rs:0` (reexport) - 0 imports `config.rs:90` (const) - 1 imports ⭐ | `config.rs`
`check_health` | `wizard/services.rs:258` (const) - 0 imports `lib.rs:355` (const) - 0 imports ⭐ | `lib.rs`
`Config` | `config.rs:44` (const) - 3 imports ⭐ `lib.rs:0` (reexport) - 0 imports | `config.rs`
`new` | `state.rs:81` (const) - 0 imports `lib.rs:136` (const) - 0 imports ⭐ | `lib.rs`
`run_mux` | `runtime/mod.rs:96` (const) - 0 imports `lib.rs:0` (reexport) - 0 imports ⭐ | `lib.rs`
`health_check` | `lib.rs:0` (reexport) - 0 imports ⭐ `runtime/mod.rs:38` (const) - 0 imports | `lib.rs`
`run_mux_internal` | `lib.rs:0` (reexport) - 0 imports ⭐ `runtime/mod.rs:129` (const) - 0 imports | `lib.rs`
`MuxState` | `state.rs:49` (const) - 4 imports ⭐ `lib.rs:0` (reexport) - 0 imports | `state.rs`
`StatusSnapshot` | `lib.rs:0` (reexport) - 0 imports `state.rs:21` (const) - 6 imports ⭐ | `state.rs`
`ServerStatus` | `lib.rs:0` (reexport) - 0 imports `state.rs:11` (const) - 3 imports ⭐ | `state.rs`
`ResolvedParams` | `lib.rs:0` (reexport) - 0 imports `config.rs:69` (const) - 2 imports ⭐ | `config.rs`

No barrel chaos detected - clean module structure!

### Project tree

bin
334 LOC
├─
rmcp_mux.rs
233 LOC
└─
rmcp_mux_proxy.rs
101 LOC
config.rs
286 LOC
lib.rs
383 LOC
runtime
1769 LOC
├─
client.rs
236 LOC
├─
mod.rs
286 LOC
├─
proxy.rs
63 LOC
├─
server.rs
298 LOC
├─
status.rs
48 LOC
├─
tests.rs
823 LOC
└─
types.rs
15 LOC
scan.rs
738 LOC
state.rs
245 LOC
tray.rs
330 LOC
wizard
2391 LOC
├─
clients.rs
140 LOC
├─
keys.rs
521 LOC
├─
mod.rs
197 LOC
├─
persist.rs
182 LOC
├─
services.rs
334 LOC
├─
types.rs
210 LOC
└─
ui.rs
807 LOC

# loctree/rmcp_memex/src

/Users/maciejgad/hosted/loctree/rmcp_memex/src

develop@b173bb1a

12files2991LOC1dups

###
Analysis Summary

12Files analyzed
3.0KTotal LOC
1Duplicate exports
2Re-export files
0Dynamic imports

###
Quick Commandsv0.6

#### Query API

Fast graph queries without full analysis

`loct query who-imports /Users/maciejgad/hosted/loctree/rmcp_memex/src/App.tsx`Files that import target
`loct query where-symbol useAuth`Find symbol definitions
`loct query component-of /Users/maciejgad/hosted/loctree/rmcp_memex/src/App.tsx`Graph component containing file

#### Snapshot Diff

Compare snapshots to track changes

`loct diff --since main`Compare against main branch
`loct diff --since HEAD~5`Delta since 5 commits ago

#### Suggested

Based on current analysis

`loct find --similar Button`Find before creating duplicates
`loct dead --confidence high`Unused exports (safe to remove)

### Top duplicate exports

1 duplicate export groups found

Symbol | Files | Prod | Dev | Canonical | Refactor targets
--- | --- | --- | --- | --- | ---
`purge_namespace` | 2 | 2 | 0 | `rag/mod.rs` | storage/mod.rs

### Re-export cascades

None

### Dynamic imports

None

### Tauri command coverage

No Tauri commands detected in this root.

### Crowds Analysis

10 crowd patterns found - files with similar names that may indicate fragmentation or duplication

`host`4 files
7.0severity
Usage Asymmetry (1+2 files)Name Collision (4 files)

File | Match Reason | Importers
--- | --- | ---
`tui/app.rs` | Name: host | 1
`tui/host_detection.rs` | Name: host | 1
`lib.rs` | Name: host | 0
`tui/mod.rs` | Name: host | 0

`server`3 files
6.0severity
Usage Asymmetry (1+2 files)Name Collision (3 files)

File | Match Reason | Importers
--- | --- | ---
`tui/host_detection.rs` | Name: server | 1
`handlers/mod.rs` | Name: server | 0
`lib.rs` | Name: server | 0

`wizard`3 files
6.0severity
Usage Asymmetry (1+2 files)Name Collision (3 files)

File | Match Reason | Importers
--- | --- | ---
`tui/app.rs` | Name: wizard | 1
`lib.rs` | Name: wizard | 0
`tui/mod.rs` | Name: wizard | 0

`memory`3 files
6.0severity
Usage Asymmetry (1+2 files)Name Collision (3 files)

File | Match Reason | Importers
--- | --- | ---
`lib.rs` | Name: memory | 0
`rag/mod.rs` | Name: memory | 0
`tests/memory.rs` | Name: memory | 0

`search`3 files
6.0severity
Usage Asymmetry (1+2 files)Name Collision (3 files)

File | Match Reason | Importers
--- | --- | ---
`lib.rs` | Name: search | 0
`rag/mod.rs` | Name: search | 0
`storage/mod.rs` | Name: search | 0

`document`3 files
6.0severity
Usage Asymmetry (1+2 files)Name Collision (3 files)

File | Match Reason | Importers
--- | --- | ---
`lib.rs` | Name: document | 0
`rag/mod.rs` | Name: document | 0
`storage/mod.rs` | Name: document | 0

`config`3 files
6.0severity
Usage Asymmetry (1+2 files)Name Collision (3 files)

File | Match Reason | Importers
--- | --- | ---
`tui/app.rs` | Name: config | 1
`lib.rs` | Name: config | 0
`tui/mod.rs` | Name: config | 0

`detection`3 files
6.0severity
Usage Asymmetry (1+2 files)Name Collision (3 files)

File | Match Reason | Importers
--- | --- | ---
`tui/host_detection.rs` | Name: detection | 1
`lib.rs` | Name: detection | 0
`tui/mod.rs` | Name: detection | 0

`hosts`4 files
7.0severity
Usage Asymmetry (1+2 files)Name Collision (4 files)

File | Match Reason | Importers
--- | --- | ---
`tui/app.rs` | Name: hosts | 1
`tui/host_detection.rs` | Name: hosts | 1
`lib.rs` | Name: hosts | 0
`tui/mod.rs` | Name: hosts | 0

`kind`3 files
6.0severity
Usage Asymmetry (1+2 files)Name Collision (3 files)

File | Match Reason | Importers
--- | --- | ---
`tui/host_detection.rs` | Name: kind | 1
`lib.rs` | Name: kind | 0
`tui/mod.rs` | Name: kind | 0

###
Circular Imports0

No circular imports detected

###
Dead Exports

No dead exports detected

All exports are being imported somewhere in the codebase

###
Twins Analysis

0 dead parrots, 16 exact twins, 0 barrel issues

No dead parrots found - all exports are imported!

File (green = no dead parrots)File (red = many dead parrots)Shared symbol connection

Symbol | Locations | Canonical
--- | --- | ---
`new` | `embeddings/mod.rs:121` (const) - 0 imports `storage/mod.rs:66` (const) - 0 imports `rag/mod.rs:22` (const) - 0 imports ⭐ `tui/app.rs:112` (const) - 0 imports | `rag/mod.rs`
`HostKind` | `lib.rs:0` (reexport) - 0 imports `tui/mod.rs:0` (reexport) - 0 imports `tui/host_detection.rs:10` (const) - 1 imports ⭐ | `tui/host_detection.rs`
`WizardConfig` | `tui/app.rs:20` (const) - 0 imports `tui/mod.rs:0` (reexport) - 0 imports `lib.rs:0` (reexport) - 0 imports ⭐ | `lib.rs`
`run_wizard` | `tui/mod.rs:0` (reexport) - 0 imports `lib.rs:0` (reexport) - 0 imports ⭐ `tui/app.rs:400` (const) - 0 imports | `lib.rs`
`HostDetection` | `tui/mod.rs:0` (reexport) - 0 imports `lib.rs:0` (reexport) - 0 imports `tui/host_detection.rs:45` (const) - 1 imports ⭐ | `tui/host_detection.rs`
`detect_hosts` | `tui/mod.rs:0` (reexport) - 0 imports `lib.rs:0` (reexport) - 0 imports `tui/host_detection.rs:263` (const) - 1 imports ⭐ | `tui/host_detection.rs`
`FastEmbedder` | `embeddings/mod.rs:77` (const) - 0 imports `lib.rs:0` (reexport) - 0 imports ⭐ | `lib.rs`
`MLXBridge` | `embeddings/mod.rs:69` (const) - 0 imports `lib.rs:0` (reexport) - 0 imports ⭐ | `lib.rs`
`SearchResult` | `rag/mod.rs:291` (const) - 0 imports `lib.rs:0` (reexport) - 0 imports ⭐ | `lib.rs`
`purge_namespace` | `rag/mod.rs:121` (const) - 0 imports ⭐ `storage/mod.rs:233` (const) - 0 imports | `rag/mod.rs`
`ChromaDocument` | `lib.rs:0` (reexport) - 0 imports ⭐ `storage/mod.rs:45` (const) - 0 imports | `lib.rs`
`RAGPipeline` | `rag/mod.rs:15` (const) - 0 imports `lib.rs:0` (reexport) - 0 imports ⭐ | `lib.rs`
`create_server` | `lib.rs:0` (reexport) - 0 imports ⭐ `handlers/mod.rs:434` (const) - 0 imports | `lib.rs`
`StorageManager` | `lib.rs:0` (reexport) - 0 imports ⭐ `storage/mod.rs:53` (const) - 0 imports | `lib.rs`
`HostFormat` | `tui/mod.rs:0` (reexport) - 0 imports ⭐ `tui/host_detection.rs:31` (const) - 0 imports | `tui/mod.rs`
`MCPServer` | `handlers/mod.rs:63` (const) - 0 imports `lib.rs:0` (reexport) - 0 imports ⭐ | `lib.rs`

No barrel chaos detected - clean module structure!

### Project tree

bin
200 LOC
└─
rmcp_memex.rs
200 LOC
build.rs
9 LOC
embeddings
242 LOC
└─
mod.rs
242 LOC
handlers
456 LOC
└─
mod.rs
456 LOC
lib.rs
95 LOC
rag
312 LOC
└─
mod.rs
312 LOC
storage
416 LOC
└─
mod.rs
416 LOC
tests
41 LOC
└─
memory.rs
41 LOC
tui
1220 LOC
├─
app.rs
429 LOC
├─
host_detection.rs
355 LOC
├─
mod.rs
10 LOC
└─
ui.rs
426 LOC