🙏 Inspired by tobi/try · Built for Windows & PowerShell

tri

Instant dated scratchpads & fuzzy switcher for Windows PowerShell.

Huge thanks to Tobias Lütke's tobi/try for the original idea — giving every quick prototype or PR review a dated home (YYYY-MM-DD-name) directly inside Windows PowerShell 5.1 & 7+.

✦ Zero $PROFILE Edits ✦ No Ruby ✦ No WSL ✦ 13ms for 5,000 Dirs ✦ Optimal DP Fuzzy Search ✦ Worktree Safe ✦ PowerShell 5.1 & 7+ ✦ 100% Dual-Shell Pass Rate ✦ CJK & Emoji Aligned
LIVE BROWSER SIMULATOR

Play with tri right here

Running a faithful JS port of TriV2.Engine.Rank — click the terminal to take control and start typing anytime.

>_ Windows PowerShell — tri
10-SECOND INSTALL

Zero $PROFILE edits. Zero admin rights.

Installs cleanly into your user PowerShell Modules folder and precompiles runtime-specific C# engine DLLs automatically.

01 CLONE

Clone the repository

Grab the lightweight source from GitHub — pure PowerShell + modular C# engine.

git clone https://github.com/Scrates1/tri.git
02 INSTALL & PRECOMPILE

Run .\install.ps1

Auto-precompiles native DLLs for both PowerShell 5.1 & PowerShell 7+. Never touches $PROFILE or PATH.

cd tri; .\install.ps1
PS 5.1 Restricted? Run with bypass: powershell -ExecutionPolicy Bypass -File .\install.ps1
03 LAUNCH

Run tri anywhere

Open the fuzzy picker, spin up a dated experiment, or review a GitHub PR in one command.

tri new api gateway bench

⚡ Hardcore Mode

When three letters is still too many — optional one-liner for your own $PROFILE (tri itself never edits it).

Set-Alias t tri
VERIFIED v1.3.1 BENCHMARKS

Built for raw Windows speed

Real numbers measured on Windows with precompiled runtime DLLs installed via .\install.ps1.

117 ms
PS 5.1 Cold Start
Precompiled netfx4 DLL (down from 203 ms)
184 ms
PS 7.6 Cold Start
Down from 838 ms — 4.5× faster cold load
13 ms
5,000 Real Dirs
End-to-end LoadItems + DP Rank (3–4 ms pure Rank)
100%
Dual-Shell Pass Rate
Automated dual-shell test pass rate (PS 5.1 & 7)
0
Dependencies
No Ruby, no WSL, no .NET SDK, no $PROFILE edits
PowerShell 7.6 Cold Start (Lower is better) 4.5× faster
v1.3.1 Precompiled DLL184 ms
Runtime Add-Type (Before)838 ms
Windows PowerShell 5.1 Cold Start 1.7× faster
v1.3.1 Precompiled netfx4 DLL117 ms
Runtime Add-Type (Before)203 ms
ADAPTED FOR WINDOWS

Thoughtful Windows & PowerShell adaptations

Practical Windows & PowerShell adaptations — native module loading, junction-safe cleanup, and crisp CJK alignment.

00

Native Module · Zero $PROFILE Edits

Auto-discovered via PSModulePath and switches directories in-process with Set-Location -LiteralPath — never edits $PROFILE, PATH, or ExecutionPolicy.

C#

Precompiled C# Engine

Runtime-tagged DLLs (netfx4 & netcore) hashed by SHA-256 deliver 117–184 ms cold starts and ~0 ms warm calls inside the same terminal session.

DP

Optimal DP Fuzzy Match

Non-greedy Dynamic Programming scores full names and date-stripped slugs, rewarding word boundaries, consecutive runs, and recency — with East Asian wide-char alignment.

⎇

Full Git Worktree Lifecycle

Spin up detached worktrees with tri ., check out GitHub PR URLs directly, move/rename with git worktree repair, and auto-prune on delete.

🛡

Junction-Safe Delete & Cross-Volume Move

Iterative bottom-up deletion unlinks nested symlinks/junctions without touching targets. Cross-volume moves copy safely with rollback and -LiteralPath everywhere.

|>

Native PowerShell Object Pipeline

tri list streams typed [pscustomobject] items (Name, Path, LastUsed, Score) alongside idiomatic cmdlets, native Tab completion, and Remove-TriProject -WhatIf.