0xGondarxyz/claude-code-mods/tree/main/agent-watch
agent-watch
실행 중인 각 subagent에 대해 모델, 작업, 분, 최신 도구 호출을 포함한 한 줄을 프롬프트 위에 표시하는 Claude Code mod입니다.
이 mod 소개
subagent가 실행 중이면 프롬프트 위 밴드에 에이전트마다 한 줄을 표시합니다. 예: Sonnet · Build snap screenshot mod · 6 min · now: Bash claude plugin test. 각 줄에는 에이전트의 모델 또는 subagent 유형, 15 s마다 갱신되는 분 수, 최신 도구 호출(파일 이름, Bash 명령의 처음 40자, 또는 패턴)이 나타납니다. agent가 끝나면 30 s 동안 녹색 done을 표시하고, 실패하거나 중지되면 노란색 stopped과 Agent finished: <description> toast를 표시합니다. agent가 없으면 아무것도 그리지 않으며 다른 mod의 행은 아래에 남습니다. 시작에는 agent.spawn 엔진 데이터를, 진행에는 agentId가 있는 tool.call을, 종료에는 agentId가 있는 turn.complete와 15 s 간격의 $.agent.list() 폴백을 사용하고 상태는 agent-watch.agents에 보관합니다. 백그라운드와 포그라운드 agent의 종료는 구분할 수 없고 teammate는 agent.spawn을 전달하지 않으므로 표시되지 않습니다. 개발 명령은 claude plugin validate ., claude plugin test ., npx tsc -p .입니다。
설치
먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.
claude plugin marketplace add 0xGondarxyz/claude-code-mods claude plugin install agent-watch
원문 / README
agent-watch
A Claude Code mod. While subagents run, the band above the prompt shows one line per agent:
Sonnet · Build snap screenshot mod · 6 min · now: Bash claude plugin test
- Label: the agent's model (Sonnet, Opus, Haiku, Fable), else its subagent type.
- Minutes update every 15 s.
now:is the agent's latest tool call (file name, first 40 characters of a Bash command, or pattern), cut to the band width.- When an agent ends, its line shows
done(green) for 30 s, orstopped(yellow) if it failed or was stopped, with one toastAgent finished: <description>. - With no agents the mod draws nothing. Other mods' rows stay below ours.
Engine data used
- Start:
agent.spawn.next(e)answers{ model, agentId }; the input holdsdescriptionandsubagentType. - Progress:
tool.callwithagentId(set only inside a subagent loop). Hooks always pass through. - Finish:
turn.completewithagentId(reasonansweris done, anything else stopped), and every 15 s$.agent.list()status (completed,failed,killed) as a fallback. - State:
agent-watch.agentsin$.state, so a hot reload keeps the rows.
Limits
- The engine does not tell a background agent's end apart from a foreground one; both end through
turn.completeor$.agent.list(). - Teammates (
type: teammate) never passagent.spawn, so they are not shown.
Develop
claude plugin validate .
claude plugin test .
npx tsc -p .
