Automate VS Code performance and memory investigations with repeatable evidence capture.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "auto-perf-optimize" skill from askskill: 1. Download https://raw.githubusercontent.com/microsoft/vscode/main/.github/skills/auto-perf-optimize/SKILL.md 2. Save it as ~/.claude/skills/auto-perf-optimize/SKILL.md 3. Reload skills and tell me it's ready
Launch Code OSS, automate the VS Code workflow I describe, record key steps, and capture a renderer heap snapshot at the end to analyze memory growth sources.
A repeatable workflow run, execution log, and heap snapshot file for memory analysis.
Run the same VS Code scenario twice, summarize each run, and compare performance metrics, screenshots, and anomalies to identify possible regression points.
A comparison summary of both runs with metric differences, key screenshots, and likely performance regressions.
Run the Chat memory smoke runner, complete the specified test flow, save workflow screenshots, and report whether there are signs of memory issues or leaks.
Smoke test results, workflow screenshots, and a brief assessment of memory issue risk.
Drive a repeatable VS Code scenario, collect memory/performance artifacts, verify that the scenario actually happened, then hand the resulting heap snapshots to the generic heap-snapshot-analysis skill when object-level investigation is needed.
summary.json, renderer heap samples, and targeted .heapsnapshot files for one scenarioDo not use this skill when snapshots already exist and the user only wants heap object/retainer analysis. Use heap-snapshot-analysis directly.
@playwright/cli to the same CDP port, take workspace-local screenshots, inspect snapshots, and update the runner's selectors/waits.summary.json and screenshots. Do not analyze a failed login, trust prompt, stuck progress row, or wrong UI state.The scripts/ folder contains stable, generic runners. Use them directly or as templates for scratchpad scripts:
Use the bundled Chat memory smoke runner when the scenario is Chat-specific or can be expressed as repeated Chat prompts. It launches Code OSS, opens Chat, sends prompts, waits for responses, writes screenshots and summary.json, samples renderer heap, and can take selected heap snapshots.
Fast health check:
node .github/skills/auto-perf-optimize/scripts/chat-memory-smoke.mts --iterations 3 --no-heap-snapshots
Targeted post-warmup snapshots:
node .github/skills/auto-perf-optimize/scripts/chat-memory-smoke.mts --iterations 8 --heap-snapshot-label 03-iteration-01 --heap-snapshot-label 03-iteration-08
User-described Chat scenario:
node .github/skills/auto-perf-optimize/scripts/chat-memory-smoke.mts --iterations 8 --message 'For memory investigation iteration {iteration}, summarize the active workspace in one paragraph.' --heap-snapshot-label 03-iteration-01 --heap-snapshot-label 03-iteration-08
Important runner behavior:
…
Generate or update chat customization files for AI coding agents.
Merge session branch changes back into the base branch cleanly.
Create and maintain screenshot test fixtures for UI components effectively.
Launch VS Code OSS in isolation for automation and multi-process debugging.
Configure and manage agents, skills, prompts, and integrations in the editor.
Investigate failed PR checks and iteratively fix CI issues faster.
Run chat performance benchmarks and memory leak checks for VS Code builds.
Let AI control VS Code for coding, debugging, screenshots, and test automation.
Give your VS Code agent real debugging with breakpoints, stepping, and inspection.
Let VS Code agents search and reuse context from your LLMemory vault.
Review code, suggest refactors, and generate tests with AI assistance.
Run vscode.dev locally to test the VS Code workbench and Agents window.