Skip to content
a2105zPublic

About

Intelligent constraint-aware time blocking engine — schedules tasks under availability and hard constraints

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Chronos

AI interprets your week. A constraint engine places the blocks.

Chronos turns natural-language planning into a conflict-free calendar — then explains anything that cannot fit. The parser (and optional LLM) only interprets intent; a verified scheduling engine remains the source of truth.

Backend tests Stack License


The plan (what we built)

Chronos started as a class constraint scheduler. This release turns it into a full AI-native planner:

  1. Natural language → structured intent — deterministic parser (always on) plus optional OpenAI refine
  2. Multi-spot requests — e.g. “find me 3 spots, each 2 hours” becomes three contiguous blocks
  3. SchedulingEngine as authority — hard constraints never silently invent capacity
  4. Diagnostics — clear reasons when work stays unscheduled
  5. Interactive calendar — FullCalendar week view with drag, resize, and create
  6. Multi-user auth — JWT accounts; each user owns tasks, availability, constraints, and blocks
  7. CST/CDT time rules — past starts rejected with a clear America/Chicago message
  8. Ship path — Docker Compose, CI on master/main, seeded demo account
flowchart TB
  subgraph UI["React app"]
    Plan["Plan · natural language"]
    Cal["Calendar · FullCalendar"]
    CRUD["Tasks · Availability · Constraints"]
  end

  subgraph API["FastAPI"]
    Auth["JWT auth"]
    AI["/api/ai/plan · explain · suggestions"]
    Sched["/api/schedule"]
  end

  subgraph AILayer["AI boundary — interprets only"]
    Det["Deterministic parser"]
    LLM["Optional OpenAI refine"]
    Apply["Persist PlanIntent"]
  end

  subgraph Engine["Source of truth"]
    SE["SchedulingEngine"]
    Diag["Diagnostics · unscheduled reasons"]
  end

  DB[(SQLite · per-user rows)]

  Plan --> AI
  Cal --> Sched
  CRUD --> Auth
  AI --> Det
  Det --> LLM
  LLM --> Apply
  Apply --> DB
  Sched --> SE
  SE --> Diag
  SE --> DB
  Diag --> Cal
Loading

Deep dive: TECHNICAL.md · more docs in docs/


Why Chronos

Most “AI calendars” invent a plan and hope. Chronos separates concerns:

Layer Responsibility
AI planner Parse plain English into tasks, availability, and constraints
Scheduling engine Place blocks under hard constraints — no overlap, no fantasy capacity
Diagnostics Tell you why something stayed unscheduled

Hard constraints: availability windows, protected blocks, deadlines, earliest start, max continuous work, no overlap.
Soft preference: morning / afternoon / evening influences scoring — never silently drops a task.


Product surface

View What it does
Plan Natural-language composer (works with zero API keys)
Calendar Week grid — drag, resize, select-to-create, .ics export
Tasks / Availability / Constraints Precise controls when you want them
Auth Register / login; JWT multi-user isolation

Quick start

Demo account

Seeded on first API startup when no users exist:

Email [email protected]
Password chronos-demo

Backend

cd backend
python3 -m venv .venv
source .venv/bin/activate          # Windows: .venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reload --host 127.0.0.1 --port 8000

Frontend

cd frontend
npm install
npm run dev -- --host 127.0.0.1 --port 5173

Docker

cp .env.example .env
docker compose up --build

Optional: set OPENAI_API_KEY in .env to refine NL parsing. The deterministic parser always works without it.


Try these prompts

No API key required:

Find me 3 spots, each 2 hours long for deep work
Schedule 4 blocks of 90 minutes for studying
give me 3 two-hour sessions
Schedule 3 hours of deep work on the Chronos resume tomorrow morning, high priority
Protect lunch every day from 12 to 1
I'm free weekdays 9am to 5pm
Block 90 minutes to study algorithms before Friday, can split
I have a test for STAT 410 on Thursday at 5–6:30. Block out per day to study for this

Stack

Area Tech
Frontend React 18, TypeScript, Vite, FullCalendar, React Router
Backend FastAPI, SQLModel, SQLite, JWT + bcrypt
AI Deterministic planner + optional OpenAI refine
Engine Scored greedy allocation, coalesced blocks, diagnostics
Time America/Chicago (CST/CDT) for “already passed” rules
Ops Docker Compose, GitHub Actions (master / main)

Tests

cd backend && pytest -q
cd frontend && npm test -- --run && npm run build

Backend suite: 88 tests (planner, constraints, schedule moves, CST, AI multi-spot).


Team

Built by Aarav Mittal, Josh Olmos, Anjay Krishna, and Ojas Bankhele.

License

MIT — see LICENSE.

About

Intelligent constraint-aware time blocking engine — schedules tasks under availability and hard constraints

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages