Study companion for Year 10 Maths: planner, sessions, grading, voice
  • Rust 63.6%
  • JavaScript 18.8%
  • Python 11.7%
  • CSS 3.4%
  • HTML 2.2%
  • Other 0.3%
Find a file
2026-11-10 23:09:52 +08:00
.forgejo/workflows ci: run once per change instead of on every branch push 2026-11-09 20:58:44 +08:00
clients/hermes STUDY-3: hermes friction client with workspace switch and OSD timer 2026-11-09 19:48:53 +08:00
docs/voice docs: record the Kokoro benchmark on the 5600G 2026-11-10 20:21:20 +08:00
migrations fix: avoid weekly repeats and add multi-part exam items 2026-11-10 18:16:09 +08:00
packaging fix: serve Kokoro from the compose network instead of host loopback 2026-11-10 21:03:35 +08:00
pipelines STUDY-11: wire live TTS to the real breeze speak API 2026-11-09 20:58:21 +08:00
scripts fix: serve Kokoro from the compose network instead of host loopback 2026-11-10 21:03:35 +08:00
server feat: animate the teaching board with model-authored SVG frames (STUDY-126) 2026-11-10 22:10:47 +08:00
services/reminders STUDY-8: ignore python cache dirs 2026-11-09 19:47:43 +08:00
spec docs: bring README, DESIGN, AGENTS, session spec, API and deploy notes up to date 2026-11-10 20:20:11 +08:00
web fix: bump the service worker cache to v21 so old shells are purged 2026-11-10 23:09:42 +08:00
.gitignore Ignore Python bytecode cache files 2026-11-09 17:40:43 +08:00
AGENTS.md fix: serve Kokoro from the compose network instead of host loopback 2026-11-10 21:03:35 +08:00
Cargo.lock feat: add interactive teaching mode with Kokoro speech 2026-11-10 19:47:49 +08:00
Cargo.toml STUDY-10: breeze-server TTS broker with cache and null-TTS fallback 2026-11-09 17:29:31 +08:00
DESIGN.md docs: note animated teaching-board blocks 2026-11-10 22:50:08 +08:00
README.md docs: note animated teaching-board blocks 2026-11-10 22:50:08 +08:00

breadstudy

Study companion for Year 10 Maths (Nagle Accelerate / Methods pathway). A deterministic planner and mastery model decide what to study; the model generates, grades and teaches inside that plan.

Live at https://study.breadway.dev (Hestia container 7220, Aegis edge).

What it does

  • Plans: indexes the vault (~/Projects/school-notes-year-10/Maths), maps skills to the Test 1-7 course map, and orders practice by FSRS due-ness, mastery and assessment proximity.
  • Runs sessions: 20-minute school-day and 40-minute weekend templates with prime, recall, practice, explain, reflect, break and end phases.
  • Serves items: 300+ verified practice items across 20 skills, seeded from the vault Practice sets and generated with SymPy verification. Items not served in the last 7 days come first after due order.
  • Grades: typed answers, LaTeX and photos, with method marks plus final answer, error tags and written feedback. Graded attempts update FSRS mastery and due dates.
  • Teaches: a teaching board where the model writes prose, equations, steps, SVG diagrams and frame-by-frame animations, with speech and an interrupt control.
  • Reviews: progress page with attempt history, per-skill mastery, recurring error patterns; weekly snapshot endpoint.
  • Pushes: Gotify reminders and a soft-friction client for the laptop (no blocking).

Stack

  • Server: Rust axum + SQLite (litestream replication), container on Hestia.
  • Web: dependency-free PWA in web/ (KaTeX from CDN for maths).
  • Models: DeepSeek V4.1 Flash through the OpenCode Go API for generation, grading and teaching; local llama.cpp fallbacks for grading.
  • Speech: Kokoro as the tts service on the compose network (no host port), Gemini TTS when a key is configured, Breeze as an explicit host-only GPU quality fallback, browser speech as the always-works option. Host-only runs can use the loopback systemd unit instead of the compose service.

Quick start

# on hestia
cd ~/Projects/breadstudy
BREADSTUDY_BIND=0.0.0.0:7220 docker compose -p breadstudy \
  -f packaging/compose.yaml --project-directory=. up -d --build
curl -s localhost:7220/healthz

Key at ~/.config/breadstudy/opencode-go.key, mounted read-only into the container. See packaging/DEPLOY.md for the full runbook, seeding and item generation.

Layout

  • server/src - API, session engine, planner, FSRS, grading, teaching, static serving
  • migrations/ - SQLite schema
  • web/ - PWA: dashboard, session, progress, skill, teach
  • scripts/ - seed and item generation
  • spec/ - session rules and skill map
  • clients/hermes - soft-friction client
  • pipelines/, services/ - nightly generation and reminders
  • docs/voice/ - Breeze benchmark on the A380

Tests

cargo clippy --locked --all-targets -- -D warnings
cargo test --locked
python3 web/tests/check_pwa.py