background-terminals

Runs and manages long-lived shell commands in background terminals during agent sessions.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/RavitejaKarra24/dotfiles --skill background-terminals-ravitejakarra24
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: background-terminals
Source: https://github.com/RavitejaKarra24/dotfiles/tree/main/pi/.pi/agent/skills/background-terminals
Command: npx skills add https://github.com/RavitejaKarra24/dotfiles --skill background-terminals-ravitejakarra24

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Long-running commands like dev servers, watchers, and streaming builds block the agent when run in a regular shell. This Skill lets those processes run in background terminals so the agent can keep working while they execute. ## Core Features & Use Cases - Start background processes: Launch long-lived commands with bg_start, providing a command, a recognizable title, and an optional working directory. - Inspect and inventory: Check current output with bg_status and list all tracked terminals with bg_list. - Stop stuck processes: Terminate unneeded or hung processes with bg_kill, with termination continuing even if the tool wait is aborted. - Use Case: Start a Vite dev server in the background, continue editing code, then check its output later or kill it when done. Users can also open /ps to inspect live output interactively. ## Quick Start Start the dev server in a background terminal titled 'web-dev' and keep working while it runs.

Frequently Asked Questions about background-terminals

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a dev server in the background while an AI agent works?

Use bg_start with the shell command, a short recognizable title, and the project working directory. The server runs in a background terminal and sends one completion message when it exits, so the agent can continue other tasks.

How do I check the output of a background terminal process?

Use bg_status to view the current output or status of a specific terminal, or bg_list to inventory all tracked terminals. Users can also open /ps to inspect live output and kill terminals interactively.

Can background terminals run interactive commands that need input?

No. Background commands receive no stdin, so they must never be used for interactive prompts. Use them only for non-interactive long-running processes like servers, watchers, and builds.

How do I stop a stuck background process?

Use bg_kill to terminate a process that is no longer needed or is stuck. Termination continues even if the tool wait is aborted, ensuring the process is reliably stopped.

What happens to background terminals when the session ends?

Background terminals are session-scoped and are stopped automatically during shutdown or reload. Full output is captured to spill files, while tool and completion output shows only a concise tail.