Tooluck logoTooluck
SKILL.md

hive.terminal-tools-job-control

Agent skill fromaden-hive/hive

Use when launching anything that runs longer than a minute, anything that streams logs, anything you want to keep running while doing other work — or when terminal_exec auto-backgrounded on you and returned a job_id. Teaches the start→poll→wait pattern with terminal_job_logs offset bookkeeping, bounded blocking polls, platform-specific process control via terminal_job_manage capabilities, and the hard rule that jobs die when the terminal-tools server restarts. Read before calling terminal_job_start, or right after terminal_exec auto-backgrounded.

How to install hive.terminal-tools-job-control

install hive.terminal-tools-job-control
# install the hive pack with the skills CLI
npx skills add aden-hive/hive

# or add only this skill to Claude Code: copy the folder

core/framework/skills/_preset_skills/terminal-tools-job-control/

# into

~/.claude/skills/terminal-tools-job-control/ (all projects)

.claude/skills/terminal-tools-job-control/ (one project)

core/framework/skills/_preset_skills/terminal-tools-job-control/SKILL.md

Apache-2.0Full file
1# Background job control
2
3Background jobs are how you do things that take time without blocking your conversation. Three tools cover the surface: `terminal_job_start`, `terminal_job_logs`, `terminal_job_manage`.
4
5## When to use a job
6
7- Builds, deploys, long tests
8- Processes you want to monitor (streaming a log file, a dev server)
9- Anything that auto-backgrounded from `terminal_exec` (you have a `job_id`; pivot to this skill's idioms)
10
11For one-shot work expected to finish quickly, `terminal_exec` is simpler. The auto-promotion mechanic in `terminal_exec` is your safety net — start with `terminal_exec`, take over with this skill if needed.
12
13## Lifecycle
14
15```
16terminal_job_start(command, ...)
17 → { job_id, pid, started_at }
18
19terminal_job_logs(job_id, since_offset=0, max_bytes=64000)
20 → { data, offset, next_offset, status: "running"|"exited", exit_code, ... }
21
22# Repeat with since_offset = previous next_offset until status == "exited"
23# Or, better when you have nothing else to do, wait once with wait_until_exit=True:
24terminal_job_logs(job_id, since_offset=N, wait_until_exit=True)
25 → waits until exit, a new message for you, or wait_timeout_sec (at most 600, the default)
26```
27
28After exit, the job is retained for inspection (`terminal_job_manage(action="list")`) until evicted by FIFO (50 most recent exits kept).
29
30## Offset bookkeeping — the only rule that matters
31
32The job's output lives in a 4 MB ring buffer per stream. Each call to `terminal_job_logs` returns:
33…

Excerpt shown under the repository's Apache-2.0 license.

More skills in hive

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

pbakaus /

impeccable
108k

The design vocabulary for your coding agent. Steer with polish and bolder, review with critique and audit, catch AI slop before it ships.

2 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates