
Die Herausforderung
Das Warten auf einen KI-Agenten erzeugt viele kurze Pausen, die meist am Smartphone verloren gehen.
Der Ansatz
Entwicklung einer Claude Code Mod in TypeScript und TSX, die jeweils eine Lernkarte im Bereich über dem Prompt anzeigt. Acht Event-Hooks wählen anhand von Tool-Namen, Dateiendungen und Shell-Befehlen ein Thema; ein 5-Box-Leitner-System plant Wiederholungen und Haiku generiert im Hintergrund neue Karten.
Das Ergebnis
Kurze Fakten und Ja/Nein-Fragen passend zur aktuellen Arbeit, die sofort ausgeblendet werden, sobald Claude eine Berechtigung anfordert. Enthält 108 handgeschriebene Karten für JavaScript, Python und Git sowie 14 weitere Themen.
So ist Holdtime aufgebaut
Die technische Architekturbeschreibung ist auf Englisch.
A Claude Code mod that runs inside Claude’s own window. Event hooks read only enough to pick a topic, pure planner functions choose and schedule cards, and a background request to Haiku tops up a shared library for topics the shipped packs do not cover.
- hand-written cards in three packs
- 108
- more topics with generated cards
- 14
- Leitner boxes, 1 to 16 days
- 5
- tests, no model called
- 68
01 · Claude Code
client
Claude Code session
client
Band above the prompt
ui.render
02 · Mod hooks
gateway
Event hooks
TypeScript · TSX
8 events
03 · Logic
service
Planner
topic, next card, Leitner boxes
service
Library pool
refill policy
04 · Cards & storage
database
Shipped packs
108 cards
database
Plugin store
progress, daily count, library
third-party
Claude Haiku
writes new cards
8 connections
- Claude Code session→Event hookstool name, extension
- Event hooks→Planner
- Planner→Shipped packs
- Planner→Plugin storeprogress
- Event hooks→Library poolbelow 6 ready
- Library pool→Claude Haikutopic name only · optional
- Library pool→Plugin storelibrary, max 240
- Event hooks→Band above the promptrender card
Request flow · Claude runs cargo test
- 1The tool.call hook reads the first word, cargo, bumps the Rust weight and passes the call through untouched.
- 2No pack covers Rust, so when fewer than six Rust cards are ready the pool asks Haiku for a batch in the background.
- 3Replies go through the same validator as shipped cards; anything malformed is dropped unread and the rest join the shared library.
- 4The planner picks the next due card and the band draws it above the prompt until Claude needs you.
Design decisions
- Claude always comes first
- The permission and notification hooks only hide the card and return next(e): they never allow, deny or alter anything.
- One bar for every card
- Shipped and generated cards pass the same isValidCard check, so the tests and the runtime filter agree on what a card is.
- Never blank
- The shipped packs fill in whenever the library is empty, the request fails or the machine is offline.
- Pure logic, tested directly
- Topic choice, scheduling and refill policy are plain functions; the band test answers the model call with a canned reply.
Trade-offs & known limits
- Card writing uses the user’s own Claude plan; turning it off limits cards to the three shipped topics.
- The store has no atomic increment, so two sessions answering at the same moment can lose one from the daily count; the daily goal is a soft cap, so that is accepted.
Haben Sie etwas Ähnliches vor?
Ich bin offen für Freelance- und Vertragsprojekte – lassen Sie uns über Ihr Vorhaben sprechen.