Skip to content

feat: add assistant router - #67

Merged
pockerman merged 2 commits into
mainfrom
feat/assistant-router
Dec 3, 2026
Merged

pockerman merged 2 commits into
mainfrom
feat/assistant-router

Conversation

@pockerman

Copy link
Copy Markdown
Owner

No description provided.

pockerman and others added 2 commits December 3, 2026 14:38
…what it doesn't do

The assistant no longer understands and answers in one call. A router, on the fast model of the
AI's provider (claude-haiku-5-5, gpt-5-mini), names which of the assistant's tasks a request is:
question, summary, quiz, flashcards or small talk, or "other". The tasks are set in code, so a
request that is none of them, or a task the model names that isn't one, is declined, however it
is worded. The router also makes a follow-up stand alone, so the material is searched for what
the student means; a reply it gives that can't be used is taken as a question.

Questions go to the question agent (study-assistant v2, answering only), which searches for the
request as it stands alone. Summaries, quizzes and flashcards are made without searching the
material. See features/assistant_routing.feature.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l talk that states no facts

- Reading a material, the assistant doesn't make its flashcards: the router can name a request the
  app does elsewhere, and the assistant says to use the Flashcards button. On a topic or a
  collection of papers, which have no such button, it still makes them.
- Small talk is a greeting, thanks, or a question about the assistant or the conversation; any
  other question that isn't about the material, e.g. the date, is declined.
- An answer no longer shows the references of its passages, e.g. (P1): the sections it cites are
  shown below it.
- The question agent has a prompt of its own, question-agent v1; study-assistant, which understood
  and answered in one call, is no longer used. The community edition's prompts are their v1s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pockerman pockerman self-assigned this Dec 3, 2026
@pockerman pockerman added the enhancement New feature or request label Dec 3, 2026
@pockerman
pockerman merged commit 9fa3fae into main Dec 3, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant