bg-tasks

Reviewed at commit 005a0b8 New version, not yet reviewed

Shows the background shell tasks of the session on the status line or in the shared sidebar, with the oldest one's age, and stops one from the /bg-tasks pane.

Made by
Kerem Gok
What we checked

Lists the background shell commands of your session on the status line or in the shared sidebar, with how long the oldest has run, and opens a /bg-tasks pane with a stop button per task. It sees the first line of each background Bash command and stores only whether it is switched on. No network calls and no files are read.

Review details

Static review of the source at the pinned commit; not run. Hooks: session.start (registers /bg-tasks, reads the enabled flag from $.store, redraws every 30 seconds via $.clock.every), tool.call for Bash (after the call, records the backgroundTaskId and the first line of the command, cut to 80 characters), tool.call for TaskStop (drops the task from the list), prompt.submit for task notifications and prompt.attachment for queued commands (parses <task-notification> blocks to close ended tasks), turn.complete (for subagents, reads $.session.messages of that agent to find task notifications), ui.render for its pane. It calls the TaskStop tool through $.tool.call only when the user presses a stop button or runs /bg-tasks stop <id>, with a consent text saying so. Uses $.sidebar, $.ui.status, $.ui.open and $.ui.close. No files, processes, network or model calls. All code was in the bundle; eslint.config.js and Makefile are not loaded.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for bg-tasks

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/bg-tasks.svg)](https://modsforclaude.com/mods/bg-tasks/)

← All mods