> runthat
C# scripts that run the same everywhere.
Pin your packages, lock them, and run. The script that works on your machine runs the same way on a teammate's laptop, in CI and on the server.
Free. Both include the editor and the CLI. Checksums and the CLI on its own ·All releases
Write it, lock it, run it
1 A script: report.cs
#:package Humanizer.Core@2.14.1 using Humanizer; var orders = new[] { new Order(1042, "Contoso", 1250.00m, DateTime.Today.AddDays(-3)), new Order(1057, "Fabrikam", 740.50m, DateTime.Today.AddDays(-12)), new Order(1063, "Northwind", 2980.00m, DateTime.Today.AddDays(-40)), }; orders.Where(o => o.Total > 500) .Select(o => new { o.Id, o.Customer, o.Total, Placed = (DateTime.Now - o.Placed).Humanize() + " ago" }) .Dump("Big orders"); record Order(int Id, string Customer, decimal Total, DateTime Placed);
2 Its lock: report.lock.json
> runthat lock report.cs
Locked report.lock.json (net10.0).{
"version": 1,
"dependencies": {
"net10.0": {
"Humanizer.Core": {
"type": "Direct",
"resolved": "2.14.1",
"contentHash": "lQKvtaTDOXnoVJ20ibTuSIOf2i0uO0MPbDhd..."
}
}
}
}Commit both files. The lock records the whole package graph.
3 A run, on any machine
> runthat run --frozen report.cs
── Big orders ──
Id Customer Total Placed
---- --------- ------- -----------
1042 Contoso 1250.00 3 days ago
1057 Fabrikam 740.50 1 week ago
1063 Northwind 2980.00 5 weeks ago
(3 rows)--frozen uses the lock exactly and never changes it.
What it does
Pinned packages
Every package has an exact version, like #:package Polly@7.2.4. A script without one is refused, so nothing changes by surprise.
Lock files
The lock lists every package, indirect ones too, with content hashes. Another machine restores exactly that, or stops and says what is missing.
Plain .cs files
Scripts use the .NET 10 file-based app format. They also run with dotnet run and turn into full projects when they grow.
A desktop editor
Edit, run and debug with breakpoints. Search packages, see the lock, export and publish, all from one window.
Fast database access
Named connections stay out of your scripts. Open a pooled connection per task and run queries in parallel. Plain ADO.NET, Dapper or EF Core.
AI agent support
A built-in MCP server lets agents read, lock, run and debug your scripts, inside the folders you choose, with secrets hidden.
Ship it
runthat export writes one file with the lock inside. runthat publish builds a folder that runs on a server with no package feeds.
Bring your queries
Import your existing queries. runthat turns them into scripts, pins the package versions you already use and locks them.
Free on your own machine
The CLI, the editor, the debugger, the database tools and AI agent support are free. Team and Runner are coming later.