A macOS tool for source code exploration.
This version is a Swift and SwiftUI port of lumencode, with a native C++ bridge for analysis logic and a separate internal CLI harness for tight development loops.
lumencode-swift.xcodeprojA real macOS app project for day-to-day GUI development in Xcode.Package.swiftSwift Package manifest used for the shared core, native bridge, and CLI harness.Sources/LumencodeSwiftAppSwiftUI macOS interface layer.Sources/LumencodeCoreShared Swift models and workspace helpers used by both the GUI and CLI.Sources/LumencodeNativeBridgeNative C/C++ bridge boundary used by Swift for file analysis.Sources/LumencodeCLIInternal harness for regression-style development and analysis validation.
For the GUI app, open:
lumencode-swift/lumencode-swift.xcodeproj
Then in Xcode:
- Select the
lumencode-swiftscheme. - Click Run.
- Use
Open Folder…in the app to inspect a project.
Important:
- Do not open
Package.swiftif your goal is to run the GUI app from Xcode. - Opening
Package.swiftgives you package executables, not the real.apptarget.
The CLI is intentionally not the end-user product. It exists so backend and analysis work can be developed in a closed loop without needing manual GUI verification.
Build:
cd /lumencode-swift
swift buildRun the internal harness:
swift run lumencode-swift-cli /path/to/projectDump one file analysis:
swift run lumencode-swift-cli --dump-file /path/to/file.swift- GUI responsibilities:
- project opening
- tree navigation
- symbol and dependency inspection
- lower source/snippet pane
- platform-specific presentation and interaction behavior
- Core responsibilities:
- stable data models
- path and snippet helpers
- selection payload shaping
- project scanning
- Native bridge responsibilities:
- file parsing
- symbol extraction
- dependency extraction
- native-language expansion path toward parity with the Kirigami version
- Architecture Guide
- Development Plan
- Parity Guide
- Tool Comparison Report
- Licensing and Derivation
- Vendor Update Notes
Tree-sitter code in this repo is vendored source code, not a runtime dependency on the Tree-sitter app or CLI.
That means:
- Xcode builds should work from checked-in code alone
- SwiftPM builds should work from checked-in code alone
- generated parser sources and upstream license/provenance notes must stay documented
The Swift app now has:
- a real Xcode app target
- a working Docked macOS app
- file browsing
- symbol inspection
- dependency and route inspection hooks
- a lower source pane
- a native analysis bridge
It is still behind the Kirigami original in parser depth, detail richness, and some interface behavior.
