agent-host-logs

Analyze Agent Host debug log export bundles to diagnose session, transport, and SDK issues.

10|1|Updated Jul 13, 2026
One-click install
npx skills add https://github.com/KevinHuangIsLearning/shortestpath-ide --skill agent-host-logs-kevinhuangislearning
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: agent-host-logs
Source: https://github.com/KevinHuangIsLearning/shortestpath-ide/tree/main/.github/skills/agent-host-logs
Command: npx skills add https://github.com/KevinHuangIsLearning/shortestpath-ide --skill agent-host-logs-kevinhuangislearning

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Agent Host debug log exports contain many heterogeneous files (events.jsonl, AHP JSONL transport logs, agenthost.log, copilot-logs, renderer logs), and it is hard to know which file to open first or how to correlate events across layers when investigating a failure. ## Core Features & Use Cases - Bundle orientation: Explains what each file in an ah-logs export contains, from SDK events and token usage records to AHP wire traffic and host process logs. - Safe zip extraction: Ships a hardened Python extractor that validates zip structure, blocks path traversal, symlinks, encrypted entries, and oversized archives before unpacking to a temp directory. - Guided diagnosis workflow: Maps symptoms (turn behavior, token usage, client/server ordering, host failures, SDK behavior, UI issues) to the right starting file and correlation fields like session ID, turnId, and AHP serverSeq. - Use Case: Given an ah-logs.zip from a user reporting a stuck agent turn, extract it safely, locate the turn in events.jsonl, then follow the same turnId into the AHP and agenthost logs to find the missing completion. ## Quick Start Analyze this Agent Host debug log bundle and find why the agent turn stalled around the reported time.

Frequently Asked Questions about agent-host-logs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze Agent Host debug log exports?▼

Extract the ah-logs zip with the bundled extract.py script, then start from the file closest to the symptom: events.jsonl for turn behavior, ahp/*.jsonl for client-server ordering, or agenthost.log for host failures. Correlate using session ID, turnId, or interactionId.

How do I safely extract an ah-logs zip file?▼

Run python3 scripts/extract.py with the archive path. The script validates the central directory, rejects path traversal, symlinks, encrypted entries, and oversized archives, then extracts to a temporary directory and prints its path.

What is the difference between events.jsonl and ahp JSONL logs?▼

events.jsonl records persisted Copilot SDK events for a session such as turns, tools, and permissions, often over a long period. AHP JSONL files capture connection-scoped wire traffic between client and server, including requests, responses, and notifications with wire timestamps.

Why is token usage missing from events.jsonl?▼

The SDK's assistant.usage event is ephemeral and never persisted to events.jsonl. Per-call token and credit usage is only recorded in usage.jsonl, which exists only when agent-host debug logging was enabled during the session.

Why are some files missing from the log export bundle?▼

Export collection is best-effort, so a valid bundle may contain only a subset of files. Missing files are normal and do not indicate corruption; work with whatever logs were successfully collected.