Case study
Cortex
A private daily command center for my notes, tasks, calendar and projects, where an AI routine writes the morning briefing and nothing changes until I approve it.
- My role
- Solo: design, engineering and review, built with Claude Code.
- Status
- Live, with a public demo that runs the real pages on sample data.
- Built with
- JavaScript
- HTML
- CSS
- Vercel Functions
- Google Drive API
- Todoist API
- Playwright
- axe-core
The starting point
My notes live in Google Drive, my tasks in Todoist and my schedule in Google Calendar. I wanted one screen that pulls the day together, stays private, and doesn't depend on a computer left running at home.
What I built
Cortex is plain HTML, CSS and JavaScript with no build step, plus small Vercel functions. It has six tabs, each with its own link: Home, Planner, Finances, News, Vault and Ops, plus a Briefing page.
- Home: today's schedule with the largest open block, a Top 3 ranked by rules with a short reason for each, and the morning briefing
- Planner: tasks sorted by urgency and size, today hour by hour, the week and the month on one screen
- Vault: every note in the Second Brain with search, filters and a reader
- Ops: deploy state, open pull requests and shipping totals across my projects from GitHub
- News: headlines from free RSS feeds, with broken feeds skipped and named
AI that proposes, a person who decides
Each weekday morning a Claude routine writes a briefing file to Drive. Cortex reads it and turns each suggestion into a card with Approve and Reject. Before acting, the server checks the action against an allowlist, re-reads the task or event, and refuses with "Stale, review again" if it changed since the briefing was written.
Only five actions are supported, nothing is ever deleted, reschedules come with a 10-second Undo, and every decision goes into an audit log. Gmail stays inside the routine; Cortex never gets access to it.
Privacy and security
- The browser asks Google Drive for read-only access; the server can only write the files Cortex creates
- Private task topics show only as a generic label on the Home screen
- The dashboard key is compared in constant time, and signed-out visitors see a sign-in screen, never sample data
Quality
CI type-checks the code, runs the tests, audits production dependencies and scans every demo tab with axe for accessibility on every change. The demo's sample data uses the same TypeScript types as the real data, so the two can't drift apart.