Prime Build c82f24638d Apply persistent rules when processes start (#21)
Apply persistent rules when processes start

Wire persistent process rules into runtime process discovery so existing enabled rules can apply automatically while ThreadPilot is running.

- Add PersistentRuleAutoApplyService for runtime rule auto-apply
- Hook auto-apply into ProcessMonitorManagerService snapshot and process-start paths
- Add ApplyPersistentRulesOnProcessStart app setting enabled by default
- Use existing PersistentRulesEngine for CpuSelection, legacy affinity, CPU priority and memory priority
- Add per-process/rule cooldown to avoid repeated apply spam
- Clear cooldown state when processes exit or disappear from snapshots
- Preserve safe protected-process and access-denied behavior without bypass claims
- Preserve cancellation semantics during shutdown/stop paths
- Add tests for matching rules, disabled/no-match cases, cooldown, retry, PID reuse, failures, feature flag and monitor integration

No Windows Service, registry/IFEO persistence, installer changes, rules editor, version bump or tag changes.
2026-05-22 12:29:36 +02:00
2026-05-16 23:16:10 +02:00
2026-05-09 23:32:53 +02:00
2026-05-17 01:59:30 +02:00
2026-05-09 23:32:53 +02:00
2026-05-14 14:04:59 +02:00
2026-05-09 23:32:53 +02:00
2026-05-17 01:59:30 +02:00

ThreadPilot ✈️

A free and open-source Windows process and power plan manager for deterministic performance workflows.

Build Release winget Windows .NET License Issues Discussions

Install • Features • Screenshots • Build • Support

cover

What is ThreadPilot?

ThreadPilot is a modern Windows desktop application for users who want predictable control over process behavior, CPU affinity, priority, power plans, and rule-driven performance workflows.

It is designed as an open-source alternative for power users who need Process Lasso-style capabilities, automation support, system tray controls, and a Windows 11-first experience.

✨ Features

  • Live process management with refresh, filtering, and high-volume process handling.
  • CPU affinity and priority controls with topology-aware logic.
  • I/O and scheduler-related tuning utilities.
  • Rule-based automation for power plan switching when selected processes start or stop.
  • Conditional profiles, tray controls, Live Metrics, and dashboard views.
  • Administrator-aware Windows desktop workflow.
  • CI-backed release artifacts and package-manager distribution.
  • Windows 11 native visual refresh with neutral Fluent surfaces and refined card-based layouts.

📦 Install

Install with WinGet

ThreadPilot is available on WinGet as PrimeBuild.ThreadPilot.

From Command Prompt or PowerShell:

winget install --id PrimeBuild.ThreadPilot -e

To refresh your local WinGet source first:

winget source update
winget search ThreadPilot

Download from GitHub Releases

Download Latest Release Portable ZIP Assets

Package Recommended use
ThreadPilot_v<version>_Setup.exe Standard Windows installer for most users
ThreadPilot_v<version>_singlefile_win-x64.zip Portable/no-install deployment

Optional checksum verification:

Get-FileHash .\ThreadPilot_v<version>_Setup.exe -Algorithm SHA256
Get-FileHash .\ThreadPilot_v<version>_singlefile_win-x64.zip -Algorithm SHA256

Compare the result with SHA256SUMS.txt from the same release.

🖼️ Screenshots

banner

⚙️ Requirements

  • Windows 11, build 22000 or newer.
  • Administrator privileges to launch and manage system-level process settings.
  • .NET 8 SDK only if you want to build from source.

🚀 Usage Notes

ThreadPilot uses an administrator-required manifest and requests elevation at startup. If UAC elevation is declined, the application exits instead of continuing in a limited mode.

Useful startup arguments:

--start-minimized
--autostart
--test
--smoke-test

In Power Plans > Custom Power Plans, use Add .pow File to import custom power plans directly from the app.

🧱 Build from Source

git clone https://github.com/PrimeBuild-pc/ThreadPilot.git
cd ThreadPilot
dotnet restore ThreadPilot_1.sln
dotnet build ThreadPilot_1.sln --configuration Release
dotnet run --project ThreadPilot.csproj --configuration Release

Run integrated runtime tests:

dotnet run --project ThreadPilot.csproj --configuration Release -- --test

Publish a self-contained Windows build:

dotnet publish ThreadPilot.csproj --configuration Release --runtime win-x64 --self-contained true

Build release artifacts with the project script:

./build/build-release.ps1

🔐 Quality and Security

  • CI validates build, formatting, analyzers, vulnerability checks, and secret scanning.
  • Security disclosures are handled through private GitHub advisories. See docs/SECURITY.md.
  • Change history is tracked in docs/CHANGELOG.md.
  • Coverage focuses on business/application code and excludes generated build artifacts.

🧭 Project Documentation

🗺️ Roadmap

  • Expand unit and integration coverage for core services.
  • Continue async reliability refactoring for long-running monitoring paths.
  • Improve accessibility and localization readiness across major views.
  • Formalize release signing and distribution hardening.

🤝 Contributing

Contributions are welcome. Before opening a pull request, please read docs/CONTRIBUTING.md and docs/CODE_OF_CONDUCT.md.

For bugs, feature requests, or packaging issues, open a GitHub issue with reproduction steps and your Windows version.

📄 License

ThreadPilot is licensed under the GNU Affero General Public License v3.0. See LICENSE.

💬 Support the Project

Built with care for Windows power users.

GitHub Issues GitHub Discussions PayPal

If ThreadPilot is useful to you, consider starring the repository, opening thoughtful issues, sharing feedback, or supporting development with a small donation.

S
Description
✈️ Free, open-source Process Lasso alternative for Windows 11: CPU Sets, priorities and saved rules for Intel hybrid and AMD X3D CPUs. No limits, no nags.
Readme AGPL-3.0 182 MiB
Languages
C# 98.2%
PowerShell 1.3%
Inno Setup 0.3%
Batchfile 0.2%