PUBLIC BETA NOTICE (March 8, 2026): FlowMap is in public beta. Licensing is currently local/dev-only preview (no production server-side entitlement enforcement yet).
Swift code graph and impact analysis tool — understand and verify code structure, especially when reviewing AI-generated changes.
FlowMap parses Swift code, builds a workspace-level graph of files, types, functions, and call relationships, and visualizes that graph inside VS Code.
It answers questions like:
FlowMap is not a compiler replacement. It makes real code structure visible at the workspace level so you can verify relationships directly rather than inferring them.
GitHub language percentages reflect implementation layers, not analysis target language.
FlowMap still targets Swift codebases; the JS-heavy ratio comes from editor/runtime integration.
FlowMap intentionally resolves cross-file calls conservatively to reduce false links. This means some dynamic/indirect patterns are represented at interface level rather than concrete implementation level.
let svc: NetworkServiceProtocol = LiveService(); svc.fetchData()where constraints.func run<T: Worker>(_ t: T) { t.work() }This behavior is expected in current public beta and is being expanded incrementally.



Platform note: Linux/Windows are not supported yet because the current Swift parser build/runtime path depends on macOS Swift toolchain assumptions.
1. Clone the repository
git clone https://github.com/adgk2349/FlowMap-AI_Code_Hallucination_Guard_for_Swift.git FlowMap
cd FlowMap
2. Build the Rust engine
cargo build
3. Build the Swift parser
cd parsers/swift-ast
swift build -c release
cd ../..
Note: replay/scenario validation scripts look for the parser binary at
parsers/swift-ast/.build/debug/flowmap-swift-ast.
If you run those scripts, also build debug once:cd parsers/swift-ast && swift build -c debug.
4. Compile the VS Code extension
cd editor/vscode
npm install
npm run compile
cd ../..
editor/vscode folder in VS CodeF5 to launch the Extension Development HostCmd+Shift+P)If you install FlowMap via .vsix, set flowmap.binaryPath to your built engine binary path (for example: /path/to/FlowMap/target/debug/flowmap), then run FlowMap: Analyze Workspace.
FlowMap includes automated replay validation that replays real Git commit pairs and checks whether graph diff changes are detected in the expected direction.
scripts/run_commit_replay.mjsscripts/run_sample_scenarios.mjsscripts/build_replay_summary.mjsscripts/build_validation_detail.mjsExample:
node scripts/run_commit_replay.mjs \
--repo /path/to/swift-repo \
--count 100 \
--report reports/replay-100.json
Current bundled validation output:
reports/replay-validation-bundle.mdreports/replay-validation-bundle.jsonreports/sample-scenarios-report.jsonreports/public-beta-validation-detail.mdreports/public-beta-validation-detail.jsonLatest bundled metrics (reports/replay-validation-bundle.md):
Latest scenario regression (reports/sample-scenarios-report.json):
Detailed public beta validation (reports/public-beta-validation-detail.md):
FlowMap is currently in public beta.
Final licensing terms (including commercial terms) will be announced after the beta period.
Until then, all rights are reserved by the author, except that evaluation use for the public beta is permitted.
For commercial use or redistribution, please contact: adgk2349b@gmail.com
Issues and pull requests are welcome.
.github/Good areas to contribute:
FlowMap is now in Public Beta.
reports/ for transparent review.