agent-host-logs

Analyze Agent Host debug log bundles to diagnose Copilot session failures.

Updated Aug 30, 2026
One-click install
npx skills add https://github.com/Tyrizx/Tyrizx --skill agent-host-logs-tyrizx
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: agent-host-logs
Source: https://github.com/Tyrizx/Tyrizx/tree/main/.github/skills/agent-host-logs
Command: npx skills add https://github.com/Tyrizx/Tyrizx --skill agent-host-logs-tyrizx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Debugging Copilot agent sessions requires correlating events across many log files (events.jsonl, AHP transport logs, agenthost.log, renderer logs), and it is hard to know which file to start with or how IDs connect across layers. ## Core Features & Use Cases - Bundle Orientation: Explains every file in an ah-logs export (events.jsonl, usage.jsonl, customizations.json, ahp/*.jsonl, agenthost logs, copilot-logs, vscode-logs) and what each one records. - Safe Extraction: Ships a hardened Python extractor that validates zip structure, blocks path traversal, symlinks, encrypted entries, and oversized archives before unpacking to a temp folder. - Guided Triage Workflow: Maps symptoms (turn behavior, token usage, client ordering, host failures, SDK issues, UI problems) to the right starting file and lists correlation fields like session ID, turnId, and AHP serverSeq. - Use Case: Given an ah-logs.zip from a user reporting a stuck Copilot turn, extract it, open events.jsonl for the turn, then follow the same turnId into the AHP and agenthost logs to find the failed response. ## Quick Start Extract the attached ah-logs zip with the bundled script and analyze events.jsonl to find why the Copilot turn failed.

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 logs from VS Code?▼

Export the bundle with the 'Developer: Export Agent Host Debug Logs' command, extract the zip with the bundled extract.py script, then start from the file closest to the symptom such as events.jsonl for turn behavior or ahp/*.jsonl for client-server ordering.

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

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 folder and prints its path.

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

events.jsonl contains persisted Copilot SDK events for a session such as turns, tools, and permissions over a long period. AHP JSONL files capture connection-scoped wire traffic between client and server with c2s/s2c direction and wire timestamps.

Why is usage.jsonl or customizations.json missing from my log bundle?▼

These files exist only when agent-host debug logging was enabled during the session. Export collection is best-effort, so missing files are normal and do not indicate a corrupted bundle.

How do I correlate a failed Copilot turn across multiple log files?▼

Search by the known time or ID in the file closest to the symptom, then follow correlation fields like session ID, turnId, interactionId, JSON-RPC request id, or AHP serverSeq into the adjacent layer such as agenthost.log or copilot-logs.