diff --git a/README.md b/README.md index c9f858eb..685b6774 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@

Autonomous Claude Code work while you sleep
- Persistent sessions, Ralph Loop tracking, Respawn Controller, Multi-Session Dashboards, Monitor Panel + Persistent sessions, Ralph Loop tracking, Respawn Controller, Agent Visualization, Multi-Session Dashboards

@@ -163,6 +163,58 @@ Implement the feature described below... --- +### 👁️ Live Agent Visualization + +**Watch your agents work in real-time.** Claudeman monitors Claude Code's background agents (the `Task` tool) and displays them in draggable floating windows with Matrix-style connection lines. + +``` +┌─────────────────────────────────────────────────────────────┐ +│ Session Tab [AGENTS (3)] │ +│ │ │ +│ │ ╭──────────────────╮ ╭──────────────────╮ │ +│ ├─┤ Agent: explore │ │ Agent: implement │ │ +│ │ │ ● active │ │ ○ completed │ │ +│ │ │ Tool: Grep │ │ Result: success │ │ +│ │ ╰──────────────────╯ ╰──────────────────╯ │ +│ │ ╭──────────────────╮ │ +│ └─────────┤ Agent: test │ │ +│ │ ◐ idle │ │ +│ ╰──────────────────╯ │ +└─────────────────────────────────────────────────────────────┘ +``` + +**Features:** +- **Floating windows** — Draggable, resizable panels for each agent +- **Connection lines** — Animated green lines linking parent sessions to agent windows +- **Live activity log** — See every tool call, progress update, and message in real-time +- **Status indicators** — Green (active), yellow (idle), blue (completed) +- **Model badges** — Shows Haiku/Sonnet/Opus with color coding +- **Auto-behavior** — Windows auto-open on spawn, auto-minimize on completion +- **Tab badge** — Shows "AGENT" or "AGENTS (n)" count on session tabs + +**Subagent API:** +| Method | Endpoint | Description | +|--------|----------|-------------| +| `GET` | `/api/subagents` | List all background agents | +| `GET` | `/api/subagents/:id` | Agent info and status | +| `GET` | `/api/subagents/:id/transcript` | Full activity transcript | +| `DELETE` | `/api/subagents/:id` | Kill agent process | + +--- + +### 🔍 Project Insights Panel + +Real-time visibility into what Claude is reading and searching: + +- **Active Bash tools** displayed as they run (file viewers, grep, find) +- **Clickable file paths** — Jump directly to files in Claude Code +- **Timeout indicators** — See how long tools have been running +- **Smart deduplication** — Overlapping file ranges collapsed + +Toggle via App Settings → Display → "Show Project Insights Panel" + +--- + ### 📊 Smart Token Management Never hit token limits unexpectedly: @@ -201,6 +253,28 @@ Run **20 parallel sessions** with full visibility: --- +### 📈 Run Summary ("What Happened While You Were Away") + +Click the chart icon on any session tab to see a complete timeline of what happened: + +**Tracked Events:** +- Session start/stop and respawn cycles +- Idle/working transitions with durations +- Token milestones (every 50k tokens) +- Auto-compact and auto-clear triggers +- Ralph Loop completions +- AI check results (idle detection verdicts) +- Hook events (permissions, questions, stops) +- Errors, warnings, and stuck-state alerts + +**Stats at a glance:** +- Total respawn cycles +- Peak token usage +- Active vs idle time +- Error/warning counts + +--- + ## Installation ### macOS & Linux @@ -276,11 +350,25 @@ claudeman web --https | `POST` | `/api/spawn/agents/:id/cancel` | Cancel agent | | `POST` | `/api/spawn/trigger` | Programmatic spawn | +### Subagents (Claude Code Background Agents) +| Method | Endpoint | Description | +|--------|----------|-------------| +| `GET` | `/api/subagents` | List all background agents | +| `GET` | `/api/subagents/:id` | Agent info and status | +| `GET` | `/api/subagents/:id/transcript` | Full activity transcript | +| `DELETE` | `/api/subagents/:id` | Kill agent process | +| `GET` | `/api/sessions/:id/subagents` | Subagents for session's working dir | + ### Hooks & Notifications | Method | Endpoint | Description | |--------|----------|-------------| | `POST` | `/api/hook-event` | Hook callbacks `{event, sessionId, data?}` → notifications + tab alerts | +### Run Summary +| Method | Endpoint | Description | +|--------|----------|-------------| +| `GET` | `/api/sessions/:id/run-summary` | Timeline + stats for "what happened" | + ### Real-Time | Method | Endpoint | Description | |--------|----------|-------------| @@ -295,7 +383,7 @@ claudeman web --https flowchart TB subgraph Claudeman["🖥️ CLAUDEMAN"] subgraph Frontend["Frontend Layer"] - UI["Web UI
xterm.js"] + UI["Web UI
xterm.js + Agent Windows"] API["REST API
Fastify"] SSE["SSE Events
/api/events"] end @@ -311,6 +399,7 @@ flowchart TB subgraph Detection["Detection Layer"] RT["Ralph Tracker"] SD["Spawn Detector"] + SW["Subagent Watcher
~/.claude/projects/*/subagents"] end subgraph Persistence["Persistence Layer"] @@ -322,6 +411,7 @@ flowchart TB CLI["Claude CLI"] A1["Agent 1
(screen)"] A2["Agent 2
(screen)"] + BG["Background Agents
(Task tool)"] end end @@ -341,6 +431,8 @@ flowchart TB S2 --> SCR RC --> SCR SCR --> CLI + SW --> BG + SW --> SSE ``` --- @@ -378,5 +470,5 @@ MIT — see [LICENSE](LICENSE) ---

- Track sessions. Control respawn. Let it run while you sleep. + Track sessions. Visualize agents. Control respawn. Let it run while you sleep.