PathPilot is a Windows download organizer and safe installer-suggestion governance tool. It watches only the source directories you configure, moves stable files through a managed Incoming directory, and classifies documents, code, archives, media, and installers.
For .exe and .msi files, PathPilot creates conservative, reviewable suggestions. It does not trust an installer because of its file name, detected family, or command preview. Version 0.2.2 is an alpha/prototype intended for careful evaluation with inert fixtures before real-world use.
Download folders quickly become a mixture of documents, source files, archives, media, and installers. PathPilot provides one observable flow for moving stable files into a managed tree while keeping installer launch behind an explicit security boundary.
PathPilot is most useful for Windows users who want:
- repeatable classification of newly downloaded files;
- an auditable pending queue for installer suggestions;
- the same safety checks in the CLI and optional GUI;
- isolated configuration and behavioral testing for development or CI.
| Capability | Current behavior |
|---|---|
| File organization | Stable files pass through Incoming before final classification |
| Installer handling | .exe and .msi files move to _IncomingInstallers and create suggestions |
| Execution | Structured argv with shell=False, after containment validation |
| State | Atomic JSON writes with finite-time process locks |
| Diagnostics | doctor is read-only; test uses fully isolated temporary state |
- Windows 11
- Python 3.12 or 3.13
pipxfor normal installation
PathPilot is Windows-first. Equivalent watcher behavior on Linux or macOS is not currently claimed.
Install the CLI-only package when you do not need the Qt interface. This does not install PySide6:
python -m pip install --user pipx
python -m pipx install git+https://github.com/forgottenlab/pathpilot.gitInstall the GUI extra when you need pathpilot ui:
python -m pipx install "pathpilot[gui] @ git+https://github.com/forgottenlab/pathpilot.git"From a local checkout:
python -m pipx install .
python -m pipx install ".[gui]"The installation script installs the CLI and GUI by default. Use -CliOnly for the core CLI:
.\scripts\install.ps1
.\scripts\install.ps1 -CliOnly
.\scripts\update.ps1
.\scripts\uninstall.ps1Uninstall removes only the pipx application by default. It removes PathPilot user state only when -RemoveUserConfig is explicitly supplied and confirmed. It never deletes the managed Downloads or Apps trees.
Discover a managed root and source, or override either path:
pathpilot setup plan
pathpilot setup plan --json
pathpilot setup plan --root 'D:\PathPilot' --source 'C:\Users\Alice\Downloads' --jsonExplicit paths take precedence over saved settings and automatic discovery. If there is no saved root, PathPilot tries readable non-system fixed drives in descending free-space order, then the user profile's PathPilot directory. The default source is the actual Windows Downloads Known Folder, including redirected locations. If discovery fails or several external sources are configured, pass --source to preview one.
The preview reads a settings snapshot and checks the selected paths. It creates no files or directories and leaves damaged settings in place. Create and reuse actions still require verification at apply time. JSON schema version 1 includes directory actions, blockers, and the origin and reason for each selected path. A blocked plan exits with code 1.
Check the active configuration and learn the command surface:
pathpilot status
pathpilot doctor
pathpilot test
pathpilot commandsdoctorperforms read-only diagnostics. It does not create or rewrite configuration.testruns an isolated behavior check with a temporaryPATHPILOT_HOMEand managed root.watchcontinuously monitors configured sources until you stop it.uistarts the optional GUI. In a CLI-only installation it exits nonzero with a clearpathpilot[gui]hint and no Python traceback.
Before starting the watcher, review the active root and sources:
pathpilot config show
pathpilot sources list
pathpilot watch| Command | Purpose |
|---|---|
pathpilot |
Show the command guide |
pathpilot guide |
Show the detailed command guide |
pathpilot commands |
Show the same maintained command guide |
pathpilot setup plan |
Preview the managed layout, with optional --root, --source, and --json |
pathpilot doctor |
Run read-only diagnostics |
pathpilot test |
Run an isolated behavior test |
pathpilot status |
Show current configuration and queue status |
pathpilot watch |
Continuously watch configured source directories |
pathpilot ui |
Start the optional GUI |
pathpilot version, pathpilot -v, pathpilot --version |
Show the version |
pathpilot config show |
Show configuration |
pathpilot config set-root <path> |
Set the managed root |
pathpilot config reset-root |
Restore automatic root selection |
pathpilot sources list |
List source directories |
pathpilot sources add <path> |
Add a source directory |
pathpilot sources remove <path> |
Remove a source directory |
pathpilot installs list [--all] |
List installer suggestions |
pathpilot installs detail <id> |
Show suggestion details |
pathpilot installs run <id> --force |
Explicitly confirm an eligible launch |
pathpilot installs skip <id> |
Skip a pending suggestion |
pathpilot installs open <id> |
Open the installer's containing directory |
Invalid input and safety rejection return nonzero exit codes. --force confirms launch intent only; it cannot bypass installer containment, Apps target containment, legacy-record rejection, or structured-argument validation.
Maintained CLI output supports zh, en, and Chinese-first bilingual bi modes:
pathpilot --lang zh status
pathpilot --lang en doctor
pathpilot --lang bi installs list --allSome framework-generated Typer help text may remain in English.
Default user state is stored under:
~/.pathpilot/
├─ config/
│ ├─ settings.json
│ ├─ rules.json
│ └─ installer_rules.json
└─ data/
├─ pending_installs.json
└─ logs/pathpilot.log
Set PATHPILOT_HOME to isolate configuration, data, logs, the pending queue, and default runtime paths. Paths are resolved dynamically rather than permanently cached when a module is imported.
Development and tests must use a temporary value:
$env:PATHPILOT_HOME = Join-Path $env:TEMP "pathpilot-dev"
pathpilot doctorPathPilot treats classification as a suggestion, not a trust decision:
- every installer suggestion defaults to
mode=suggestandstatus=pending; - file names and installer-family detection influence recommendations only;
previewis display-only and is never executed as a shell command;legacy_unsafecommand-only records cannot be executed;- the installer must remain under managed
_IncomingInstallers; - the target must remain under the managed
Appsdirectory; --forcecannot bypass any containment or record validation;- PathPilot does not provide Authenticode publisher/signature trust decisions;
- PathPilot does not track installation completion.
| Status | Meaning |
|---|---|
pending |
Awaiting explicit user action |
claimed |
One caller has reserved the record. Process creation has yet to begin. |
launching |
The caller is about to create the process or is recording the result. After an interruption, the process may already have started. |
launch_unknown |
The caller could not determine whether the process started. |
skipped |
Skipped by the user |
blocked |
Rejected by a safety check |
launch_failed |
The process could not be started |
launched |
The process started only; this does not mean installed, completed, or successful |
legacy_unsafe |
Legacy command-only record; never executable |
Only a pending record can be claimed. An interrupted claim remains in the queue. PathPilot does not retry the launch automatically. Inspect the recorded state with pathpilot installs detail <id>.
See SECURITY.md for private vulnerability reporting and the complete current boundary.
Use a dedicated virtual environment or Conda environment. Install development and GUI dependencies through extras:
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -e ".[all]"
$env:QT_QPA_PLATFORM = "offscreen"
$env:PATHPILOT_HOME = Join-Path $env:TEMP "pathpilot-dev"
python -m pytest -q -p no:cacheprovider
python -m build
.\scripts\full_check.ps1Windows CI runs core tests on Python 3.12 and 3.13, checks PowerShell syntax, builds wheel and sdist artifacts, installs a fresh CLI-only wheel, and runs a separate GUI extra offscreen smoke. Tests use temporary state and inert fixtures; they never run real installers.
Release artifacts are checked to include both README.md and README.zh-CN.md while excluding .ai, tests, runtime data, logs, backups, and user configuration.
Future work may improve watcher retries, cross-volume behavior, and GUI interaction coverage. Authenticode evaluation and installation-completion tracking are deliberately outside the current 0.2.2 boundary and are not implemented claims.
- Windows-first; Linux and macOS watcher parity is not claimed.
- Cross-volume moves and every interactive GUI path are not fully automated in tests.
- There is no Authenticode trust decision.
- There is no installation-completion tracking.
- Classification, suggestion, or
launchedstatus never proves that an installer is safe or successfully installed.
- CONTRIBUTING.md explains the development and pull-request gates.
- SECURITY.md explains private vulnerability reporting and security boundaries.
- CHANGELOG.md records release changes.
PathPilot is released under the MIT License.
Copyright (c) 2026 forgottenlab.