Language models/GitHub/Tool
mafdet
by TheLastOxygen·Last observed 2026-10-27
★ 61 stars⑂ 3 forks
MAFDET is a local chat app and prototype that reads a message while it is being typed, preparing the model’s prompt processing in advance. It can also reason ahead on changing text, retaining notes as edits arrive; on Enter, it continues reasoning and answers. Reading ahead tracks the typed text with a common-prefix cache update.
Useful for
- Use it for local chat when you want the app to prefill a prompt and, with Qwen3, begin reasoning while you type before continuing after submission.
Key features
- Updates the KV cache while typing by tokenizing after pauses, finding the longest common prefix, and prefilling only the new text.
- For Qwen3, can reason ahead in short chunks and retain reasoning as notes when the message changes, then continue on Enter.
- Offers GUI and terminal interfaces, with model and hardware views and commands for checking the local setup.
Requirements & limitations
- The documented quick start targets Windows and requires Python 3.10 or later; CPU-only operation is supported, while Linux is not yet tested.
- MAFDET is marked as a prototype; reasoning ahead is approximate because it uses intermediate message versions.
Discussion
No comments yet.
Sign in with Google to comment. Browsing is open to everyone.