---
title: "service-radar"
url: "https://claudemods.dev/zh-cn/builds/service-radar-3cacbb"
source: "https://github.com/MichaelP17/claude-mods/tree/main/service-radar"
source_type: "github"
repo: "https://github.com/MichaelP17/claude-mods/tree/main/service-radar"
author: "MichaelP17"
author_handle: "MichaelP17"
stars: 2
category: "工作流与 CI"
categories: ["workflow"]
tags: ["background-services", "brew-services", "claude-code", "colima", "docker", "hooks", "plugin", "workflow"]
permission_level: 2
scan_complete: true
install: "claude plugin marketplace add MichaelP17/claude-mods\nclaude plugin install service-radar"
added: "2026-10-05T15:19:53.376Z"
updated: "2026-10-16T08:40:52Z"
locale: "zh-cn"
content_locale: "zh-cn"
---

# service-radar

Claude Code 插件：跟踪 Claude 通过 Bash 启动的常驻服务（docker compose、colima、brew services、launchctl），并通过 /services 面板停止或保留这些服务。

## Description

# service-radar

跟踪 Claude 在后台启动、并且在命令返回后仍在运行的服务——Docker Compose 栈、容器、Colima 虚拟机、Homebrew 服务——并允许你停止它们。

Claude Code 已经会列出它自己的后台 shell 和子代理。它没有显示的是脱离终端运行的服务：`docker compose up -d` 会立即返回，而栈会继续在无人注意的情况下运行。这个插件填补了这个空白，除此之外不会显示出来。

| 何时 | 你会看到什么 |
| --- | --- |
| Claude 启动的内容都没有在运行 | 什么都不显示 |
| 有内容正在运行 | 一条状态栏条目，`services 2` |
| 你想查看详情 | `/services` 会打开一个窗格：名称、文件夹、启动时间、每个服务对应的 **Stop** 按钮、**Stop all**、**Refresh** |
| 有内容正在运行时执行 `/clear` | 一个列出这些服务的对话框：**Stop all** 或 **Keep running** |
| 较早会话中的服务仍在运行时又启动了新会话 | 一条指向 `/services` 的 toast 提示 |

无需设置。

## 跟踪的内容

| 启动方式 | 停止方式 | 运行检查 |
| --- | --- | --- |
| `docker compose up -d`（也包括 `docker-compose`） | 在同一文件夹中执行 `docker compose down`，并使用相同的 `-f`、`-p` 和 `--profile` 标志 | `docker compose ps` |
| `docker compose start` | `docker compose stop`，它会保留容器 | `docker compose ps` |
| `docker run -d` | `docker stop <name or id>` | `docker ps` |
| `docker start <name>` | `docker stop <name>` | `docker ps` |
| `colima start [profile]` | `colima stop [profile]` | `colima status` |
| `brew services start` / `run` / `restart` | `brew services stop` | `brew services info --json` |
| `launchctl load` | `launchctl unload` | 无——显示为 `?`，并带有一个 **Forget** 按钮 |
| `launchctl bootstrap <domain> <plist>` | `launchctl bootout <domain> <plist>` | 无——显示为 `?`，并带有一个 **Forget** 按钮 |

服务也会在链式命令中被匹配，包括前面的 `cd`：在 `cd app && docker compose up -d` 中，栈会在 `app` 中被跟踪。以其他方式停止的服务——由你在终端中停止，或由 Claude 执行停止命令停止——会在下次检查时从列表中消失。

## 详情与限制

- 该列表会跨会话保留，因为服务的存活时间比会话更长。退出 Claude Code 时无法显示对话框，所以改为在下一次会话中提醒你。
- 只会看到 Claude 通过其 Bash 工具运行的命令。你自己启动的服务不会被列出。
- 被跟踪的启动命令即使位于 `sudo`、`nohup`、`env` 等类似前缀之后，或通过 `&` 放到后台，也能被识别。其他被放到后台的程序（例如 `npm run dev &`）不会被跟踪；Claude Code 自己的后台 shell 会列出并停止这些程序。
- 停止操作在按下后会在后台运行，因此缓慢的停止（Colima 大约需要十秒）绝不会被中途截断。
- 检查以 20 秒超时运行，并且绝不会延迟会话的启动。

## 卸载

从 `CLAUDE_CODE_PLUGIN_DIRS` 中移除该 mod。它跟踪的服务会继续运行；如果你想让它们停止，请先用 `/services` 停止它们。

## Install

```
claude plugin marketplace add MichaelP17/claude-mods
claude plugin install service-radar
```

## Original README

# service-radar

Keeps track of services Claude starts in the background and that keep running after the command returned — a Docker Compose stack, a container, the Colima VM, a Homebrew service — and lets you stop them.

Claude Code already lists its own background shells and subagents. What it does not show is a service that detaches: `docker compose up -d` returns at once, and the stack keeps running unnoticed. This mod fills that gap and stays out of sight otherwise.

| When | What you see |
| --- | --- |
| Nothing Claude started is running | nothing |
| Something is running | one status line entry, `services 2` |
| You want details | `/services` opens a pane: name, folder, start time, a **Stop** button per service, **Stop all**, **Refresh** |
| `/clear` while something runs | a dialog listing the services: **Stop all** or **Keep running** |
| A new session starts while services from an earlier one still run | a toast pointing to `/services` |

No setup needed.

## What is tracked

| Started with | Stopped with | Running check |
| --- | --- | --- |
| `docker compose up -d` (also `docker-compose`) | `docker compose down` in the same folder, with the same `-f`, `-p` and `--profile` flags | `docker compose ps` |
| `docker compose start` | `docker compose stop`, which keeps the containers | `docker compose ps` |
| `docker run -d` | `docker stop <name or id>` | `docker ps` |
| `docker start <name>` | `docker stop <name>` | `docker ps` |
| `colima start [profile]` | `colima stop [profile]` | `colima status` |
| `brew services start` / `run` / `restart` | `brew services stop` | `brew services info --json` |
| `launchctl load` | `launchctl unload` | none — shown with `?` and a **Forget** button |
| `launchctl bootstrap <domain> <plist>` | `launchctl bootout <domain> <plist>` | none — shown with `?` and a **Forget** button |

Services are matched in chained commands too, including a preceding `cd`: in `cd app && docker compose up -d` the stack is tracked in `app`. A service that was stopped some other way — by you in a terminal, or by Claude running the stop command — drops off the list the next time it is checked.

## Details and limits

- The list is kept across sessions, because services outlive them. Exiting Claude Code cannot show a dialog, so the next session reminds you instead.
- Only commands Claude runs through its Bash tool are seen. Services you start yourself are not listed.
- A tracked start is recognised behind `sudo`, `nohup`, `env` and similar prefixes and when sent to the background with `&`. Other programs sent to the background, such as `npm run dev &`, are not tracked; Claude Code's own background shells list and stop those.
- Stopping runs in the background after a press, so a slow stop (Colima takes about ten seconds) is never cut short.
- Checks run with a 20-second timeout and never delay the start of a session.

## Uninstall

Remove the mod from `CLAUDE_CODE_PLUGIN_DIRS`. Services it tracked keep running; stop them first with `/services` if you want them gone.
