agent-host-logs

द्वारा microsoft

एजेंट होस्ट डीबग लॉग निर्यात का विश्लेषण करें। जब ah-logs या ahp-logs ज़िप/फ़ोल्डर, एक Export Agent Host Debug Logs बंडल, events.jsonl, AHP JSONL… दिया जाए तो उपयोग करें।

npx skills add https://github.com/microsoft/vscode --skill agent-host-logs

Agent Host Debug Logs

Use this skill to orient to bundles produced by Developer: Export Agent Host Debug Logs.... These are different from the normal timestamped Code OSS log directory.

Treat the bundle as sensitive: it can contain tokens, prompts, file contents, terminal output, paths, and settings. Keep analysis local and avoid quoting secrets or unrelated user content. Timestamps, event names, IDs, status values, and general property values are fine.

Open the Bundle

The export name usually starts with ah-logs and may be a zip or an already-unpacked folder. For a zip, use the bundled extractor:

python3 .github/skills/agent-host-logs/scripts/extract.py "<archive>.zip"

The final line gives the temporary extraction path. Work from that folder and delete only that exact folder when finished.

Files are collected best-effort, so a valid bundle may contain only some of these:

events.jsonl
Agent Host.log
Window.log
Shared.log
ahp/*.jsonl
copilot-logs/*.log
remote-agenthost.log

What the Files Mean

The basic flow is:

Window/client <-> AHP <-> Agent Host process <-> Copilot SDK
PathWhat it shows
events.jsonlPersisted Copilot SDK events for the selected session: turns, messages, tools, permissions, hooks, skills, and subagents. It can cover a much longer period than the other logs.
ahp/*.jsonlAHP traffic for a client connection. _ahpLog.dir is c2s or s2c; _ahpLog.ts is the wire timestamp. Use this to see requests, responses, subscriptions, actions, notifications, and client-visible ordering.
Agent Host.logLocal Agent Host process behavior: startup, auth, sessions, provider events, tools, Git/worktrees, and host-side errors.
copilot-logs/*.logCopilot SDK process logs that mention the selected session ID. A process log may contain other sessions too.
Window.logRenderer/client behavior: connections, session adapters, UI state, permissions, rendering, and client-side errors.
Shared.logShared-process activity. Usually secondary evidence and often noisy.
Agent Host (<name>).logForwarded logs from a named remote Agent Host.
remote-agenthost.logA directly downloaded remote agenthost.log, when available.

How to Start

  1. List the files and note their sizes.
  2. Identify the reported symptom, approximate time, local or remote host, and any known session, chat, turn, request, or tool ID.
  3. Start with the file closest to the symptom:
    • Turn or provider behavior: events.jsonl
    • Client/server state or ordering: ahp/*.jsonl
    • Host implementation failure: Agent Host.log
    • SDK behavior: copilot-logs/*.log
    • UI behavior: Window.log
  4. Search by the known time or ID, then follow the same operation into the adjacent layer.

Useful correlation fields include the raw session ID, session/chat URI, turnId, interactionId, tool/request IDs, JSON-RPC request id, AHP serverSeq, and event id/parentId.

Important Tips

  • events.jsonl, Copilot SDK logs, and AHP timestamps are normally UTC. The plain .log files may use local machine time; remote logs may use another timezone.
  • An AHP log is connection-scoped and can contain multiple sessions. A Copilot SDK process log can also contain multiple sessions.
  • AHP files rotate as .jsonl, .1.jsonl, .2.jsonl, and so on. Use _ahpLog.ts to reconstruct order.
  • A subscribe result can contain a full snapshot; its contents did not necessarily change at subscription time.
  • _ahpLog.truncated: true means large values were omitted from that log record.
  • Warning or error severity alone does not prove causality. Look for the matching failed response, missing completion, or user-visible consequence.
  • Missing files are normal because export collection is best-effort.

microsoft की और Skills

oss-growth
microsoft
OSS ग्रोथ हैकर व्यक्तित्व
official
accessibility-aria-expert
microsoft
React/Fluent UI वेबव्यू में पहुँच संबंधी समस्याओं का पता लगाता है और उन्हें ठीक करता है। स्क्रीन रीडर संगतता के लिए कोड की समीक्षा करते समय, ARIA लेबल ठीक करते समय, सुनिश्चित करते समय उपयोग करें…
official
generate-canvas-app
microsoft
[पुराना हो चुका है — इसके बजाय canvas-app का उपयोग करें] एक पूर्ण Power Apps कैनवास ऐप जनरेट करें।
official
django
microsoft
Django वेब डेवलपमेंट के लिए सर्वोत्तम अभ्यास जिसमें मॉडल, व्यू, टेम्पलेट और परीक्षण शामिल हैं।
official
github-issue-creator
microsoft
कच्चे नोट्स, एरर लॉग्स, वॉइस डिक्टेशन या स्क्रीनशॉट को साफ-सुथरे GitHub-फ्लेवर्ड मार्कडाउन इश्यू रिपोर्ट्स में बदलें। तब उपयोग करें जब उपयोगकर्ता बग जानकारी, एरर…
official
python-package-management
microsoft
निर्भरता प्रबंधन के लिए uv और कार्य स्वचालन के लिए poethepoet का उपयोग करता है।
official
runtime-validation
microsoft
माइग्रेटेड एप्लिकेशन के लिए रनटाइम सत्यापन — परीक्षण रणनीति (योजना चरण) और परीक्षण निष्पादन (सत्यापन चरण) को शामिल करता है: स्टार्टअप सत्यापन,…
official
azure-postgres-ts
microsoft
Azure Database for PostgreSQL Flexible Server से pg (node-postgres) पैकेज का उपयोग करके कनेक्ट करें, जिसमें पासवर्ड और Microsoft Entra ID (पासवर्डलेस) प्रमाणीकरण के लिए समर्थन है।
official