Read session logs

From stevehuang0115/crewly · View interactive version

Read session logs is an AI agent skill from the GitHub repository stevehuang0115/crewly. Read persistent terminal log file for a session (ANSI-stripped, includes pre-restart output).

How to use this skill

Skill file

Read Session Logs

Read the persistent log file for a PTY session. Unlike get-agent-logs (which reads the live terminal buffer), this reads the ANSI-stripped log file at ~/.crewly/logs/sessions/{sessionName}.log.

Key difference: This log file survives session restarts and includes output from before the last restart, separated by --- SESSION RESTARTED at ... --- markers.

Parameters

| Parameter | Type | Default | Description |

|---------------|--------|---------|----------------------------------------|

| sessionName | string | (required) | PTY session name (e.g., crewly-orc) |

| lines | number | 100 | Number of recent lines to return |

Usage

# Read last 200 lines of orchestrator session log
bash config/skills/orchestrator/read-session-logs/execute.sh '{"sessionName":"crewly-orc","lines":200}'

# Read agent session log
bash config/skills/orchestrator/read-session-logs/execute.sh '{"sessionName":"crewly_team1_dev1","lines":100}'

Response

Returns a JSON object with lines (array of strings), sessionName, count, and totalLines.

When to Use

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.