Mains includes a built-in terminal emulator directly in the workspace. You can run shell commands, interact with your development tools, and monitor agent-executed commands — all without leaving the app.Documentation Index
Fetch the complete documentation index at: https://docs.mains.dev/llms.txt
Use this file to discover all available pages before exploring further.
How It Works
The terminal uses a pseudoterminal (PTY) emulator powered bynode-pty, providing a full interactive shell experience. On macOS, it defaults to zsh.
Each workspace can have its own terminal instance, isolated to the workspace’s working directory. The terminal supports:
- Full shell interaction — run any command your system shell supports
- Real-time output — output streams to the UI as it’s produced
- Resize support — the terminal adapts to panel size changes
- Multiple instances — open separate terminals for different workspaces
