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
Not recommended
51/ 100 5-point scale 2.6 / 5
Trust15 / 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.

Reliability7 / 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.

Adaptability10 / 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.

Convention9 / 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.

Effectiveness6 / 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.

Verifiability4 / 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
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 it does & when to 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.

Pros & cons

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 to install

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 to use

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

Tool Rename Compatibility Check

Protect existing prompts and tool configurations when built-in tools are renamed.

Dev & Engineering ✓ Microsoft · Official

Copilot Chat OpenTelemetry Instrumentation

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

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

Agent Host E2E Test Assistant

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

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 Agents Window Sessions

Safely implement and repair VS Code Agents window features.

Dev & Engineering ✓ Microsoft · Official

Commit Assistant

Creates repository-style commit messages and safely commits code changes.

Dev & Engineering ✓ Microsoft · Official

Agent Host Log Investigator

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

Dev & Engineering ✓ Microsoft · Official

VS Code Unit Test Runner

Run VS Code repository unit tests by file, test name, or compiled-output glob.

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 Accessibility Development Guide

A practical specification for accessible interactive features in VS Code.

Design & Frontend ✓ Microsoft · Official

VS Code CSS Layout Standards

Build reliable VS Code-style CSS layouts and text truncation behavior

Dev & Engineering ✓ Microsoft · Official

VS Code Chat Performance Lab

Benchmark chat rendering and detect memory growth across VS Code builds.

Dev & Engineering ✓ Microsoft · Official

Component Fixtures for Screenshot Testing

Create stable, theme-aware VS Code component fixtures for isolated screenshot testing.

Dev & Engineering ✓ Microsoft · Official

VS Code Smoke Test Assistant

Run, filter, and debug VS Code end-to-end smoke tests.

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

Local VS Code Web Workbench

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

Dev & Engineering ✓ Microsoft · Official

Feedback Action

Reads current-session feedback and applies the requested code changes.

Related skills