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. Each includes the editor and the CLI. Checksums and the CLI on its own, or all releases.
report.cs
ResultsConsoleProblemsRunning…Finished in 1.2 s, exit code 0
Big orders
| Id | Customer | Total | Placed |
|---|---|---|---|
| 1042 | Contoso | 1,250.00 | 3 days ago |
| 1057 | Fabrikam | 740.50 | 1 week ago |
| 1063 | Northwind | 2,980.00 | 5 weeks ago |
Write it, lock it, run it
report.cs
A plain .cs file. Every package is pinned to an exact version.
#:package [email protected] 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);
report.lock.json
The lock records the whole package graph with content hashes. Commit it next to the script.
> 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..."
}
}
}
}terminal
On your laptop, a teammate’s, in CI or on a server. --frozen uses the lock exactly.
> 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)What it does
Same everywhere
- Pinned packages
- Every package has an exact version, like
#:package [email protected]. A script without one is refused. - Lock files
- Indirect packages too, with content hashes. Another machine restores exactly that, or stops and says what’s missing.
- Plain .cs files
- The .NET 10 file-based app format. Scripts also run with
dotnet runand grow into full projects. - Ship it
runthat exportwrites one file with the lock inside.runthat publishbuilds a folder that needs no package feeds.
Fast to work in
- A desktop editor
- Edit, run and debug with breakpoints. Search packages, see the lock, export and publish from one window.
- Fast database access
- Named connections stay out of scripts. A pooled connection per task, queries in parallel. ADO.NET, Dapper or EF Core.
- AI agent support
- A built-in MCP server lets agents read, lock, run and debug your scripts, only in the folders you choose, with secrets hidden.
- Bring your queries
- Import your existing queries. runthat turns them into scripts and pins the package versions you already use.
Free on your own machine
The CLI, the editor, the debugger, the database tools and AI agent support. Team and Runner come later.