Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
microsoft avatar

Code Oss Logs

  • 65 installs
  • 188k repo stars
  • Updated July 28, 2026
  • microsoft/vscode

code-oss-logs is an agent skill that locates and reads Code OSS or Agents app dev build logs across main, renderer, extension host, and agent host processes.

About

The code-oss-logs skill guides agents through finding and reading logs from Code OSS or Agents app development builds. It maps default user data directories under $HOME/.vscode-oss-dev and explains how custom --user-data-dir paths redirect to alternate logs folders. Each run creates a timestamped session folder with main.log, agenthost.log, mcpGateway.log, sharedprocess.log, and per-window renderer, exthost, and output channel logs. A directory layout table ties investigation goals to files such as renderer.log for startup, exthost.log for extensions, agenthost.log for Copilot agents, and mcpServer logs for MCP issues. The procedure lists recent folders with ls -lt, navigates the newest session, and filters with tail or rg. It documents reload-specific output folders, temporary console forwarding via isDevConsoleLogForwardingEnabled, and lint-hostile Boolean guards that must be reverted before check-in. Use when debugging Code OSS dev builds, extension host failures, agent sessions, MCP gateway problems, or terminal and network errors.

  • Maps Code OSS and Agents app log roots including custom user-data-dir paths.
  • Directory layout table links startup, extension, agent, MCP, and terminal issues to files.
  • Documents per-window exthost, output channel, and reload-specific log folders.
  • Includes tail and rg commands plus temporary console forwarding workflow.
  • Warns to revert dev console forwarding and remove probes before finishing.

Code Oss Logs by the numbers

  • 65 all-time installs (skills.sh)
  • Ranked #276 of 610 Debugging skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

code-oss-logs capabilities & compatibility

Capabilities
log root and user data dir resolution · timestamped session folder navigation · use case to log file mapping · tail and rg filtering commands · temporary console forwarding workflow
Use cases
debugging
From the docs

What code-oss-logs says it does

Find and display logs from the most recent Code OSS or Agents app dev run.
SKILL.md
npx skills add https://github.com/microsoft/vscode --skill code-oss-logs

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs65
repo stars188k
Security audit3 / 3 scanners passed
Last updatedJuly 28, 2026
Repositorymicrosoft/vscode

Where are Code OSS dev build logs and which file should I read for extension or agent failures?

Locate and read Code OSS or Agents app dev build logs across main, renderer, extension host, agent host, and MCP processes.

Who is it for?

Developers debugging Code OSS or Agents app dev builds who need structured log navigation.

Skip if: Skip for production VS Code installs, non-dev builds, or issues unrelated to local log files.

When should I use this skill?

User asks to find Code OSS logs, read renderer or extension host logs, or debug agent or MCP errors.

What you get

The correct timestamped log folder identified with targeted log files read and filtered for the investigation.

Files

SKILL.mdMarkdownGitHub ↗

Code OSS Logs

Find and display logs from the most recent Code OSS or Agents app dev run.

Log Root Directories

AppDefault User Data DirLogs Path
Code OSS$HOME/.vscode-oss-dev$HOME/.vscode-oss-dev/logs/
Agents app$HOME/.vscode-oss-dev$HOME/.vscode-oss-dev/logs/

If Code OSS was launched with --user-data-dir=<dir>, use <dir>/logs/ instead of the defaults above. Launch and debugging helpers often create temporary user data dirs under .build/; always prefer the exact user data dir from the launch command when it is known.

Each run creates a timestamped folder like 20260330T163430. The most recent folder sorted by modification time is usually the one the user cares about.

Procedure

1. Identify which app the user is asking about: Code OSS or Agents app. If unclear, check both. 2. Find the most recent log folder:

    ls -lt "$HOME/.vscode-oss-dev/logs" | head -5
    # or for a custom user data dir:
    ls -lt "<user-data-dir>/logs" | head -5

3. Navigate into the most recent folder and list contents. 4. Read the relevant log file(s) based on what the user is investigating. Use tail for recent entries or rg to filter.

Directory Layout

Each timestamped log folder has this structure:

