claudegoodies
Command

logs

From ruvnet

Show agent activity logs

Install

/logs

Facts

Repository
ruvnet/ruflo
Status
Actively maintained
Last commit

Source preview

The instructions Claude Code reads when this command runs.

# Agent Logs Command

View activity logs and history for agents.

## Usage

```bash
npx claude-flow agent logs <agent-id> [options]
```

## Options

| Option | Short | Description | Default |
|--------|-------|-------------|---------|
| `--lines` | `-n` | Number of lines to show | 50 |
| `--follow` | `-f` | Follow log output | false |
| `--level` | `-l` | Log level filter (debug, info, warn, error) | info |
| `--since` | | Show logs since timestamp/duration | - |
| `--format` | | Output format (text, json) | text |

## Examples

```bash
# View last 50 lines
npx claude-flow agent logs coder-lx7m9k2

# View last 100 lines
npx claude-flow agent logs coder-lx7m9k2 -n 100

# Follow logs (live)
npx claude-flow agent logs coder-lx7m9k2 --follow

# Filter by level
npx claude-flow agent logs coder-lx7m9k2 -l error

# Logs since time
npx claude-flow agent logs coder-lx7m9k2 --since "1h"
npx claude-flow agent logs coder-lx7m9k2 --since "2026-01-08T10:00:00"

# JSON output
npx claude-flow agent logs coder-lx7m9k2 --format json
```

## Output

```
Logs for coder-lx7m9k2

2026-01-08 10:30:15 [INFO]  Agent spawned: type=coder, name=coder-lx7m9k2
2026-01-08 10:30:16 [INFO]  Connected to swarm: topology=hierarchical
2026-01-08 10:30:17 [INFO]  Task received: implement-auth-feature
2026-01-08 10:30:18 [DEBUG] Loading context from memory
2026-01-08 10:32:45 [INFO]  Task completed: implement-auth-
View full source on GitHub →

Other slash commands