Bash tool supports running commands in the background, allowing you to start servers, watchers, or long-running tasks without blocking the chat.
Running Background Processes
In-Chat Commands
Use Cases
- Dev servers: Start
npm run devorbun run devfor live preview - File watchers: Run
nodemonor similar for auto-restart - Build processes: Long compilations that would timeout
- Databases: Start local database servers
Best Practices
- Use
background: truefor processes that run indefinitely - Don’t background one-shot commands (build, install, etc.) - use longer timeout instead
- Check logs with
/bg logs <pid>to debug issues - Kill processes with
/bg kill <pid>when no longer needed
