Analyze JSONL debug logs to explain chat agent issues and behavior.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "troubleshoot" skill from askskill: 1. Download https://raw.githubusercontent.com/microsoft/vscode/main/extensions/copilot/assets/prompts/skills/troubleshoot/SKILL.md 2. Save it as ~/.claude/skills/troubleshoot/SKILL.md 3. Reload skills and tell me it's ready
Analyze this JSONL debug log and explain why the request was slow. Provide a timeline of each stage, identify the main latency sources, and suggest practical optimizations.
A timeline-based latency analysis with bottlenecks identified and optimization suggestions.
Using this JSONL debug log, explain why the agent did not call the expected tool. Identify the decision signals, whether trigger conditions were met, and the specific reason it was skipped.
A clear explanation of why the tool was not invoked, with key log evidence.
Review this JSONL debug log and analyze why a skill, subagent, or system instruction failed to load. Show the failure point in the loading flow, the impact, and recommended fixes.
A failure analysis report covering the broken loading step, impact, and fix recommendations.
This skill investigates and explains unexpected chat agent behavior using direct log files.
Use this skill for questions like:
Base conclusions on evidence from logs. Do not guess.
{{VSCODE_TARGET_SESSION_LOG}}Use direct debug log files written by Copilot Chat:
debug-logs/<sessionId>/
main.jsonl — always start here; primary conversation log
models.json — (optional) snapshot of available models at session start
system_prompt_0.json — (optional) full system prompt sent to the model (untruncated)
system_prompt_1.json — (optional) written when the model changes mid-session
tools_0.json — (optional) tool definitions sent to the model
tools_1.json — (optional) written when the model changes mid-session
runSubagent-<agentName>-<uuid>.jsonl — (optional) subagent's tool calls & LLM requests
searchSubagent-<uuid>.jsonl — (optional) search subagent work
title-<uuid>.jsonl — (optional, UI-only) title generation
categorization-<uuid>.jsonl — (optional, UI-only) prompt categorization
summarize-<uuid>.jsonl — (optional, UI-only) conversation summarization
Always read main.jsonl first — it has the full conversation flow. Child files only appear when those operations occurred. main.jsonl contains child_session_ref entries that link to each child file by name. Title, categorization, and summarize files are UI housekeeping and rarely relevant to troubleshooting. When investigating model availability or selection issues, read models.json — it contains the full list of models (with capabilities, billing, and limits) that were available when the session started.
When investigating what the model was told (system prompt, instructions), read the system_prompt_*.json file referenced by a system_prompt_ref entry in main.jsonl. The file contains the full untruncated system prompt as { "content": "..." }. When investigating which tools were available, read the tools_*.json file similarly. If the model changed mid-session, multiple numbered files exist — each llm_request entry has a systemPromptFile attr indicating which file was active for that request.
Each line is a JSON object. Common fields: ts (epoch ms), dur (duration ms), sid (session ID), type, name, spanId, parentSpanId, status (ok|error), attrs (type-specific details).
{"ts":1773200251309,"dur":0,"sid":"62f52dec","type":"discovery","name":"Load Instructions","spanId":"2cb1f2f4","status":"ok","attrs":{"details":"Resolved 0 instructions in 0.0ms | folders: [/c:/Users/user/.copilot/instructions, /workspace/.github/instructions]","category":"discovery","source":"core"}}
{"ts":1773200251415,"dur":0,"sid":"62f52dec","type":"discovery","name":"Load Agents","spanId":"38a897d8","status":"ok","attrs":{"details":"Resolved 3 agents in 0.0ms | loaded: [Plan, Ask, Explore] | folders: [/workspace/.github/agents]","category":"discovery","source":"core"}}
{"ts":1773200251431,"dur":0,"sid":"62f52dec","type":"discovery","name":"Load Skills","spanId":"472eb225","status":"ok","attrs":{"details":"Resolved 6 skills in 0.0ms | loaded: [agent-customization, troubleshoot, ...]","category":"discovery","source":"core"}}
Key attrs: details (human-readable summary with folder paths, loaded items, skip reasons), category (always "discovery"), source ("core").
…
Validate Azure DevOps pipeline changes and troubleshoot builds and YAML faster.
Upgrade Anthropic SDKs, migrate versions, and fix dependency or typing issues.
Generate or update chat customization files for AI coding agents.
Find and read Code OSS dev build logs for faster debugging.
Merge session branch changes back into the base branch cleanly.
Create and maintain screenshot test fixtures for UI components effectively.
Analyze AI agent traces to diagnose failures and recommend actionable improvements.
Debug AI agents by tracing behavior, tool calls, and failures.
Investigate failing GitHub integration tests and suggest likely fixes
Search and analyze past session logs with jq for context and insights.
Fetch and analyze LangSmith traces to debug LangChain and LangGraph agents.
Investigate why a specific skill’s tests failed and surface error details.