Skip to content

feat: implement React dashboard for session profiling (Issue #44, Part 2)#77

Draft
themechbro wants to merge 4 commits intomicrosoft:mainfrom
themechbro:feat/profiler-dashboard
Draft

feat: implement React dashboard for session profiling (Issue #44, Part 2)#77
themechbro wants to merge 4 commits intomicrosoft:mainfrom
themechbro:feat/profiler-dashboard

Conversation

@themechbro
Copy link

This PR implements the frontend UI for the session profiling feature requested in Issue #44.

Note: This is Part 2 of the implementation and is designed to consume the strict JSON data contract established in PR #72.

Features:

  • Replaced the legacy regex parser with a clean, strict JSON parser (lib/parser.js).
  • Added an ExecutiveSummary component for high-level token waste metrics.
  • Implemented color-coded severity badges for the new F-NNN finding IDs.
  • Built a dedicated Remediation Plan table mapping directly to PromptKit components.

I recommend reviewing and merging PR #72 first to lock in the backend schema before merging this UI layer.

themechbro and others added 4 commits March 24, 2026 09:25
Add profile-session template and session-profiling reasoning protocol
for analyzing completed LLM session logs to identify token inefficiencies
and structural waste.

Protocol (session-profiling):
- 5 phases: segment log, map to components, detect inefficiencies,
  quantify impact, produce recommendations
- 7 inefficiency types: redundant reasoning, false starts, re-derivation,
  protocol loops, unused context, verbose compliance, persona drift
- Each recommendation tied to a specific PromptKit component file

Template (profile-session):
- Full frontmatter: persona (specification-analyst), protocols
  (anti-hallucination, self-verification, session-profiling),
  format (investigation-report), params, contracts
- Params: session_log, assembled_prompt, focus_areas
- Non-goals: not a quality audit, not a guardrail remover

Manifest: additive-only changes (protocol + template entries, no
reformatting of existing content).

Co-authored-by: Alan-Jowett <alanjo@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant