logs
From ruvnet
Show agent activity logs
Install
/logsFacts
- 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
feature-development
★ 229,918Workflow command scaffold for feature-development in everything-claude-code.
affaan-mupdated 11d agoMITdatabase-migration
★ 229,918Workflow command scaffold for database-migration in everything-claude-code.
affaan-mupdated 11d agoMITadd-language-rules
★ 229,918Workflow command scaffold for add-language-rules in everything-claude-code.
affaan-mupdated 11d agoMITcommit-push-pr
★ 137,934Commit, push, and open a PR
anthropicsupdated 10d agodedupe
★ 137,934Find duplicate GitHub issues
anthropicsupdated 10d agotriage-issue
★ 137,934Triage GitHub issues by analyzing and applying labels
anthropicsupdated 10d ago