Dev & Engineering ✓ Microsoft · Official copilot-clievent-log-analysisagent-debuggingsession-troubleshootingvscode

Copilot Session Troubleshooter

Explain unexpected Copilot CLI behavior from session-log evidence.

FollowSkills review · FSRS-2.0
Use with care
51/ 100 5-point scale 2.6 / 5
1 2 3 4 5 6
1Trust15 / 25 · 3.0/5

The skill clearly limits itself to the current Copilot CLI session and requires conclusions to be grounded in session logs; its data source and read mechanism are transparent, with no file writes, deletion, or external side effects. However, logs may contain prompts, tool arguments, and sensitive data, while redaction, data minimization, user confirmation, permission boundaries, and recovery guidance are absent, so points are deducted.

2Reliability7 / 20 · 1.8/5

The workflow, event schema, log discovery, and failure feedback are fairly detailed, covering both ordinary session logs and local agent-host wire logs. However, there are no dedicated tests for the key paths, some discovery depends on a newest-modified-file heuristic, and cross-platform commands, log rotation, and large-log behavior remain unverified. The static ceiling prevents a higher score, so deductions are applied.

3Adaptability10 / 15 · 3.3/5

Triggers, Copilot CLI scope, non-fit cases, and the distinction between ordinary model/tool issues and transport issues are reasonably clear. However, operation depends on access to specific local log paths and terminal tooling, with limited guidance for remote hosts, nonstandard configurations, or Chinese-language users, so points are deducted.

4Convention9 / 15 · 3.0/5

The documentation is well layered across purpose, log discovery, formats, workflow, and response rules; the repository supplies MIT licensing, Microsoft attribution, and version information. The skill itself lacks a version, changelog, explicit maintenance owner or update path, installation notes, FAQs, and representative output examples, so points are deducted.

5Effectiveness6 / 15 · 2.0/5

For explaining tool calls, latency, skill loading, and agent-host connection problems, the intended root-cause and remediation output is clear and potentially useful. However, there is no skill-specific reproducible output or verification record, and completeness depends on the log existing, matching the documented format, and being parsed correctly. The static ceiling therefore requires a conservative deduction.

6Verifiability4 / 10 · 2.0/5

The skill requires key claims to come from the event log and defines event fields and pairing rules, providing some auditability. The supplied CI and test files do not cover this SKILL.md's key paths, and there is no third-party execution evidence or sample-log reproduction, so only limited static verifiability is awarded.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 5b3e1be7be9e
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
Before you use it
  • Logs may contain user prompts, tool arguments, or other sensitive information; the skill gives no redaction, retention, or minimization guidance before presenting findings.
  • Selecting the most recently modified events or wire log can choose the wrong target during multiple sessions, rotation, or concurrent writes; the session path or identifier should be confirmed.
  • The function depends on local Copilot CLI session logs and terminal access; it may fail for remote agent hosts, nonstandard user-data directories, or disabled logging.
  • There are no skill-specific tests, sample logs, or changelog entries, so findings should be treated as assisted diagnosis and reviewed by the user.
See the full review method →

What does this skill do, and when should you use it?

This skill investigates unexpected behavior in the current Copilot CLI agent session. It analyzes the session event log to explain slow requests, unusual tool usage, missing instructions or skills, and failed tool calls. For connection, timeout, or protocol symptoms, it can also inspect the local VS Code agent-host wire log. It is one of 61 skills bundled in the microsoft/vscode repository, which is licensed under MIT.

The skill locates the target events.jsonl file, checks its size, and reads it through the terminal with a streaming jq or Node.js pass. It counts event types, lists user messages, pairs tool starts with completions, calculates durations, checks failed results, and optionally analyzes VS Code agent-host AHP JSONL frames. It produces an evidence-based explanation of what happened, why it happened, and what to do next.

  1. A Copilot CLI user wants to know why a request took unusually long and needs turn or tool timing.
  2. A user wants to determine why a tool was called or not called and needs session evidence.
  3. An instruction, skill, or agent file did not load and the user needs the likely cause.
  4. A tool call failed and the user needs the associated failure result investigated.
  5. A local VS Code agent host is stuck connecting, timing out, or reporting protocol errors.

What are this skill's strengths and limitations?

Pros
  • Requires conclusions to be supported by session-log evidence rather than guesses.
  • Covers request latency, tool calls, loading failures, and tool errors.
  • Uses a streaming approach suitable for large logs and includes event and duration analysis.
