Agent skill

Background Terminals

by openpi-dev in openpi-dev/openpi

Run and manage long-lived shell commands in background terminals.

MITAuto-check passed

Install Background Terminals

skills CLI
$ npx skills add openpi-dev/openpi --skill background-terminals -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install openpi-dev/openpi background-terminals --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/openpi-dev/openpi.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/background-terminals .claude/skills/background-terminals && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
background-terminals
GitHub stars
171
Token cost
~362 tokens
SKILL.md length
174 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Run and manage long-lived shell commands in background terminals.

  • Streaming builds
  • SKILL.md covers Start and Inspect and stop
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Other commands that should keep running while the agent continues working

What it does

Background Terminals is an agent skill from openpi-dev/openpi. Run and manage long-lived shell commands in background terminals. Use for dev servers, watchers, streaming builds, and other commands that should keep running while the agent continues working.

Its SKILL.md is about 360 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: The setup I use for pi. Changes a ton, don't recommend hard copying it, just a taste of what's possible with it. The licence is MIT.

When your agent uses it

  • Streaming builds
  • Other commands that should keep running while the agent continues working

Example prompts

  • “/background-terminals”

What it can do on your machine

Read from SKILL.md and the folder at commit 3cb2ecf. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Background Terminals loads about 362 tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 174 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~54
When it runs · the whole SKILL.md, loaded when a task matches
~362

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from openpi-dev/openpi at commit 3cb2ecf, republished under its MIT licence (© openpi-dev). 174 words, ~362 tokens.

Download SKILL.mdSave it as .claude/skills/background-terminals/SKILL.md (or your agent's skills folder).
name
background-terminals
description
Run and manage long-lived shell commands in background terminals. Use for dev servers, watchers, streaming builds, and other commands that should keep running while the agent continues working.

Background Terminals

Use bg_start for long-running commands; use regular bash for quick commands.

Start

Call bg_start with:

  • command: shell command to run
  • title: short recognizable label
  • working_dir: project directory when different from the current directory
  • timeout_seconds: optional deadline for finite work such as builds, tests, or migrations; omit for servers and watchers

Background commands receive no stdin. Never use them for interactive prompts.

After starting, continue useful work instead of polling. The terminal sends one completion message when it exits or times out.

Inspect and stop

  • Use bg_status only when current output or status is needed.
  • Use bg_list to inventory all tracked terminals.
  • Use bg_kill when a process is no longer needed or is stuck; termination continues even if the tool wait is aborted.
  • Tell the user they can open /ps to inspect live output and kill terminals interactively.

Prefer meaningful titles and avoid starting duplicate servers or watchers. Full output is captured to spill files; tool and completion output shows a concise tail. Terminals are session-scoped and are stopped during shutdown or reload.

© openpi-dev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/background-terminals of openpi-dev/openpi.

Open the folder on GitHubat commit 3cb2ecf

Compare with similar skills

Background Terminals next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Background Terminals compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Background Terminals this skillopenpi-dev/openpi171—~362Automated safety check: PassMIT
Terminal Openeraffaan-m/ECC275k—~635Automated safety check: PassMIT
Live DashboardNousResearch/hermes-agent252k—~2.1kAutomated safety check: PassMIT
Shell ScriptingRightNow-AI/openfang18k—~827Automated safety check: PassApache-2.0
Crush Shell Builtinscharmbracelet/crush29k—~790Automated safety check: PassCustom licence
Python Background Jobswshobson/agents40k—~1.8kAutomated safety check: PassMIT

Similar skills

  • Terminal Opener

    affaan-m/ECC

    Open an executable and its argument array in a visible terminal window through a reusable, shell-free launch plan with dry-run, JSON, capability detection, detached fallback, and standalone recovery…

    275k GitHub stars~635 tokensUpdated 3 days ago
    Marketing & SEOAuto-check passed
  • Live Dashboard

    NousResearch/hermes-agent

    Build self-updating dashboards from live sources. An agent skill from NousResearch/hermes-agent.

    252k GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Shell Scripting

    RightNow-AI/openfang

    Shell scripting expert for Bash, POSIX compliance, error handling, and automation

    18k GitHub stars~827 tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Crush Shell Builtins

    charmbracelet/crush

    Explains how to add a new in-process builtin command to Crush's embedded POSIX shell, so it is intercepted before reaching the OS, with context polling and exit-status rules.

    29k GitHub stars~790 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Python Background Jobs

    wshobson/agents

    Python background job patterns including task queues, workers, and event-driven architecture.

    40k GitHub stars~1.8k tokensUpdated 3 days ago
    Backend & APIsAuto-check passed
  • Openclaw Live Updater

    openclaw/openclaw

    Maintain the canonical live OpenClaw main checkout, macOS LaunchAgent-managed Gateway, local macOS app, exact-head main CI, and recurring full release validation.

    392k GitHub stars~3.7k tokensUpdated today
    DevOps & CloudAuto-check passed

More from openpi-dev/openpi

  • Workflows

    openpi-dev/openpi

    Orchestrates multi-agent work with OpenPI's inline JavaScript Workflow DSL.

    171 GitHub stars~1k tokensUpdated 3 days ago
    Auto-check passed
  • Subagents

    openpi-dev/openpi

    Invoke this skill when the user asks to use subagents or when a substantial, self-contained task can run independently in the background.

    171 GitHub stars~821 tokensUpdated 3 days ago
    Auto-check: notes

Questions about Background Terminals

What does Background Terminals do?

Run and manage long-lived shell commands in background terminals. Background Terminals is an agent skill from openpi-dev/openpi. Run and manage long-lived shell commands in background terminals.

When should I use Background Terminals?

Background Terminals fits situations like: streaming builds; other commands that should keep running while the agent continues working.

How do I install Background Terminals in Claude Code?

Run `npx skills add openpi-dev/openpi --skill background-terminals -a claude-code`. Or copy the skill folder (skills/background-terminals in openpi-dev/openpi) into .claude/skills/background-terminals in your project. Claude Code loads it when a task matches its description.

How do I install Background Terminals in Codex?

Run `npx skills add openpi-dev/openpi --skill background-terminals -a codex`. Or copy the skill folder (skills/background-terminals in openpi-dev/openpi) into .agents/skills/background-terminals in your project. Codex loads it when a task matches its description.

Can I use Background Terminals in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openpi-dev/openpi --skill background-terminals -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/background-terminals, .gemini/skills/background-terminals, .github/skills/background-terminals and .opencode/skills/background-terminals in your project.

What does Background Terminals need to run?

SKILL.md names no scripts, command-line tools or credentials: Background Terminals is instructions for the agent only.

Does Background Terminals access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Background Terminals safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Background Terminals use?

Background Terminals is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Background Terminals use?

About 362 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Background Terminals?

Skills that share tags, products or a category with Background Terminals: Terminal Opener (affaan-m/ECC, 275k stars), Live Dashboard (NousResearch/hermes-agent, 252k stars), Shell Scripting (RightNow-AI/openfang, 18k stars) and Crush Shell Builtins (charmbracelet/crush, 29k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Background Terminals?

openpi-dev (a GitHub organization) maintains it in openpi-dev/openpi, which has 171 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 5, 2026.

Source: openpi-dev/openpi on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.