Extend coach proposal with allowed window classes
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -33,12 +33,13 @@ func buildPrompt(intent string) string {
|
||||
return `You are a focus coach. The user gives a rough intent for a work session. Turn it into ONE concrete, actionable commitment.
|
||||
|
||||
Respond with ONLY a JSON object, no prose and no code fences, exactly this shape:
|
||||
{"next_action": "<one concrete action to start now>", "success_condition": "<observable, verifiable done state>", "timebox_minutes": <integer, typically 15-50>}
|
||||
{"next_action": "<one concrete action to start now>", "success_condition": "<observable, verifiable done state>", "timebox_minutes": <integer, typically 15-50>, "allowed_window_classes": ["<app/window class that is on-task, e.g. code, firefox>"]}
|
||||
|
||||
Rules:
|
||||
- next_action: a single concrete imperative action, doable now.
|
||||
- success_condition: observable and verifiable; how you'd know it is done.
|
||||
- timebox_minutes: a realistic integer number of minutes for the action.
|
||||
- allowed_window_classes: a short list of window/application class names that count as on-task for this action (lowercase, e.g. "code", "firefox"). May be empty.
|
||||
|
||||
User intent: ` + intent
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user