<timestamp>/
├── main.log                    # Electron main process (app lifecycle, window management)
├── agenthost.log               # Agent host process (Copilot agent, model listing, agent sessions)
├── mcpGateway.log              # MCP gateway/server coordination
├── sharedprocess.log           # Shared process (extensions gallery, global services)
├── telemetry.log               # Telemetry events
├── terminal.log                # Terminal/pty activity
├── ptyhost.log                 # Pty host process
├── network-shared.log          # Shared network activity
├── editSessions.log            # Edit sessions / cloud changes
├── userDataSync.log            # Settings sync
├── remoteTunnelService.log     # Remote tunnel service
│
└── window1/                    # Per-window logs (window1, window2, etc.)
    ├── renderer.log            # Renderer process (workbench UI, services, startup)
    ├── network.log             # Per-window network activity
    ├── views.log               # View/panel activity
    ├── notebook.rendering.log  # Notebook rendering
    ├── customizationsDebug.log # Agent customizations debug info (Agents app)
    ├── mcpServer.*.log         # Per-MCP-server logs (one file per configured server)
    │
    ├── exthost/                # Extension host logs
    │   ├── exthost.log         # Extension host main log (activation, errors)
    │   ├── extHostTelemetry.log
    │   ├── <publisher.extension>/  # Per-extension log folders
    │   │   └── <extension>.log
    │   └── output_logging_<timestamp>/  # Extension output channels
    │
    └── output_<timestamp>/     # Output channel logs (workbench side)
        ├── tasks.log           # Tasks output
        ├── agentSessionsOutput.log  # Agent sessions output (Agents app)
        └── agenthost.<clientId>.log  # Agent host IPC traffic when tracing is enabled

Multiple output_ Folders

A new output_<timestamp>/ folder and a corresponding output_logging_<timestamp>/ inside exthost/ is created each time the window reloads within the same session. The session-level timestamped folder, such as 20260330T163430/, stays the same, but each reload gets fresh output channel directories. The most recent output_* folder by timestamp has the logs for the current or latest reload. Earlier folders contain logs from prior reloads in that session.

Key Files by Use Case

Investigating...Check these files
App startup / crashesmain.log, window1/renderer.log
Extension issueswindow1/exthost/exthost.log, window1/exthost/<publisher.ext>/
Copilot / agent issuesagenthost.log, window1/exthost/GitHub.copilot-chat/
Agent host IPC (Agents app)window1/output_<timestamp>/agenthost.*.log
MCP server problemsmcpGateway.log, window1/mcpServer.*.log
Terminal problemsterminal.log, ptyhost.log
Network / auth issuesnetwork-shared.log, window1/network.log
Settings syncuserDataSync.log
Agent customizationswindow1/customizationsDebug.log (Agents app)

Useful Commands

# Recent entries from a log file
tail -50 "<timestamp>/window1/renderer.log"

# Search all logs in a run for a probe marker or error
rg -n "MY_PROBE|error" "<timestamp>"

# Show non-empty logs in a run
find "<timestamp>" -type f -size +0 -print

Temporary Console Forwarding Workflow

When using temporary console.log probes and you need those probes to persist in the normal log files, enable dev console forwarding locally before launching Code OSS.

1. In src/vs/platform/log/common/log.ts, find isDevConsoleLogForwardingEnabled. 2. Temporarily enable the commented Boolean("true") line:

    export const isDevConsoleLogForwardingEnabled = false
        || Boolean("true") // done "weirdly" so that a lint warning prevents you from pushing this
        ;

3. Build or let the watch task pick up the change. 4. Launch Code OSS or the Agents app and reproduce the issue. 5. Read the relevant logs. 6. Before finishing, restore the flag to its default-off state and remove every temporary console.log probe.

The Boolean("true") form is intentionally lint-hostile so an accidentally enabled flag should be caught before check-in. Do not check in this flag enabled.

Tips

  • For temporary dev probes in source builds, either console.log or ILogService is fine. Use whichever is easiest in the code you are touching.
  • console.log probes must never be checked in. If logging code is intended to stay in the product, use ILogService instead.
  • If dev console forwarding is enabled in the source build, console.debug, console.error, console.info, console.log, and console.warn are written through the process log service into the normal log files.
  • Console probes land in the log for the process that emitted them: main process in main.log, renderer/workbench in window1/renderer.log, shared process in sharedprocess.log, pty host in ptyhost.log, and agent host in agenthost.log. Extension host console output is observed from the renderer side and appears in window1/renderer.log when forwarding all extension-host console output is enabled.
  • If console forwarding is not enabled, use ILogService for probes that must persist in the log files; native console.log may only appear in DevTools or stdout.
  • Not all log files have content. Many are created empty and only populated if that subsystem produces output.
  • window1/ is the first window; multi-window sessions will have window2/, etc.
  • Log lines follow the format: YYYY-MM-DD HH:MM:SS.mmm [level] message.

Related skills

FAQ

What does code-oss-logs produce?

Guided navigation to the latest Code OSS log session with the right files for startup, extensions, agents, or MCP issues.

When should I use code-oss-logs?

When debugging Code OSS or Agents app dev builds and you need to locate and read the correct log files.

Is code-oss-logs safe to install?

Review the Security Audits panel on this page before installing in production.

Debuggingtesting

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.