Skip to content
Agent Workspaces
Command

/recent

List the N most recent Claude Code sessions from the Agent Monitor.

From plugin
claude-code-agent-monitor
1.2k33 skills21 agents33 commands1 MCP
> /plugin marketplace add hoangsonww/Claude-Code-Agent-Monitor

Command definition

recent.md
description: List the N most recent Claude Code sessions from the Agent Monitor.
argument-hint: "[N]"

List the most recent Claude Code sessions tracked by the Agent Monitor.

`N` = **$ARGUMENTS** (default `10` if empty).

Fetch the most recent sessions (the API returns them most-recently-updated first):

curl -s "http://localhost:4820/api/sessions?limit=$ARGUMENTS"

This returns a session list; each entry has id, status, model, cwd, started_at, ended_at, cost, and metadata (turn_count, total_turn_duration_ms).

Then print the sessions as a numbered list, one line each, in the order returned:

`<rank>. <id short> — <status> — <model> — <cwd basename> — <turn_count> turns — $<cost to 4dp> — <started_at>`

After the list, print the summed cost of the listed sessions and a one-line status tally (e.g. `7 completed · 2 active · 1 error`).

Currency as USD to 4 decimal places. Keep it terse, no preamble. If the dashboard is unreachable, tell the user to start it with `npm start` from the repo root.

@hoangsonww
Ships withclaude-code-agent-monitor

🚀 A real-time monitoring dashboard for Claude Code & Codex, built with SQLite3, Node.js, Express, React, Vite, TailwindCSS, & WebSockets. It tracks sessions, agent activity, tool usage, and subagent orchestration, providing live analytics, a Kanban status board, status notifications, a cute buddy, & an interactive web UI/MacOS/Windows native app.

1.2k75 skills21 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.2k
Star history of hoangsonww/Claude-Code-Agent-Monitor on GitHub, a chart by star-history.com

Other commands on claude-code-agent-monitor.

More commands from other plugins.

superset-automation
Auto-invoked

superset-automation

Command

Manage a single Paradev automation: edit its prompt in $EDITOR, view recent runs, or trigger a one-off run.

paradev4d16k
@superset-sh@superset-shInstall Command
check

check

Command

Check work for adherance with architecture and run checks

jean5d1.4k
@coollabsio@coollabsioInstall Command