ConflictCraft is a deterministic Git conflict visualizer and resolution engine.
docs/ConflictCraft-Full-Tutorial.md
- C++: core parser, diff3-style hunk analysis, graph generation
- Python: deterministic smart rules and explanations
- TypeScript/JavaScript: VS Code extension and 4-pane webview UI
- JSON: schema contracts between layers
- Shell/PowerShell: CLI and Git mergetool integration
- The VS Code extension bundles its own backend under
vscode-extension/backend/. - The extension executes C++ and Python only from that bundled backend path.
- It does not execute backend scripts from the user's workspace.
- Platform-specific core binaries are resolved by OS at runtime.
core/C++ enginepython_engine/smart rule enginevscode-extension/VS Code extensionschemas/strict JSON contractsscripts/CLI + git integrationdocs/architecture and operations
Unix (Linux + macOS):
bash scripts/conflictcraft setupWindows:
powershell -ExecutionPolicy Bypass -File scripts/conflictcraft.ps1 setupUnix (Linux + macOS):
make coreWindows:
mingw32-make coreUnix (Linux + macOS):
make testWindows:
mingw32-make testUnix (Linux + macOS):
./scripts/conflictcraft resolve path/to/conflicted.file --writeWindows:
./scripts/conflictcraft.ps1 resolve path\to\conflicted.file --writeUnix (Linux + macOS):
bash scripts/install-device.sh
conflictcraft doctorWindows:
powershell -ExecutionPolicy Bypass -File scripts/install-device.ps1
conflictcraft doctorUnix (Linux + macOS):
bash scripts/conflictcraft helpWindows:
powershell -ExecutionPolicy Bypass -File scripts/conflictcraft.ps1 helpKey commands:
setup [--backend-only]doctorscan [path]rulessamples listsamples run <import|whitespace|json|signature> [--no-write] [--explain]core-merge --base <file> --ours <file> --theirs <file> [--out <file>]resolve <file> [--write|--no-write] [--explain]resolve-all <path> [--write|--no-write] [--explain]git-setupgit-resolve [--write|--no-write] [--explain]installuninstall
cd vscode-extension
npm install
npm run compileUnix (Linux + macOS):
bash scripts/install-mergetool.shWindows:
powershell -ExecutionPolicy Bypass -File scripts/install-mergetool.ps1Global command uninstall: Unix (Linux + macOS):
bash scripts/uninstall-device.shWindows:
powershell -ExecutionPolicy Bypass -File scripts/uninstall-device.ps1