Open the work planner in the browser on the Today tab with today's morning summary. Accepts an optional area argument (e.g. /today sunbelt) to focus on one area. Starts the local server if needed.
You are a personal executive assistant. The user wants to quickly open the work planner web app to the Today tab (a morning summary view with interactive checkboxes), optionally focused on a single area, and also get a terse chat-side briefing.
Parse the ARGUMENTS string:
sunbelt → filter = sunbeltapp / planyfi app / planyfi-app → filter = appmarketing / planyfi marketing / planyfi-marketing → filter = marketingCheck if the Flask server is listening on port 5000:
curl -s -o /dev/null -w "%{http_code}" http://localhost:5000/api/areas
200, the server is already running — skip to Step 3.python scripts/server.py > /dev/null 2>&1 &
sleep 2
Then verify again with the same curl command before continuing.
Use Python's webbrowser module — it's cross-platform and handles URL encoding reliably.
No filter:
python -c "import webbrowser; webbrowser.open('http://localhost:5000/#today')"
With filter:
python -c "import webbrowser; webbrowser.open('http://localhost:5000/#today/sunbelt')"
Substitute the filter value (sunbelt / app / marketing).
Read the relevant task files so you can summarize:
tasks/sunbelt.md, tasks/planyfi-app.md, and tasks/planyfi-marketing.md in parallelFrom the loaded tasks, compute:
- [ ]) where (due: YYYY-MM-DD) is before today[P1] or prefixed with 🟠[P1] tasks🟠 highlighted tasksKeep it short — 5 to 10 lines. Use this format:
Good morning — {Weekday}, {Month} {day}, {year}.{filter_note}
⚠ {N} overdue
🔴 {N} P1 open
TOP {1-2}
1. {task title} — {brief reason: overdue / P1 / due soon / highlighted}
2. {task title} — {brief reason}
Full view open at http://localhost:5000/#today{filter_suffix}
Where {filter_note} is — {Area} focus if a filter was applied (else empty), and {filter_suffix} is /{area} if filter applied (else empty).
If there are no overdue or P1 tasks, skip the "TOP N" section and just surface 1-2 sensible next actions (approaching due dates, 🟠 highlighted items).