ParallelEarth — Git Worktree Experiments for VS CodeExplore alternate futures. Verify before you change. Try alternative implementations in separate Git worktrees, run checks you approve, and compare their results against a committed baseline—all organised as one experiment inside VS Code. Install from Visual Studio Marketplace · Install from Open VSX · Report an issue ParallelEarth is available on both registries. It runs locally and requires no AI account, API key or cloud backend. The extension includes no telemetry; commands and tools you choose to run can have their own network behaviour. Quick start · Why ParallelEarth? · Features · Installation · FAQ · Development What is ParallelEarth?When you have two ways to fix a bug or refactor a function, you need more than separate copies of the code. You need a way to keep track of the question, the approaches and what happened when you checked them. ParallelEarth brings those pieces together:
Your original working files stay in place while you edit alternatives in their own directories and editor windows. Why ParallelEarth instead of Git branches?Git branches and worktrees already support parallel development. ParallelEarth adds an experiment workflow around those Git capabilities.
A branch is often enough for a normal feature or bug fix. ParallelEarth is useful when you want to evaluate competing implementations before deciding what to keep. Use it to compare refactoring approaches, investigate bug fixes, or check alternative AI-generated implementations. It does not generate code, automatically choose a winner or replace code review. InstallationVS Code
You can also install through the Visual Studio Marketplace listing, or use the VS Code CLI:
Open VSX and compatible editorsParallelEarth is also available on Open VSX. In an editor configured to use Open VSX, search for ParallelEarth or shubhammaji1.parallel-earth. Registry availability does not guarantee compatibility with every editor. Cursor, VSCodium and other VS Code-based editors must support the declared VS Code APIs and local extension execution; editor-specific clean-install validation remains a separate check. This VSIX is not a JetBrains plugin. Install a VSIX manuallyDownload a VSIX from a registry listing, then use Extensions → … → Install from VSIX…. Reload if prompted and run ParallelEarth: Open Home. Requirements
Browser-only and virtual workspaces are unsupported. Development requires Node.js 22.17 or later. Publication does not imply that every operating system and editor combination has been verified. Quick start
No demo project or experiment is created automatically. History contains the projects you create or resume.
Example: compare a booking reconciliation fixThe repository includes a booking reconciliation fixture with a baseline and three alternatives. Its expected check outcomes are:
Run the fixture explicitly from a development checkout:
The demo creates a separate fixture repository and real Git worktrees. It writes reports to A passing command is evidence for that command, not proof of overall correctness. Single-run durations are not performance benchmarks. Comparison depends on matching checks and compatible recorded fingerprints; mismatches are inconclusive. Rerun checks after editing an implementation. Features
Reports summarise the latest check per Earth. JSON includes retained run history, capped at 50 runs per Earth. Individual test assertions remain in command output rather than normalised assertion records. Git worktrees can hold projects in many languages; built-in check discovery currently focuses on npm scripts and Node test files. Project history and cleanupResume previous experiments from Project History. Home provides search, sorting and pagination as the project list grows.
The original source repository is not a deletion target. Individual baseline deletion is refused; deleting an entire experiment can remove its eligible clean baseline and alternatives. FAQDoes ParallelEarth merge changes back into my project?Use Bring Changes Back on an alternative Earth to preview its files and create a new named branch in the source repository. Existing branches are never overwritten; the source working files, index and checked-out branch stay in place. Review and merge or cherry-pick that branch using your normal Git workflow. Keep the Earth until you have verified that your chosen changes are preserved. Can I use it with AI coding tools?You can use editing tools available in an Earth's editor window. ParallelEarth does not depend on an AI provider. Check the outputs using your project's own tests, builds or other relevant checks. Is an Earth a security sandbox?An Earth is a Git worktree, not a container or security boundary. Approved commands can access your machine, files, credentials and network. Use trusted projects and commands. Does it upload my source code?The extension has no source-upload backend or telemetry. Scripts, dependencies and external tools that you run may communicate over the network independently. Why are my uncommitted changes missing from an Earth?Earths are created from the selected committed revision. Commit the intended starting code before creating the experiment; local edits and ignored files are not automatically included. Why is a comparison inconclusive?The alternative needs a matching baseline command with a compatible recorded fingerprint. Different commands or environments cannot establish a like-for-like comparison. Fingerprints do not verify all installed dependencies or external services. Execution and evidence limitsWorkspace Trust and explicit command approval apply to execution. The runner provides timeouts, cancellation controls, bounded logs and concurrency limits. Git hooks and external diff/textconv are disabled for extension Git operations; repository checkout filters remain a trust consideration. Logs and exported reports may contain sensitive project information. Review them before sharing. Container isolation, automatic AI generation, automatic merging and normalised assertion-level verification are outside the current scope. DevelopmentRequirements: Node.js 22.17+, npm, Git and VS Code 1.100+.
Press F5 to launch an Extension Development Host with an explicit empty workspace. Startup does not create experiments or open the fixture project. Additional commands:
For official VSIX packaging, create the output directory if needed and run:
Use the version declared in Documentation and feedback
Found a bug or a confusing step? Open an issue with your editor/OS versions, reproduction steps and relevant redacted output. If you have tried ParallelEarth, an honest registry review helps other developers understand whether it fits their workflow. LicenseParallelEarth is available under the MIT License. New in 0.2.0: setup and repeatable evidenceRight-click an Earth for Copy Earth Path, Reveal Earth Folder or Set Up Earth. Fresh worktrees have no installed dependencies. Review and approve Use Repeat Checks Against Baseline on an experiment, choose alternatives, a command and 2–10 runs per Earth. Every completed run is retained (up to 50 per Earth). Incomplete or changed series are inconclusive; mixed pass/fail outcomes are labelled UNSTABLE. This identifies observed variation, not its cause. A later single check replaces the comparison summary; JSON preserves retained history. Setup and checks use one shared queue across windows using the same local storage root. Progress shows Queued, Running or Cancelled. Cancellation prevents queued commands from starting. Other tools, other roots, remote machines and test-runner workers are outside this queue. Elapsed times are not benchmarks. The old concurrency setting is deprecated and ignored. Reports include directory paths, setup status, commands, revisions, fingerprints, repeat outcomes and queue scope. Review paths and logs before sharing. Interrupted execution queueAn interrupted host may leave New in 0.3.0: preserve alternatives and keep evidence current
Freshness hashes include tracked and non-ignored untracked files. Ignored files, installed dependencies and external service state are outside this check. Hashes do not prove that files stayed unchanged at every instant during a command. Symlinks and submodules are refused by snapshot/freshness inspection. Git clean/checkout filters may run during snapshot/copy operations in a trusted repository. Review new files for secrets before branch creation. A branch snapshot contains the working file state, not an independent copy of staged-only content. Snapshot objects can remain in Git even if branch creation is cancelled; normal Git maintenance manages unreachable objects. New in 0.5.0
See CLI, CI recipes, app previews and environment details for setup, exit codes, a GitHub Actions example and evidence limits. New in 0.4.0Open ParallelEarth: Comparison Dashboard to compare baseline and alternative Earths, including changed-file counts, setup, check status and evidence freshness. Select an Earth to search or filter individual results, inspect failure output, and review acceptance criteria. For individual results, add an npm script using a Jest-compatible JSON reporter, for example:
Jest users can use For noisy scripts, configure the reporter output file using the Use ParallelEarth: Manage Acceptance Criteria to add a requirement, select a recorded check command, and map its tests. Requirements may be saved before running tests and remain UNVERIFIED until mapped. Every mapped test must pass in a complete, current check series for VERIFIED. Missing/skipped tests, failed commands, unknown freshness or incomplete repeats prevent verification. Failed tests show FAILED, varying mapped results show UNSTABLE, and changed code shows STALE. Criteria describe evidence from the tests you select; passing tests do not prove that the requirement is fully covered. Run the same check in the baseline and alternatives to compare individual regressions, recoveries, added/missing tests and skipped tests. Refresh evidence after editing files. JSON and Markdown exports retain test and criterion results. |