
agent-report
Extract and display the final message from a Claude agent JSONL file. Use when the user wants to see
作者 OhadRubin|オープンソース
Agent Report Extractor
Extract the final message from a Claude agent file and write it to a formatted markdown report.
Usage
Run the script with an agent ID:
scripts/extract_agent_message.sh <agent_id> [output_file]
agent_id: The short agent ID (e.g.,ad42ecb)output_file: Optional. Defaults toagent-<id>-report.mdin current directory
Workflow
- If the user provides an agent ID, run the script immediately
- If no agent ID is provided, ask the user for the agent ID using AskUserQuestion
- Run the script and confirm the output file location
Output Format
The script produces a markdown file containing:
- Agent slug/name
- Agent ID
- Model used
- Timestamp
- Full text content of the final message