Glass Box - AI DevTools | Real-time LLM request inspector with context, token, performance, and replay debugging#314427
Open
shukla10 wants to merge 3 commits intomicrosoft:mainfrom
Open
Glass Box - AI DevTools | Real-time LLM request inspector with context, token, performance, and replay debugging#314427shukla10 wants to merge 3 commits intomicrosoft:mainfrom
shukla10 wants to merge 3 commits intomicrosoft:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new “Glass Box AI DevTools” surface to the Copilot extension that collects sanitized request-logger data and displays it in a dedicated webview panel for inspecting context assembly, token usage, performance, and replay behavior.
Changes:
- Introduces a new
IGlassBoxServicethat builds bounded, sanitized aggregates from the existing request logger (context items, token budget, performance, response text). - Adds a webview-based panel (tabs + request selector + replay) and a contribution/command to open it, plus a new configuration setting to enable capture.
- Adds unit tests for the aggregation logic and sensitive-data redaction utilities.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| extensions/copilot/src/platform/configuration/common/configurationService.ts | Adds a new config key for enabling Glass Box capture. |
| extensions/copilot/src/extension/glassBox/vscode-node/glassBoxServiceImpl.ts | Implements request aggregation/sanitization from IRequestLogger. |
| extensions/copilot/src/extension/glassBox/vscode-node/glassBoxPanel.ts | Implements the Glass Box webview panel UI and replay orchestration. |
| extensions/copilot/src/extension/glassBox/vscode-node/glassBoxContribution.ts | Registers the open command, reacts to setting changes, manages panel lifecycle. |
| extensions/copilot/src/extension/glassBox/test/vscode-node/glassBoxService.spec.ts | Adds unit tests for the Glass Box service aggregation behavior. |
| extensions/copilot/src/extension/glassBox/test/node/sensitiveDataFilter.spec.ts | Adds unit tests for redaction/sanitization helpers. |
| extensions/copilot/src/extension/glassBox/common/types.ts | Defines shared types for aggregates and host/webview messaging. |
| extensions/copilot/src/extension/glassBox/common/sensitiveDataFilter.ts | Implements centralized redaction + preview/label sanitization. |
| extensions/copilot/src/extension/glassBox/common/glassBoxService.ts | Defines the IGlassBoxService interface/identifier. |
| extensions/copilot/src/extension/extension/vscode-node/services.ts | Registers IGlassBoxService in the extension DI container. |
| extensions/copilot/src/extension/extension/vscode-node/contributions.ts | Adds the Glass Box contribution to the extension’s contribution list. |
| extensions/copilot/package.nls.json | Adds setting description text for Glass Box enablement. |
| extensions/copilot/package.json | Contributes the command and the configuration property for Glass Box. |
Author
|
@microsoft-github-policy-service agree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of change : Adds a new webview-based developer panel for debugging and understanding how Copilot's AI system constructs and executes LLM requests — inspect context assembly, token budgets, and performance in real time. Accessible via Copilot: Open Glass Box AI DevTools command.
Why this matters: Today, developers building with LLMs have zero visibility into why AI responses behave the way they do — what context was assembled, how tokens were budgeted, or where latency comes from. This makes debugging AI behavior, diagnosing regressions, and evaluating model alternatives entirely guesswork across any LLM-powered experience
How it helps: Glass Box AI DevTools brings AI debuggability to VS Code by providing visiblity for the full request lifecycle — context assembly, token allocation, model reasoning, and timing — in a single inspectable panel, Turning interaction with AI from Blackbox to GlassBox. The built-in Replay feature lets developers re-send any captured query to a different model and compare responses side-by-side, enabling data-driven prompt tuning, model evaluation, and confident performance optimization.
What it does
plain-English explanations of the math
How to Test
30 sec Demo
GlassBox-AI.Debug.tools.mp4