Bible Study Planner
Bible Study Planner turns a Bible passage into next Sunday's lesson for the Sunday School Assistant. It's a local tool that drives Claude Code through about 15 steps: an independent Bible study first, then the classroom and Solo lessons, then reviews, play-throughs and checks. When it's done, it waits for me to read its notes and press Deploy.
The study comes first
Three researchers read the passage through different lenses (text and flow, historical background, and words and theology) using public sources. A “professor” drafts the study, a critic attacks it, and a revision produces the final version. The critic checks for ten failure modes: eisegesis, allegorizing, moralism, overreaching typology, proof-texting, ignoring context, factual slips, overclaiming, missed emphasis and copyright.
The method is grammatical-historical: observation, interpretation, correlation, application. Stories are read as describing what happened, not as “be like David” morals. Any line drawn to Christ has to say what justifies it: an explicit New Testament link, a type or a theme. The study never sees the curriculum or the lessons, so it can check them honestly.
Then it writes, and checks its own work
A brief sets the big idea, the memory verse and the game lineup. Then the classroom lesson, the Story Theater art and the Solo lesson are written in parallel. Reviewers check the facts, and a comparison step flags every place where the study and the curriculum disagree. Facts are corrected to the text, interpretive differences keep the curriculum's framing with a note for the teacher, and moralizing gets reworded. Finally, bots play through every lesson in a real browser before the code checks run.
Architecture
- Local and private. A run starts from a dashboard that only answers on localhost (it returns 404 in production) or from a chat command. A detached runner works through the steps, up to four at a time. Each step writes its status, events, token use and cost to a run folder, which the dashboard polls every few seconds.
- Every AI step is headless Claude Code (
claude -p) with a prompt template, a JSON schema for its output and an allow-list of tools. Opus handles the thinking steps, and Sonnet handles summarizing, QA and quick fixes. It runs on my Claude subscription, so there's no API key to manage. - Guardrails. Outputs are schema-validated. A file-scope guard reverts any edit outside the run's own files. The agents can't run git, npm or curl. Lessons that have already been taught are frozen with SHA-256 locks, and Deploy is the only step allowed to touch git.
- Resilient. A stalled step is retried once. If Claude hits a usage limit, the run waits and picks up where it left off.
- Plain data out. Lessons and studies are typed TypeScript modules registered in the app. The classroom show, the Solo journey and the teacher's study page are generated from them as static pages and deployed by Vercel.


