Skip to main content

Command reference

All commands live in the repository root and read .env.

Capture​

CommandDoes
./sp-start [--mode portal|live] [--fg]Start the recorder with the capture profile for the mode. Normally the app runs this
./sp-stopStop the recorder and the auto-switcher
./sp-mode [live|portal|auto] [--json]Show, pin or unpin the mode
./sp-domains list|add <host[:subdomains]>|remove <host>Manage the portal allowlist
./diag-drm [seconds]Phased test of which capture path blanks protected video

Lectures​

CommandDoes
./lecture list [--since 7d] [--json]Sessions found in the captures
./lecture build [<id>|last|all] [--since 7d]Build one or more sessions
./lecture build --from HH:MM [--to HH:MM] [--title T]Build one session for a time window
… --no-visionSkip slide descriptions
… --cards NUpper bound on cards (default 20)
./lecture qa-import <id> <export.txt>Use a meeting app's Q&A export: anonymise it for the build and score the live capture against it
./lecture watch [--idle 5]Build each session a few minutes after it ends
./lecture doctor [--quick] [--json]Health checks
./lecture reviewToday's cards within the day's share of your weekly minutes, lowest predicted recall first (FSRS-6); pass/fail goes to reviews.jsonl in the lecture's folder
./lecture review stats|plan [--json]Due and new counts, minutes this week, target recall, cards that keep failing; plan re-runs the workload simulation
./lecture review settings --minutes 60 --class-days SatWeekly budget and class days (half share); no streaks
./lecture review card --card ID [--q ..] [--a ..] [--suspend|--delete]Edit, suspend or delete a card
./lecture mastery [--json]Per module: predicted recall, closed-book accuracy (also at Apply and above), confidence grid, sure-but-wrong items
./lecture lanes [--json]How long each kind of model caller waited (interactive, time-boxed, background, build), from lectures/llm_slot_metrics.jsonl
./lecture capstone peer add|consent|review|doc|check|feedback|classify|overlapPeer review coach: checks the reviews you write and sorts feedback you receive; never writes a comment
./lecture capstone sim start [--full [--practice]], sim next|decide|update|reply|rate|hotwash [--postmortem ID]Incident drill, you as incident commander. Micro: 20 min, 3 injects. Full: 60 min, 5 injects unlocked by the clock, status updates between injects; the hot-wash rates comms cadence, the reporting window named to the regulator (from the dated snapshot, each clock marked verify), a written golden-set case, and action items from your postmortem. Your self-rating comes first
./lecture capstone voice voices|say|answer --audio WAV|log|summaryPanel defence out loud: each reviewer speaks in a built-in macOS voice, your recorded answer is transcribed by whisper.cpp on this Mac and goes through the same turn rules as a typed one. Pace and fillers are shown as information only; recordings are deleted once transcribed. python3 tools/voice_bench.py measures the processing time without a microphone
./lecture agenda [ID] [--no-notes] [--cached] [--json]Agenda parts covered, partial, moved or skipped as the class ran; adds a "How the class ran" block to the notes
./lecture prequestions make|show|guess|mark|resolve --day YYYYMMDDBefore class, 3 to 5 questions from the agenda in live/<day>/agenda.txt, spread across its parts (exercises and breaks skipped); you type a guess for each. After class, each is checked against what was said. The Live screen makes them for the next class within a week
./lecture glossary build|show|add --term T|remove --term T|suggest [ID]Course glossary from slide text and the evidence bank: acronyms, product names and evidence-bank words are active; a capitalised word seen only on slides waits for review. Active words are never removed by the name filter; anything the attendee roster matches is kept out. suggest lists transcript words that look like a misheard term, for review only
./lecture notes-v2 [ID]Notes written outline first: a title from the candidate list, verbatim extracts per section, each section from its own lines, then an audit; into notes_v2/ beside the current notes
STUDY_ASR_EVENT=1 (Settings → Capture)The live follower transcribes each audio chunk as it closes, about 5 s behind instead of minutes; read at start-up, so change it between classes
python3 tools/asr_replay.py --day DAY --from HH:MM --minutes 15 [--edge-only]Replays stored chunks at real-time pace into the event-driven pass with a model build running; reports lag, chunk-edge words missing against a one-pass decode, and duplicates. --edge-only skips the pacing and measures edge quality only
./lecture gapfill [ID] --audio FILE | --replay-from ISO [--from HH:MM --to HH:MM] [--dry-run]Fill a late start or a hole from the class recording's audio (a file, or the audio captured while it was replayed on this Mac): placed by three-word anchors either side, cut by word order, each line with an alignment confidence. Writes transcript_pre.jsonl/.md; existing lines never change. Rebuild to use the lines in notes
python3 tools/gapfill_bench.py --day DAY --holes HH:MM,...Removes ten-minute windows from a fully captured class and fills them back from its own audio joined into one file: time error, coverage, duplicates, and a hash of the untouched lines
./lecture scenes [ID] [--no-vision]Classify kept frames as slide, shared document, gallery, break or other (window title, dwell, on-device OCR layout, vision model last) into slides.jsonl. Build the OCR helper once: swiftc -O tools/ocr/main.swift -o tools/ocr/ocr
./lecture scene-labels list|set --id ID --label LThe labelled keyframes for tools/scene_bench.py; tools/scene_prelabel.py pre-labels them with the vision model
./lecture cornell show|build|summary ID [--text ..]Cornell view: cue questions from the notes' timed points (also as cards), your own summary
./lecture teachback start --lecture ID [--section S] / score --id X --marks s1,s3Find the planted errors; scored against the hidden key
./lecture doctor --privacy [--sync-guard REPO]Checks that endpoints, evals and capture stay local; refreshes the guard's hashed roster
./transcript_ref.py <folder> <reference.txt>Merge a reference transcript and measure word error rate
./lecture next [--json]The next class in the programme calendar
./lecture after [<id>|last] [--json]After class in one go: import the meeting app's files, build, check that no removed attendee name is left in the lecture files, rewrite qa.md. Writes after_class.json; refuses while capture runs or the judge is loaded
./lecture curate [--day yyyymmdd] [--background] --jsonLive class: one round of curated top questions from what was taught since the last round, the Q&A, the agenda and the evidence bank. Appends to questions.jsonl and top_questions.md
./lecture cite --t <time> --text <q and answer> [--sources S1,S2] [--day yyyymmdd] --jsonCitations for an answer: the evidence-bank sources it names and the transcript lines near its time that share its words, with the slide then
./lecture finish [<id>|last|all]Browser mode: after Lecture Lens Studio ran a lecture, write its vault note and update manifest.json
./live-sync questions|outline|slides|allAsk the running live follower to update now instead of at its next 10-minute batch; waits up to 3 minutes for the result
tools/merge_reference_transcript.py <live_dir> <reference.txt> <out.md> [--keep 1,2] [--label 1=Name]Put clock times on a dictation app's Speaker N: text export by aligning it to the live whisper words; speakers not kept become "Attendee"; the follower's own lines fill any gap over 90 s. lecture build uses transcript_merged.md when present
tools/retranscribe_recordings.py <folder> <start_utc> <end_utc>Re-transcribe saved system-audio chunks with whisper.cpp (for a recording played back on this Mac)

Study​

CommandDoes
./study ask "question" [--since 7d] [--app NAME] [--json]Answer from your captures, with sources
./study summarize [--since 3h | --date YYYY-MM-DD]Notes for a period
./study flashcards [--since 3h] [-n 20]Cards for a period
./study checkRecorder and model server health

Evaluation​

CommandDoes
tests/evals/run.sh [--smoke|--judge-only|--regen-goldens]Judged evaluation
tests/evals/run_judge_bench.shJudge benchmark
eval/run_eval.py --configs think_offSlide-reading evaluation

Maintenance​

CommandDoes
./check.shUnit tests, contract checks, self-tests
app/build_app.sh [--test] [--open]Build, sign and install the app
tools/setup_hooks.shTurn on the content guard hooks
tools/content_guard.py --allScan the tracked tree
tools/publish.sh [--dry-run]Guarded push