Trace
Current version: 0.1.54
A GitHub Copilot desktop plugin for understanding the activity inside your current chat. /trace opens a live timeline with turn markers and expandable recorded evidence. General explanations describe what events mean. Inside a failed event, Investigate can request a short possible explanation based on the evidence you inspect.
Install Trace
Use the GitHub Copilot desktop app with plugin and canvas support. Download the app and sign in with an account that has Copilot access. Your organization's policies must allow plugin use. See GitHub's app customization guide for current availability and controls.
The GitHub installation includes the runnable plugin. You do not need to clone this repository, install Node.js, run npm commands or build Trace. Copilot supplies its SDK and runtime.
Install in the app
-
Open Customize in the app sidebar. Select the marketplace settings control next to the marketplace dropdown and add this repository:
https://github.com/AndrewGodlewsky/Copilot-Trace -
Choose main if prompted for a branch. In Browse, select the trace marketplace, find trace, and click Install. Its exact plugin identifier is
trace@trace. -
Open Installed and make sure Trace is enabled.
Start a new desktop session and send /trace. The Trace canvas should open beside your chat. Continue chatting to see new activity. Installation and enablement alone do not confirm that the canvas rendered successfully.
Install with Copilot CLI
If you prefer the terminal, use the installed Copilot CLI with the same user and Copilot configuration directory as the desktop app. A custom COPILOT_HOME may target another profile.
copilot plugin marketplace add AndrewGodlewsky/Copilot-Trace
copilot plugin install trace@trace
copilot plugin enable trace@trace
copilot plugin list
Confirm that the inventory shows Trace from marketplace trace as enabled, then start a new desktop session and send /trace. These commands follow GitHub's plugin installation guide.
If copilot is not on PATH, follow GitHub's CLI installation guide. On Windows, you can instead point PowerShell at an existing installed copilot.exe:
$env:COPILOT_CLI_PATH = 'C:\path\to\installed\copilot.exe'
& $env:COPILOT_CLI_PATH plugin list
Replace the example path with the actual executable. Setting this variable does not create a copilot command: replace the leading copilot in each command with & $env:COPILOT_CLI_PATH. Use copilot.exe, not the lower-level copilot-runtime.exe. Trace's development scripts also read this variable.
Update or remove Trace
For a GitHub marketplace installation, run the update command, then start a new desktop session:
copilot plugin update trace@trace
copilot plugin list
To remove Trace:
copilot plugin uninstall trace@trace
copilot plugin marketplace remove trace
Removing the marketplace is optional. It must have no installed plugins remaining; do not use --force to remove unrelated plugins.
Switch an existing local installation to GitHub
First inspect the registered names and sources:
copilot plugin list
copilot plugin marketplace list
If Trace is installed from a local checkout, use its exact installed plugin name and marketplace name in the first two commands below. The example assumes the inventory shows trace@trace in the local trace marketplace. Run one command at a time and stop if any fails:
copilot plugin uninstall trace@trace
copilot plugin marketplace remove trace
copilot plugin marketplace add AndrewGodlewsky/Copilot-Trace
copilot plugin install trace@trace
copilot plugin enable trace@trace
copilot plugin list
Keep the original checkout and any unfinished work. Do not force marketplace removal if it still contains another installed plugin. The GitHub installation is cached; it does not load your checkout live. Start a new desktop session afterward.
If Trace does not appear
- Confirm Customize → Installed shows Trace enabled, or check
copilot plugin list. - Start a new desktop session after installing, enabling or updating. If
/traceis still absent, restart the app and ask Copilot to open the installed Trace canvas. - If the app has no plugin/canvas controls, check the current app documentation and your organization's policies. A CLI install alone does not provide the desktop canvas.
- If marketplace registration reports an existing local source, follow the migration steps above.
Use Trace
Event details include Readable event fields, with expandable nested objects and actual line breaks inside strings. Original JSON preserves the exact retained source, including number text and duplicate keys. Clipped or malformed data remains available in its original form.
Open a directly failed event to see its investigation model and a collapsible Evidence scope. Click Investigate to send only that failure and, when available, its matching start to a separate tool-free Copilot chat. The short result separates what failed, a possible cause, what remains unknown and a next check, with links to the original events. Cancel stops owned work; changed or evicted evidence invalidates its answer. Investigation is available in the current live view.
Settings → Failure investigation remembers the model and reasoning effort across sessions. The default is exact eligible Haiku 5.5 at its highest catalog-supported effort. If unavailable, Trace asks you to choose an eligible model; it does not fall back automatically. Your main chat model stays unchanged. Investigation uses your Copilot account and can consume model usage. See failure investigation for scope, storage and verification limits.
Open /trace beside a chat, then continue chatting. Available history appears first and new events arrive about once per second. Compact, color-coded nodes form a vertical flow; connecting arrows show event order only. Collapsed nodes show message excerpts, recorded model/tool names and short states. Timestamps, event types and evidence stay inside the expandable details. Consecutive hook events from the same agent share a Hooks section: expand it for invocation summaries and the original boundaries in recorded order. Pipeline counts are separate from event counts; one invocation can include multiple callbacks or no configured handler. Open an event to inspect its recorded inputs, results and identifiers. Opening a step or scrolling upward away from the bottom turns off Follow live, so incoming events do not pull you away. Checking it again jumps to the bottom of the entire plugin, including the footer, and resumes following. Scrolling back down manually does not re-enable it.
Open Statistics in the persistent bottom bar for model turns, hook pipelines, tool calls and skill loads, plus hook and skill names. The bar shows a small retained turn/tool count while you scroll. Statistics opens upward as an overlay drawer; Close or Escape returns focus to its button. Opening it pauses Follow live. Counts cover retained events only, pair boundaries by agent and recorded ID, and include invocations with only one boundary available. Events without usable IDs are reported separately. These are not whole-chat totals.
The optional time and usage breakdown distinguishes observed wall time, overlapping operation durations and intervals without supported timing evidence. Host-reported token receipts retain their source and model scope, with original evidence, deduplication and explicit missing or excluded data. Usage observed while Trace is open is not backfilled from history or presented as a billing total. Cache and reasoning measures are not added to input/output totals; monetary estimates remain unavailable. See time and usage.
A Model turn heading marks one iteration of the agent loop. Activity recorded for the same agent before its matching end is indented, followed by a compact Turn complete marker. One user request may involve many turns. Missing boundaries stay explicit, tools can run outside turns, and interleaved agents keep their chronological order. Expand either boundary for the original evidence; indentation shows timing, not causal ownership.
The panel supports user messages, model turn boundaries, assistant messages/intent/reported reasoning, tool starts/results, skill invocations, subagents, hooks, permissions, compaction and host diagnostics when the host supplies them. Skill triggers distinguish user invocation, agent invocation and context loading; an absent trigger stays unknown. Tool results use agent identity and tool-call IDs to find retained starts. Chronological neighbors are not treated as causes.
Tool cards include Observed action stages and category limits with links to the original assistant request, permission records, invocation and result when their IDs and ownership can be matched. Permission details distinguish a single-request approval from a validated recorded session or project-location grant. Recorded scope does not establish current authority or actual reuse, and an absent decision source does not identify a human approver. Invocation entry and approval do not prove that an operation executed; missing permission evidence stays unknown. See action stages for live/history differences and supported fallbacks.
Tool provenance shows recorded MCP provider details when the invocation supplies them. An absent or unverified origin stays Unknown, including built-in or plugin tools without a reliable origin field. Provider labels do not establish network activity or trust. See tool provenance for the metadata basis and limitations.
Tool cards classify recognized requested operations as Read, Search, Edit, Execute or External access. Unrecognized or incomplete evidence stays Unclassified. Categories describe the request, including when it fails or is denied; they do not prove effects. Shell commands remain opaque execution with unknown possible effects. See operation categories for supported contracts and fallbacks.
Hook summaries explain when a documented hook type runs and distinguish reported outcomes from missing or conflicting boundaries. Only explicitly recorded output supports a context or decision description; timing does not explain why the assistant selected an operation. See hook lifecycles for grouping, counts and evidence limits.
Skill details preview the instructions supplied in the recorded load event, with the exact retained text available to expand. The recorded trigger distinguishes user invocation, agent invocation and context loading; unavailable or shortened evidence stays explicit. Loading instructions does not prove that referenced scripts ran or that every instruction was followed. Trace does not read the current skill file to replace historical content. See skill instructions.
Statistics also offers an optional capability comparison. Refresh its snapshot to compare the current main-session tool and skill catalog with retained observed use. The capture time and scope remain visible: not observed here does not mean unused, and today's catalog cannot establish past or child-agent availability. Skill model-invocation availability remains unknown when the host omits it. Refreshing reads existing metadata only. See capability inventory.
The optional instruction-source view separates current host-reported sources and declared scopes from historical skill loads. Refresh requests a source snapshot from the current main session; its text may reflect files changed after a turn, and listed sources are not proof their bodies reached the model. Recorded skill loads keep their original text and evidence links. Missing load times, scope and instruction hierarchy stay unknown. See instruction sources.
The optional Retrieval ledger in Statistics lists recognized recorded reads, searches and web retrieval attempts. It separates requested targets and ranges from successful returned text, failed attempts and missing results, with links to original evidence. Repeated operations and distinct recorded references have separate counts; references are not a count of physical files. Returned information does not prove understanding, use or continued presence in active context. See retrieval ledger.
Partial-evidence labels distinguish requested ranges and excerpts, explicit host-shortened output previews, Trace's own evidence clipping and the retained-history window. Available limits keep their recorded units; unknown coverage stays unknown. Trace does not read a current file or a host output file to fill gaps. See partial evidence.
Contextual scope help explains incomplete history, omitted events, shortened evidence and unmatched boundaries near the affected counts and summaries. A disconnected feed keeps its last retained data visibly stale until reconnection; changing views does not change that status. No observed event is not proof that nothing happened. See evidence scope.
The optional activity view lists retained requests or invocations whose decision, completion or delegated outcome has not been observed. Concurrent records stay separate and link to their original evidence. These are observations about the retained window, not guarantees that work is currently waiting or running. Feed connection and recorded event time remain separate; silence and elapsed time do not diagnose thought, failure or completion. See observed activity.
Open Glossary from the footer or a term button in an event's details for explanations of model turns, tools, hooks, skills, context, subagents, permissions and compaction. Start with a short definition, expand for more detail, and inspect a retained event example when available. Static teaching examples and expired evidence are labeled explicitly. The glossary shares its vocabulary with event explanations and does not control the agent. See glossary.
The glossary also compares instruction and skill guidance, configured hook automation and permission controls. Recorded examples distinguish a hook's explicit decision request from a permission outcome; missing output stays unknown. General explanations describe what each mechanism can do without claiming that a rule was enforced or the task is correct. See guidance and controls.
Compaction details explain recorded attempts and show a retained summary when the host supplies one. Before/after context-token estimates appear only with a supported accounting basis and comparable measurements. Missing boundaries, clipped summaries and unknown outcomes stay explicit; reported compaction success does not prove that meaning was preserved or reveal what the model remembers. See compaction.
Subagent handoff details connect the recorded delegated task, child activity and returned parent-tool result through explicit identities. Same-name and nested agents stay distinct, with original evidence links and literal bounded text. Missing links and results stay unknown; a separate context does not establish which parent instructions or files reached the child. See delegation handoffs.
Failed-operation details can show later related-attempt suggestions with a disclosed matching rule. Original arguments, results and permission outcomes remain separately inspectable; a suggestion does not establish that an operation was a retry or that a failure was recovered. Missing results and partial retained history stay explicit. See recovery attempts.
Recognized assistant check-result statements offer optional comparison with retained validation results. Candidates remain unlinked until you explicitly associate one; a user-linked result does not verify the statement. The exact command, available output and typed process exit stay separate from tool-reported success. Missing evidence is not proof that no check ran. See claims and recorded results.
For supported result contracts, Understand this step explains what a successful read or edit reports and what a typed process exit establishes. Relevance, correctness, assertion results and overall task completion still need separate evidence. Original output remains inspectable, and an optional control opens all retained validation observations without claiming they validated that operation. Unknown or incomplete contracts keep a neutral explanation. See tool outcomes.
The optional validation overview in Statistics lists recognized recorded checks with their command, source, time and evidence. Repeated attempts and earlier failures remain visible; missing completion and unknown process status stay explicit. Process exit, tool status and assertion counts have separate meanings. No validation observed here does not mean none was performed. See validation overview.
The optional repetition overview in Statistics counts exact supported calls within retained evidence and links to each occurrence. Object-key order can normalize; literal strings and array order remain significant. Source and provider identities stay separate, as do repetition, reported tool failures, typed process failures and missing results. These counts do not diagnose a stuck or inefficient agent. See repeated activity.
Use Compare arguments to select two retained tool calls and inspect bounded added, removed, changed or identical values. Selections keep their exact source and original evidence; incompatible, incomplete or expired records show a limitation. Protected fields stay omitted, and affected calls cannot be compared as complete arguments. MCP comparisons describe literal JSON only, with historical schema and meaning unknown. Differences do not establish why an argument changed or prove a retry. See argument comparison.
The optional Predict next action exercise lets you choose an observable category, then inspect the next eligible record. Live practice starts from a fresh observation boundary; retained practice reveals a frozen snapshot one outcome at a time and is labelled as rehearsal of possibly already-seen activity. Missing or ambiguous outcomes remain unknown. Live capture continues, and returning to the current view has an explicit Follow choice. This is local practice, with no model-confidence score or claim that only one next action was reasonable. See prediction practice.
Optional retained playback lets you move through a bounded snapshot with Previous/Next and play/pause controls while live capture continues separately. The snapshot preserves its original evidence and partial-history limits; new activity does not move the playback cursor. Returning to the current live view has an explicit Follow choice. Playback controls never pause or re-run the host agent. See retained replay.
Three locally packaged synthetic examples demonstrate repository exploration, a bug fix and recovery after a failed operation. Step through each demonstration with its lesson and authored annotations kept separate from the example evidence. Example events stay separate from live activity, and their commands are never executed. See example runs.
Optional teaching scenarios offer plausible next actions and the conditions that would make them useful, alongside supported recorded observations and evidence links. These authored alternatives are educational and nonexhaustive; they do not forecast the agent's choices or control the chat. Unknown states receive general guidance. See plausible actions.
The optional prompt-preparation checklist covers your outcome, relevant context, constraints, allowed actions and evidence of success. Consult its examples or compose a temporary draft and copy an outline for your own use. Closing discards the draft; Trace does not send it to the chat. More detail can clarify a request without guaranteeing the result. See prompt preparation.
Open an optional factual recap of a selected request interval or retained range to inspect observed information gathering, tool calls, skill loads, failures and validation. Its counts use the same definitions as Statistics for those selected entries and stay fixed while new activity arrives. Original evidence links, unknown results and partial-history limits remain explicit; the recap does not establish request completion or task success. See observed recap.
Mark a live event as surprising to revisit its original evidence from an optional compact list. Up to 20 marks stay in memory for the open panel; expired evidence leaves an unavailable placeholder. Unmark or clear them without changing recorded activity. Marking is unavailable during practice, playback and examples; live marks remain separate until you return. See bookmarks for limits and lifetime.
Trace keeps up to 300 recent supported events per panel in memory, with up to 12,000 UTF-16 code units of evidence per event; omissions and shortening are labeled. Token deltas, canvas bookkeeping and replay checkpoint copies are excluded. Encrypted/opaque reasoning fields are omitted. Closing the panel releases its observer, server and owned investigation helper. Opening Trace makes no model request; only an explicit Investigate click requests inference. Trace saves model/effort preferences and bounded content-free usage/recovery receipts, not transcript archives or answers. Instruction refresh requests bounded source content from the host; Trace does not scan project paths. Host/provider logs may retain content. Helper runtime files are removed after confirmed release and accounting; failures may leave private recovery files. Event payloads and source snapshots can contain sensitive instruction text, chat content, file paths and tool arguments.
Footer controls
The footer opens Versions, Settings and Logs as centered overlay dialogs, with a dimmed backdrop and Close/Escape dismissal. Closing returns focus to the originating footer button. It includes:
- Version: expand the installed version and browse the short explanation for every release.
- Refresh: immediately check the latest observer snapshot while keeping expanded steps open. Automatic polling continues. This does not reconstruct history that the host could not provide.
- Settings: adjust all panel text from 100% to 150% for this panel, and save the investigation model and reasoning effort across sessions.
- Show logs: inspect, copy or download a text file of plugin diagnostics. Each server/panel keeps its latest 200 structured log entries in memory, with omitted-entry counts. Logs include connection/history status and plugin failures, never chat evidence, tool arguments, IDs, paths, URLs, credentials or raw exception text. A disconnected server uses an explicitly dated cached snapshot if available. Clipboard/download restrictions have selectable-text fallbacks. Startup failures before the panel is available are outside these logs.
- Feedback: open a new GitHub issue form for this repository. Nothing is submitted automatically; paste diagnostic logs if useful.
Develop
Development commands require Node.js 22 or later and a checkout of this repository. There are no npm dependencies and no build step. These requirements apply to working on Trace; the normal GitHub installation uses Copilot's SDK and runtime.
The setup adapts reusable engineering practices from Copilot Explore. See what was transferred, agent instructions, host integration, and development workflow.
Every completed iteration includes a patch version bump, release notes, independent review, recorded verification, packaging, and a verified push to main. Tags, GitHub Releases and installation into your Copilot profile are separate actions.
npm test
npm run check
npm run package
Packaging creates a validated, self-contained plugin directory under ignored dist/. It does not publish or install anything.
npm test includes scale tests over tens of thousands of synthetic events. npm run bench reproduces the hydration, polling and analysis measurements in the efficiency review, which also lists measured trade-offs awaiting owner decisions.
For repository development, start an issue brief with npm run iteration -- start <id>. Record the independent review, then use npm run verify:iteration -- <id> and npm run iteration -- status <id> before publication. For visible changes, first record the owner's actual UI acceptance with npm run iteration -- ui <id> <report-file>. Reports live under ignored .iteration/. See the workflow for the complete sequence and optional measured usage ledger. These Git-based evidence commands run in the development checkout; a packaged plugin does not carry its Git history or private receipts.
Packaged previews (advanced)
npm run package produces a validated snapshot for review and distribution. Use the GitHub marketplace installation for a managed cached copy, or the local marketplace below to test changes from a checkout.
Some desktop versions omit native tab-icon metadata for live local marketplaces. Confirm the logo on the native tab as well as in the panel header after installation; package validation alone does not establish native rendering.
Install for live development (advanced)
Requires the supported desktop app, Node.js 22 or later and a checkout you intend to keep. If trace is already registered from GitHub or another checkout, inspect copilot plugin list and copilot plugin marketplace list, then uninstall Trace and remove its marketplace using those exact names before switching sources. Stop on errors and do not force removal of a marketplace containing other plugins.
From the retained checkout:
# If copilot is not on PATH, first set COPILOT_CLI_PATH to its installed executable.
npm run install:copilot
This checks the package, registers the current directory as the trace marketplace, installs trace@trace, and lists plugins through the Copilot CLI. It uses copilot on PATH or the executable set in COPILOT_CLI_PATH; it does not download a CLI. Confirm Trace is enabled, using copilot plugin enable trace@trace if necessary. Start a new desktop session, then use /trace. If skill discovery has not refreshed, ask Copilot to open the installed Trace canvas.
Keep the checkout in place: local marketplace installs load it live. In particular, do not install from a temporary worktree you plan to remove. Installation/enablement and successful rendering are separate checks. No profile installation is performed merely by running the tests.
Verify against the installed host
Set these to an inspected, matching pair already installed by Copilot:
$env:COPILOT_SDK_DIR = 'C:\path\to\installed\copilot-sdk'
$env:COPILOT_CLI_PATH = 'C:\path\to\installed\copilot.exe'
npm run e2e
For the installation inspected during setup, use copilot.exe beside the copilot-sdk directory. The lower-level copilot-runtime.exe failed extension startup with "No extension launch provider is registered". See runtime selection.
The fixture checks native SDK registration, plugin ownership, actual session history and live event delivery, opening/reopening/closing and local assets. That phase requires zero model requests. It then sends three synthetic inputs to a loopback provider with fixed local responses, checking actual delivery and interaction fields against Trace's projections. A second disposable session allows only the task tool and two configured agents with no tools; four additional fixed responses verify distinct agent identities, parent invocation links and recorded overlap. Two further disposable sessions allow only PowerShell and use three fixed responses to verify denied/approved writes to owned temporary files, action-stage links, pending-permission uncertainty and permission request differences between live delivery and history. A fifth session uses two owned loopback MCP fixtures and two fixed responses to verify distinct provider identities despite identical tool titles; metadata reads and opening Trace add no server calls or inference. All phases use a disposable Copilot home, no paid inference and no existing chat. The fixture does not operate a browser or install into your profile. Unit fixtures cover additional event and attribution cases; fixed responses do not establish real model quality or autonomous tool/skill choices.
The same fifth session also registers three fixture hook types. Five callbacks produce nine recorded pipeline invocations and eighteen original boundaries; the fixture verifies exact projection, counts, batched input and exposed versus absent output. These callbacks are test-owned; Trace remains an observer.
That session explicitly loads an SDK-provided fixture skill before sending its returned prompt. The fixture checks exact Unicode and literal markup, the recorded user trigger, omitted optional arguments and the original body after the fixture source changes. Trace reads no skill body itself. This shares the same twelve fixed responses across five sessions; it does not establish autonomous skill selection or instruction compliance.
Manual acceptance after installation:
- In a new desktop session, send a chat message, then open
/trace. Confirm earlier activity appears. - Continue with a request that normally uses a tool. Confirm new turn/tool events appear without reopening Trace. If the host invokes a skill, inspect its recorded trigger; absent events are not proof that no skill was used.
- Expand evidence while new events arrive. Confirm it stays open, text is readable, and Follow live stops scrolling. Re-enable Follow live and confirm the scrollbar reaches the page bottom, including the footer, as activity arrives and the pane resizes. Scroll upward with mouse/trackpad, keyboard or scrollbar: Follow live should uncheck and incoming activity should leave you where you are. Check it again to resume. Use Tab and Enter/Space to open/close a step with visible focus.
- Resize to a narrow and short pane and check light/dark modes: no horizontal page overflow, clipped controls or unreadable evidence. Evidence may scroll within its own box.
- Close/reopen Trace, confirm it reconnects, and check the native tab identifies Trace.
- At the bottom, expand release notes, refresh with a step open, and try every text size in a narrow pane. Check keyboard focus and close/Escape behavior. Show logs, copy them and export a text file; confirm the diagnostic report contains no chat content. Open Feedback and confirm it targets this repository without submitting.
Automated HTTP/SDK tests do not establish visual rendering or slash-command discovery. Owner acceptance remains required by the repository workflow before publication.
Future work
General chat assistance, web/project investigation, cross-session browsing, transcript exports, saved traces and deeper causal analysis are deferred. The integration guide preserves the constraints for adding those systems. The first-version design records the original proof of concept's scope; explicit failure investigation is the later bounded exception.