ParallelEarth — Git Worktree Experiments for VS CodeTry alternative implementations. Run matching checks. Compare evidence before choosing your next change. ParallelEarth is a local VS Code extension for Git worktree management, code experiments and baseline comparison. Create separate working directories called Earths from a committed revision, edit each approach in its own editor window, and compare the test or build commands you approve. Explore refactoring approaches, investigate bug fixes and compare implementations without replacing the working files in your original checkout. No AI account, API key, telemetry or cloud backend is required.
Quick start · Features · Installation · FAQ · Documentation What is ParallelEarth?ParallelEarth organizes parallel development around three concepts:
For example, create an experiment for a slow checkout calculation. Run its existing tests on the baseline, try another implementation in an alternative Earth, then compare command results and inspect the code changes. A successful command means it returned zero. It does not prove application correctness or establish that an implementation is faster; performance claims need appropriate benchmarks. When to use parallel code experiments
Earths can contain projects in different languages because the working-directory mechanism uses Git. Built-in check discovery currently targets npm scripts and Node test files; other language-specific test runners are not automatically integrated. Git worktree and code comparison features
Reports use the latest check per Earth; JSON retains up to 50 runs per Earth. Individual assertions remain in command output rather than normalized test-result records. Mismatched check fingerprints are inconclusive. InstallationCurrent development build: install from VSIX
There is no live Marketplace installation link yet. Publication is planned for the Visual Studio Marketplace and Open VSX after release validation. Requirements and editor compatibility
Quick start: create your first code experiment
No project or experiment is created automatically. The Active Experiment view stays empty until you create or resume an experiment. Uncommitted changes, untracked files and ignored files in the source checkout are excluded from the committed baseline. Dependencies are not installed automatically. Duplicating an Earth starts from its original committed baseline and does not copy its edits. Project history and deletionPrevious projects are grouped in Project History. Home provides search, sorting and pagination so the list stays manageable as your projects grow. Resume an experiment from history or close the active experiment without deleting it. Delete Experiment offers two confirmed actions:
The original source repository is not a deletion target. Individual baseline deletion is refused; deleting an entire experiment can remove its clean baseline together with its alternatives. Interrupted creation attempts are excluded from normal history and remain available through the deletion picker for cleanup. Frequently asked questionsHow is ParallelEarth different from switching Git branches?Switching branches changes the checkout in a working directory. Git worktrees provide additional working directories. ParallelEarth adds named experiments, a baseline, approved checks, history and comparison reports around detached worktrees. Can I compare two implementations side by side?Yes. Create alternative Earths from the same experiment, open their working directories, run matching checks and inspect the differences. Comparison quality depends on the checks you choose. Does ParallelEarth merge an experiment into my main project?No automatic merge or patch transfer back to the source checkout is performed. Review the alternative's changes and use your normal Git workflow to bring the chosen changes back. Can I use ParallelEarth with AI coding tools?You can edit an Earth using tools available in its editor window. ParallelEarth does not generate code or require an AI provider. Git worktrees separate checkout state; they do not prevent a tool or command from accessing other files on your machine. Does it upload my source code?ParallelEarth does not upload source code or include telemetry or a cloud backend. Commands and tools you choose to run can have their own network behaviour. Is an Earth a secure sandbox?No. An Earth is a Git worktree, not a container or security boundary. Approved scripts can access your machine, credentials and network. Use trusted projects and commands. Does installing it install my project's dependencies?No. Install dependencies deliberately in the appropriate working directory when your project needs them. Security and limitationsWorkspace Trust and per-command approval apply to execution. Git hooks and external diff/textconv are disabled by extension Git operations, but repository checkout filters remain a trust risk. The runner includes cancellation, timeouts, bounded logs and concurrency controls; Windows process-tree cancellation remains a release-validation item. A reduced execution environment does not prevent access to credentials on disk. Logs and reports may contain sensitive information. The home Webview uses a restrictive nonce CSP, local asset roots, escaped project data and a validated message allowlist. No automatic dependency installation, cleanup, merge, reset or stash is performed. Container isolation, AI generation, normalized test results and static import blast-radius estimates are outside the current release scope. See the security model and experiment isolation guide. DevelopmentDevelopment requires Node.js 22.17 or later, npm, Git and VS Code 1.100 or later.
Press F5 to launch an Extension Development Host with an explicit empty ParallelEarth workspace. Development startup does not seed experiments or open a demo project. Core tests use Node's built-in test runner and no runtime package dependencies. The build can reuse globally installed TypeScript when local installation is unavailable; semantic typechecking runs separately. The current offline VSIX packager uses an explicit file allowlist. A reviewed dependency lockfile, official vsce packaging validation, clean-profile installation and the remaining release gates are required before publication. The configured publisher ID is not proof of registry ownership. Optional booking comparison demoRun The fixture demonstrates passing baseline/Earth A checks, an intentionally failing duplicate-booking calculation in Earth B, and an unexecuted Earth C. JSON/Markdown reports are written to Documentation
LicenseParallelEarth is available under the MIT License. |