troubleshoot

Diagnoses unexpected Copilot agent session behavior by analyzing event logs.

10|1|Updated Jul 13, 2026
Ready to run
npx skills add https://github.com/KevinHuangIsLearning/shortestpath-ide --skill troubleshoot-kevinhuangislearning
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: troubleshoot
Source: https://github.com/KevinHuangIsLearning/shortestpath-ide/tree/main/src/vs/sessions/skills/troubleshoot
Command: npx skills add https://github.com/KevinHuangIsLearning/shortestpath-ide --skill troubleshoot-kevinhuangislearning

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When a Copilot agent session behaves unexpectedly—slow requests, missing tool calls, skills or instructions that fail to load—there is no obvious way to see what actually happened. This Skill investigates the session's on-disk event log to reconstruct the flow and identify the root cause with evidence instead of guesswork. ## Core Features & Use Cases - Session log analysis: Locates and streams the session's events.jsonl log to reconstruct turns, tool calls, and timings. - Root-cause investigation: Answers why a request was slow, why a tool was or was not called, why a tool call failed, or why an instruction/skill/agent file did not load. - Wire log triage: Inspects the agent host protocol (JSON-RPC) wire log when symptoms point to transport issues like hangs, timeouts, or failed session creation. - Use Case: A user asks why their custom skill never loaded. The Skill scans the session log, finds the skill was discovered but skipped because the folder name and the name field in the skill file differ, and explains the fix. ## Quick Start Ask the agent why your last request was slow or why a specific tool was not used, and it will analyze the current session log to explain what happened.

Frequently Asked Questions about troubleshoot

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

FAQPage Schema
How do I find out why a Copilot agent request was slow?▼

The Skill locates the session's events.jsonl log and measures gaps between turn start events and assistant messages, plus tool execution start-to-complete durations. It then reports which step consumed the time based on timestamp evidence.

How to debug why a tool was not called in an agent session?▼

The Skill streams the session log and lists every tool execution with its success status and duration, paired by toolCallId. Comparing these against user messages and assistant turns reveals whether the tool was invoked, skipped, or failed.

Why did my skill or instruction file not load in a Copilot session?▼

The session log records discovery and loading events that show whether the file was found and why it was skipped. A common cause is a mismatch between the folder name and the name field inside the skill file.

Does this troubleshooting work for remote agent hosts?▼

The events.jsonl session log is always accessible since the Skill runs inside the session's agent. However, the agent host wire log is written on the VS Code client machine, so it is only reachable for local agent hosts, not remote ones.

What if the agent host wire log does not exist?▼

The wire log is disabled by default. Enable it by setting chat.agentHost.ahpJsonlLoggingEnabled to true, restart VS Code, reproduce the issue, and then re-run the investigation.

When should I not use session log troubleshooting?▼

It only works for Copilot agent sessions that produce an events.jsonl log under the session-state directory. If no such log exists, the environment is not a Copilot session and the Skill cannot help.