Meet Cozy - my terminal environment for working with AI agents inside isolated `sbx` sandboxes (Docker's CLI for running Linux VMs on macOS and Windows). In this first video of the series, I show Cozy in action with one everyday topic: copying commands and their output from the terminal - without touching the mouse. Full notes link in the description below.
📖 Full notes: https://github.com/nushell-prophet/nu...
⏱ Chapters:
0:00 What are cozy and sbx
0:58 Cloning the repo and running cozy
1:22 The example command
2:01 The copy-out command
3:30 pbcopy inside the Linux sandbox
4:30 Ctrl+Alt+C — copy the command line
5:17 Capturing the pane into Helix
6:24 Outro
🔧 What You'll Learn:
Copying a command with its output in paste-ready form using the `example` command
Copying commands with their output from Zellij scrollback using the `copy-out` command
Picking which commands to copy via Nushell completions
How `pbcopy` works inside a Linux sandbox through an OSC 52 escape sequence
Copying the current command line with a Ctrl+Alt+C keybinding
Capturing the visible screen or full scrollback into Helix in a floating Zellij pane
📝 Prerequisites:
Docker Desktop with the `sbx` CLI (macOS or Windows)
Curiosity about terminal environments - everything else ships inside Cozy!
💡 Why Cozy?
The terminal is becoming the main place where humans and AI agents work together. Cozy packs Nushell, Zellij, Helix, and a set of custom modules into one sandbox, so you get a convenient, isolated environment in a single command - and everything you copy inside it lands in your host clipboard.
👍 Like this video if you found it helpful!
🔔 Subscribe for more Nushell tutorials and terminal productivity tips!
💬 Questions? Drop them in the comments below!
#nushell #terminal #docker #ai #agents #productivity #zellij #helix