Limitations
  • Its scope is specifically the current Copilot CLI agent session, not arbitrary application logs.
  • It requires terminal access and local filesystem access to the session logs.
  • The wire log applies only to a local agent host and may be disabled by default in VS Code.
  • The supplied source provides no test suite or standalone installation workflow.

How do you install this skill?

The skill is part of the collection in https://github.com/microsoft/vscode at src/vs/sessions/skills/troubleshoot/SKILL.md. The supplied source does not document a standalone installation command for the collection or this skill, so no additional command can be stated accurately.

How do you use this skill?

Use it in a Copilot CLI session with a concrete prompt such as “Why was this request so slow?”, “Why was this tool not used?”, or “Why did this skill fail to load?”. If the message provides a Session log path, investigate that path; otherwise discover the most recently modified session log as defined by the skill. Inspect the local VS Code wire log only when the symptom concerns the agent host or transport layer.

FAQ

Does it require network access?
The source describes reading local session and local VS Code wire logs; it does not specify a network requirement.
Can it diagnose a remote agent host?
The session log can still be analyzed when available, but the wire log is written on the VS Code client and is not reachable from a remote agent host.
What happens if no Copilot CLI session log exists?
The skill should report that the environment is not a supported Copilot CLI session and stop.
How is the VS Code wire log enabled?
The source specifies chat.agentHost.ahpJsonlLoggingEnabled; enable it, restart VS Code, reproduce the issue, and run the diagnosis again.

More skills from this repository

All from microsoft/vscode

Dev & Engineering ✓ Microsoft · Official

Copilot Chat Troubleshooter

Explain unexpected agent behavior, latency, and tool failures from Copilot Chat debug logs.

Dev & Engineering ✓ Microsoft · Official

VS Code Agent Customization Assistant

Create, repair, and troubleshoot VS Code Agent customization files and their loading behavior.

Dev & Engineering ✓ Microsoft · Official

Code OSS Launch & Debug

Launch a built-from-source VS Code with isolated profiles, Playwright control, and multi-process debugging ports.

Dev & Engineering ✓ Microsoft · Official

VS Code Crash Dump Symbolicator

Turn native VS Code crash dumps into readable backtraces with method names.

Dev & Engineering ✓ Microsoft · Official

Reusable Prompt Creator

Turn recurring tasks into reusable .prompt.md files.

Dev & Engineering ✓ Microsoft · Official

VS Code Configuration Policy Maintainer

Standardize VS Code policy registration, export, and validation.

Design & Frontend ✓ Microsoft · Official

VS Code Design Philosophy

Turn vague UI discomfort into concrete fixes using shared values, principles, and design moves.

Dev & Engineering ✓ Microsoft · Official

VS Code Integrated Browser Architecture

A practical architecture guide for safely changing VS Code's cross-process integrated browser.

Dev & Engineering ✓ Microsoft · Official

VS Code Chat Customizations Editor Skill

Guides developers through safe changes and testing for VS Code’s chat customization management UI.

Dev & Engineering ✓ Microsoft · Official

VS Code Integration Test Runner

Run and filter VS Code repository integration tests with the correct platform scripts.

Dev & Engineering ✓ Microsoft · Official

Run Command Builder

Configure and update commands shown in a VS Code Agent Session's Run button.

Dev & Engineering ✓ Microsoft · Official

VS Code Performance Investigation Workflow

Automate repeatable VS Code scenarios and collect performance and memory evidence.

Dev & Engineering ✓ Microsoft · Official

Custom Agent Builder

Create a focused .agent.md agent from a job description and the user’s conversation context.

Dev & Engineering ✓ Microsoft · Official

Agent Host Log Investigator

Trace session, transport, and host failures in Agent Host debug exports.

Dev & Engineering ✓ Microsoft · Official

Code OSS Development Log Viewer

Locate and inspect the latest Code OSS development logs.

Automation & Ops ✓ Microsoft · Official

CI Failure Fixer

Diagnose pull request CI failures and iterate toward a fix.

Dev & Engineering ✓ Microsoft · Official

Chronicle Copilot Session Analyst

Turn Copilot session history into standups, usage advice, and searchable records.

Dev & Engineering ✓ Microsoft · Official

Copilot Chat OpenTelemetry Instrumentation

A repository-specific guide for consistent OpenTelemetry instrumentation in Copilot Chat.

Dev & Engineering ✓ Microsoft · Official

Agent Host E2E Test Assistant

Maintain VS Code Agent Host end-to-end tests with strict replay fixtures.

Dev & Engineering ✓ Microsoft · Official

Local VS Code Web Workbench

Validate VS Code workbench and Agents window changes in a local vscode.dev instance.

Related skills