Skip to content

Desktop app that records your on-screen work session and uses the GitHub Copilot SDK to reconstruct it as an intent + ordered steps, then builds a reusable Skill or Automation for Microsoft Autopilots like Scout, Microsoft Copilot Cowork, or Copilot Studio.

Address analysis in past tense and slim the pre-analysis screen (#45)

adilei3d48432dae51
diff --git a/common/analysis.ts b/common/analysis.ts
index 69912f9..803aecb 100644
--- a/common/analysis.ts
+++ b/common/analysis.ts
@@ -16,9 +16,13 @@ export type Confidence = z.infer<typeof Confidence>;
export const AnalysisStepSchema = z.object({
/** Stable id assigned by the agent (e.g. "s1"); used to target feedback. */
id: z.string(),
- /** Short imperative label, e.g. "Search Google for 'interesting articles'". */
+ /** Short past-tense label addressed to the user, e.g. "Searched Google for 'interesting articles'". */
title: z.string(),
- /** 1–3 sentences of what happened and why it matters. */
+ /**
+ * 1–3 sentences of what happened and why it matters, in the past tense and
+ * addressed to the user (verb-first, e.g. "Opened the technical guide."), not
+ * the third person ("The user…").
+ */
detail: z.string(),
/** Wall-clock epoch span (ms) this step covers, when known. */
startMs: z.number().optional(),
@@ -41,7 +45,7 @@ export const AnalysisSubmissionSchema = z.object({
/** The user's overall goal, e.g. "Submit an expense report". */
intent: z.string(),
intentConfidence: Confidence.default("medium"),
- /** Why the agent believes this is the intent (evidence-grounded). */
+ /** Why the agent believes this is the intent (evidence-grounded), past tense, addressed to the user. */
intentRationale: z.string().default(""),
steps: z.array(AnalysisStepSchema).default([]),
});
diff --git a/electron/describer/instructions.ts b/electron/describer/instructions.ts
index 0b1a9cb..8c19325 100644
--- a/electron/describer/instructions.ts
+++ b/electron/describer/instructions.ts
@@ -118,11 +118,19 @@ Guardrails — do not over-prune:
- **intent**: one sentence naming the user's goal, e.g. "Research and compare
articles on building better habits" or "Submit an expense report".
- **intentConfidence**: "high" | "medium" | "low".
-- **intentRationale**: 1–2 sentences citing the evidence for the intent.
+- **intentRationale**: 1–2 sentences citing the evidence for the intent, in the same past-tense
+ voice addressed to the user — e.g. "Navigated from the technical guide to the blog post, copied
+ a passage, then searched Google for it." Avoid the third person ("The user…", "User was…").
- **steps[]**: ordered; each is:
- **id**: stable short id you assign, "s1", "s2", …
- - **title**: short imperative label, e.g. "Search Google for 'atomic habits'".
- - **detail**: 1–3 sentences of what happened and why it matters.
+ - **title**: a short label naming what the user did, in the **past tense and addressed to the
+ user** — start with a past-tense verb, e.g. "Searched Google for 'atomic habits'" or "Opened
+ the Teams event link". Not imperative ("Search…", "Open…") or third person ("User searched…").
+ - **detail**: 1–3 sentences of what happened and why it matters, written in the **past tense
+ and addressed to the user** — a narration of their own actions. Start with a past-tense verb
+ and omit the subject, e.g. "Opened the Copilot Studio technical guide in Edge." or "Copied a
+ passage from the article and pasted it into Google." Do NOT use the third person ("The user…",
+ "User was…") or the present/continuous tense.
- **startMs / endMs**: the step's \`atMs\` span when known.
- **apps[]**: apps involved (e.g. ["Microsoft Edge"]).
- **evidence[]**: brief refs you relied on — event types, a URL, a frame file, a
diff --git a/electron/describer/tools.ts b/electron/describer/tools.ts
index 8362bab..6f3bb51 100644
--- a/electron/describer/tools.ts
+++ b/electron/describer/tools.ts
@@ -323,15 +323,23 @@ export function createDescriberTools(ctx: ToolContext): Tool[] {
},
intent: { type: "string", description: "One sentence naming the user's overall goal." },
intentConfidence: { type: "string", enum: ["high", "medium", "low"] },
- intentRationale: { type: "string", description: "1–2 sentences of evidence for the intent." },
+ intentRationale: { type: "string", description: '1–2 sentences of evidence for the intent, in the past tense addressed to the user (e.g. "Navigated to the blog, copied a passage, then searched Google for it"). Avoid the third person.' },
steps: {
type: "array",
items: {
type: "object",
properties: {
id: { type: "string", description: "Stable short id, e.g. \"s1\"." },
- title: { type: "string" },
- detail: { type: "string" },
+ title: {
+ type: "string",
+ description:
+ 'A short label naming what the user did, in the past tense addressed to the user (e.g. "Opened the Teams event link", "Searched Google for the passage"). Not imperative or third person.',
+ },
+ detail: {
+ type: "string",
+ description:
+ 'What happened and why it matters, in 1–3 sentences. Write in the past tense addressed to the user, starting with a past-tense verb (e.g. "Opened the Copilot Studio technical guide."). Do not use the third person ("The user…", "User was…") or the present tense.',
+ },
startMs: { type: "number", description: "Step start (atMs)." },
endMs: { type: "number", description: "Step end (atMs)." },
apps: { type: "array", items: { type: "string" } },
diff --git a/src/App.css b/src/App.css
index 7652955..2a2f965 100644
--- a/src/App.css
+++ b/src/App.css
@@ -1815,29 +1815,61 @@ button:focus-visible,
display: flex;
flex-direction: column;
align-items: flex-start;
- gap: 12px;
+ gap: 14px;
color: var(--muted);
font-size: 13px;
}
-.cloud-analysis-note {
- display: flex;
- flex-direction: column;
- gap: 6px;
- max-width: 610px;
+.ws-empty-lead {
margin: 0;
- padding: 12px 14px;
- border: 1px solid var(--line);
- border-radius: 10px;
- background: var(--surface-2);
- color: var(--muted);
+ color: var(--text);
+ font-size: 14px;
+}
+
+.analyze-disclosure {
+ max-width: 620px;
+ margin: -2px 0 0;
font-size: 12px;
- line-height: 1.45;
+ color: var(--muted);
}
-.cloud-analysis-note strong {
+.analyze-disclosure > summary {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ cursor: pointer;
+ list-style: none;
+ color: var(--muted);
+ user-select: none;
+}
+
+.analyze-disclosure > summary::-webkit-details-marker {
+ display: none;
+}
+
+.analyze-disclosure > summary::before {
+ content: "";
+ width: 5px;
+ height: 5px;
+ border-right: 1.5px solid currentColor;
+ border-bottom: 1.5px solid currentColor;
+ transform: rotate(-45deg);
+ transition: transform 0.15s ease;
+}
+
+.analyze-disclosure[open] > summary::before {
+ transform: rotate(45deg);
+}
+
+.analyze-disclosure > summary:hover {
color: var(--text);
- font-size: 12.5px;
+}
+
+.analyze-disclosure > p {
+ margin: 8px 0 0;
+ max-width: 620px;
+ line-height: 1.5;
+ color: var(--muted);
}
.cloud-analysis-caution {
@@ -1856,11 +1888,6 @@ button:focus-visible,
color: var(--text);
}
-.voice-card.quiet {
- border-color: var(--line);
- background: var(--surface);
-}
-
.voice-card-copy {
min-width: 0;
display: flex;
diff --git a/src/Library.tsx b/src/Library.tsx
index dbb686f..340e3b3 100644
--- a/src/Library.tsx
+++ b/src/Library.tsx
@@ -415,7 +415,6 @@ function AnalysisWorkspace({
const voiceLanguage = narrationLanguageLabel(
summary.narrationLanguage ?? DEFAULT_NARRATION_LANGUAGE,
);
- const voiceEmpty = summary.hasNarration && summary.narrationSegmentCount === 0;
const voiceBusy =
narrationStatus?.activeSessionId === sessionId && narrationStatus.phase !== "idle";
const voiceError =
@@ -618,15 +617,6 @@ function AnalysisWorkspace({
</p>
)}
- {voiceEmpty && (
- <div className="voice-card quiet">
- <div className="voice-card-copy">
- <strong>No speech detected</strong>
- <span>The saved voice recording was transcribed, but it contained no usable speech.</span>
- </div>
- </div>
- )}
-
{voiceStale && !analyzing && (
<div className="voice-card">
<div className="voice-card-copy">
@@ -662,19 +652,22 @@ function AnalysisWorkspace({
{summary.processed && !analysis && !analyzing && (
<div className="ws-empty">
- <p>See what you did in this recording, step by step.</p>
- <div className="cloud-analysis-note">
- <strong>GitHub Copilot cloud analysis</strong>
- <span>
+ <p className="ws-empty-lead">See what you did in this recording, step by step.</p>
+ <button className="record-cta" onClick={run}>
+ Analyze recording
+ </button>
+ <details className="analyze-disclosure">
+ <summary>What gets sent to GitHub Copilot</summary>
+ <p>
Analyze sends the event timeline—including window and document titles, URLs,
and clipboard previews—plus extracted screen images, narration text, and other
- content you provide to GitHub&apos;s cloud service for processing by GitHub Copilot.
- </span>
- <span className="cloud-analysis-caution">
- Do not analyze a recording that may contain passwords, access tokens, API keys,
- credentials, secrets, or other sensitive or confidential information.
- </span>
- </div>
+ content you provide to GitHub&apos;s cloud service for processing by GitHub Copilot.{" "}
+ <span className="cloud-analysis-caution">
+ Do not analyze a recording that may contain passwords, access tokens, API keys,
+ credentials, secrets, or other sensitive or confidential information.
+ </span>
+ </p>
+ </details>
{voicePending && (
<p className="voice-analysis-note">
{narrationStatus?.model === "ready"
@@ -682,9 +675,6 @@ function AnalysisWorkspace({
: `Your ${voiceLanguage} voice is transcribed in the same language first, then analyzed. The first run downloads a ${NARRATION_MODEL_DOWNLOAD_LABEL} voice model once.`}
</p>
)}
- <button className="record-cta" onClick={run}>
- Analyze recording
- </button>
</div>
)}