Show HN: Lab – A CLI tool for instant code experiments

github.com

3 points by lugenx 8 hours ago

I made a tool to eliminate the friction when you want to quickly test some code. Type `lab` with any extension and start coding immediately - no thinking about filenames or directories.

Key features: - Instant start: Type `lab` with any extension to open a new file - Smart organization: Files auto-named with date+letter (e.g., 250112a) - Quick access: `lab 1` opens most recent file - Auto cleanup: Files expire after 7 days (configurable) - Run anywhere: `lab -r 1 python` runs file with any command

The goal was to remove all overhead between "I want to try something" and actually writing code. Files live in ~/lab and clean themselves up - no management needed.

https://github.com/lugenx/lab

Feedback welcome!