Repository navigation
COMPONENTS
Status: Superseded
Last Updated: 2026-11-13
Audience: Developers and coding agents
Last verified: 2026-11-13 against 5f40af2d9 (replacement links only; design claims not rechecked)
Code: src/Martlet.Core/Planning/, src/Martlet.Core/Settings/, src/Martlet.Desktop/
This design note is superseded. Its phases, defaults, and open questions are historical, not current implementation guidance. See recommended setups and architecture for current behavior.
This note redesigned how a user chooses what Martlet uses and where each piece runs. It replaced the old "How Martlet thinks" Setup page, which used one Configure role dropdown (STT, LLM, TTS) above the same set of fields for every role. That page mixed three unrelated questions:
- What does each job use? (provider, model, voice)
- Where does the job run? (cloud, this PC, or a paired host)
- Which hardware plays and records sound? (microphone and speakers)
The original note recorded Phase 1 as shipped. It recorded Phase 2 as the Companion tabs (Thinking, Voice, Listening, Character, Memory; see UI_DESIGN.md), which combine placement (This PC by default, another computer, or cloud) with provider, model and key. Later phases recorded the proposed direction at that time.
| Term | Meaning | Examples |
|---|---|---|
| Job | One thing Martlet needs done in a conversation. | Thinking, Listening, Speaking, Lip-sync, later Seeing (vision) |
| Engine | A provider + model (+ voice) that can do a job. | OpenAI gpt-4.1-mini, NVIDIA Build google/diffusiongemma-26b-a4b-it, Ollama gemma4:e2b, F5 voice, Whisper |
| Place | Where the engine runs. | Cloud API, This PC, a paired Martlet host |
| Audio devices | Local hardware only: which microphone and speakers this PC uses. | Headset mic, desktop speakers |
| Credential | A key bound to one provider origin, reused by every job that uses that provider. | One OpenAI key for Thinking, Listening and Speaking |
Internal names stay as they are (SetupRole.Llm/Stt/Tts, route types,
aliases); only the user-facing words change.
Home: Now
Thinking -> [Cloud: NVIDIA Build diffusiongemma] (Change)
Listening -> [Cloud: OpenAI gpt-4o-mini-transcribe] (Change)
Speaking -> [gpu-pc: F5 voice "Ava"] (Change)
Lip-sync -> [gpu-pc: Audio2Face] (Change)
Microphone and speakers -> Tested on this PC (Test)
Each job row opens one job editor with two questions, in this order:
- Where should it run? Cloud API / This PC / a paired host (listed by name, with readiness). This is the same choice each job row's Done by menu on the Devices page makes today; both surfaces edit one source of truth.
-
Which engine? Depends on the place:
- Cloud API: provider presets (OpenAI, OpenRouter, NVIDIA Build, Google Gemini, Custom OpenAI-compatible) with the recommended model prefilled, the key status for that provider, and the data/cost disclosure + consent.
- This PC or a host: the engines that place can run (installed roles), with a recommended model list and an install/download action where needed.
Audio devices never appear inside a job editor; they stay on Microphone and speakers. A job editor only links there ("Listening needs a microphone").
Credentials move from a separate step into the provider section of the job editor (status + Add key / Replace key), keyed by provider origin, so one OpenAI key serves all OpenAI jobs. The separate Credentials tab is removed: a key the job stops using is listed under Keys from before on the job's page, with Remove.
- Every named provider has a recommended default model, prefilled when chosen (and the TTS default voice). Switching provider swaps a prefilled default but keeps a model the user typed.
- Prefill is a suggestion only: nothing is saved or sent until the user applies and consents; no network probe checks the model.
- Custom endpoints have no default (Martlet cannot know what the server serves).
Current defaults: OpenAI Thinking gpt-4.1-mini-2025-04-14, OpenRouter
google/gemma-4-26b-a4b-it, NVIDIA Build google/diffusiongemma-26b-a4b-it,
Google Gemini gemini-3.5-flash-lite (free tier; hears once the owner allows it)
(every Thinking default also sees images and calls tools; NVIDIA retired
meta/llama-3.3-70b-instruct on 2026-08-26, a retired model answers HTTP 410 and
Martlet reports ModelRetired), local Ollama
suggestions gemma4:e2b up to gemma4:26b by graphics card memory,
Listening gpt-4o-mini-transcribe, Speaking gpt-4o-mini-tts-2025-12-15 with
voice alloy. They live next to their catalogs
(ChatCompletionsEndpointCatalog, OpenAi*Catalog.DefaultModelId,
MainWindow.LocalChatModels, VisionModelCatalog.LocalRecommendations).
- De-overload Setup (shipped). The Destinations tab became Jobs: a Job to set up picker (Thinking, Listening, Speaking) that shows only the fields that job uses (provider/base URL for Thinking, voice for Speaking, model list only when there is a real choice), job-specific explanations, recommended defaults prefilled, and home steps opening Setup on the matching job. The old demo-vs-real setup choice was removed.
- Job editor with placement. One editor per job combining Setup's route fields with the Devices page's Done by placement; home rows per job; remove the standalone Jobs picker. Keys shown inline per provider.
- Local engines on This PC. See the queued local model hosting item below.
-
Seeing (vision) as a fifth job using the same editor and
VisionModelCatalog.
Goal: choosing This PC for Thinking offers a short recommended list and the app installs and downloads what is needed, then wires the route.
Existing pieces to reuse:
- Host role
deploy\host\roles\ollama(Docker compose binding127.0.0.1:11434, GPU variant,post_startrunsollama pull {OLLAMA_MODEL}). - Hosts can already install roles on "this PC via Docker Desktop" or over SSH, and a host's details on the Devices page offer role installation.
-
VisionModelCatalog'sLocalVisionModel(id, size, description)pattern for a recommended list with download size. - The Thinking route can already target a loopback Chat Completions server
(
http://127.0.0.1:11434/v1) or a host viaGatewayOllama.
Proposed flow:
- Thinking -> This PC shows a
LocalChatModelCatalog: a few instruct models sized by detected VRAM/RAM (for example a ~2 GB 3B model for any PC, a ~5 GB 7-8B model for 8 GB GPUs, a larger one for 16 GB+), each with download size and a short description. Exact tags to be picked when implemented. - If no local runtime is present: offer Ollama (native installer or the existing Docker role), with explicit consent for the download and install.
- Download the chosen model with progress and cancel (
ollama pull), with explicit consent showing size. - Save the route to the loopback endpoint (no key, no cloud consent needed; still disclosed as "stays on this PC").
Open questions: native Ollama vs Docker Desktop as the default runtime; whether to bundle a runtime or always download it; uninstall/cleanup of models; the same flow for Listening (local Whisper) and Speaking (local F5) on This PC.
- Whether Lip-sync belongs with the other jobs in Setup or only on the Devices map (it has no cloud option today).
- One key per provider vs per job when users want separate billing.
Martlet: download · repository · changelog · issues
These pages come from docs/wiki in the repository. To suggest a change, open an issue or a pull request there.
- Home
- Accounts and households
- Accounts and Household
- Android phones and tablets: what it takes, and the plan
- Martlet's API for other apps and scripts
- App Guides
- App Settings and Updates
- App guides: game and app knowledge from the web
- Architecture
- Bounded PCM playback
- Audio dependency inventory and notices
- Avatar guide: Live2D, VRM and speech animation
- V01a explicit microphone capture
- Chatterbox voice engines
- Cleaning up disk space
- One Martlet on all your computers
- Companion controls and behavior requirements
- Components, jobs and placement (design)
- Live conversation
- Creations
- Decision map: which file owns each decision
- Deep research: web search and long research jobs
- The desktop app: updates, notification area, exiting and appearance
- Linux and macOS desktop companion: research, decision and plan
- Developer Guide
- Dia voice engine
- Diagnostics
- Discord
- Architecture and provider contracts
- Discord
- Memory (P03a/P03b/P03c)
- Singing
- Desktop troubleshooting and local support
- Recognizing people by voice, and Parakeet
- Echo cancellation
- ElevenLabs voice: your cloned voice with tones
- F5 worker and reference-voice foundation
- FAQ
- First Steps
- Game state plan: implementation history
- Glossary: one name for each concept
- GPT-SoVITS voice
- Hosted Thinking: cloud models when Thinking can't run on this PC
- Installation and support
- Installing Martlet
- iOS and iPadOS: what it takes, and the plan
- Repository instructions for coding agents
- Repository knowledge base
- Knowledge base maintenance
- GitHub Wiki mirror
- Linux and Mac
- Listening and Voice ID
- Local model apps
- Lorebooks
- macOS: what it takes, and the plan
- Martlet MCP Server
- MCP in Martlet
- MCP: The app's window
- MCP: Apps, home and memory
- MCP: Characters
- MCP: Diagnostics and logs
- MCP: Computers, network and accounts
- MCP: Other
- MCP: Tool permissions
- MCP pages
- MCP: Server and protocol internals
- MCP: Settings
- MCP: Start here
- MCP: Thinking and models
- MCP: Voice and listening
- Memory
- Messaging apps
- Model catalog: sources, conflicts and design
- Motion host role
- Multiple Computers
- Your Martlet network
- OCR host role
- Share your language models: the OpenAI-compatible endpoint
- Packaging
- Perception worker contracts
- Personality and Characters
- Picture making
- Pictures and Creations
- Picture making host role
- Platforms: what each device can do
- Prerequisites: what Martlet bundles, installs for you, or needs from you
- Privacy and Safety
- Reading the text on your screen
- Wiki source
- Recommendation design: ask three questions, plan for three situations
- Recommended setups: one machine to unlimited budget
- Releasing
- Repository Layout
- Research and provenance ledger
- Resource footprints
- Roadmap
- Watch my screen: screen-aware commentary
- Search engine
- Image and audio models: who sees, who hears, who answers
- Setting Up a Host
- Setup, Windows credentials and local audio
- Sharing with Friends
- Singing
- Smart Home
- Smart home and cameras
- Source Projects
- Talking to Martlet
- Telegram and WhatsApp
- The Character
- Thinking
- Tools and MCP
- Troubleshooting
- Martlet desktop UI design
- User stories and target flows
- Voice activity detection
- Validating changes
- Validation and Testing
- Vision
- Voice latency: from you stopping talking to Martlet's voice
- Voice recognition host role
- Multi-engine voice setup and comparison
- Voices
- The welcome wizard
- XTTS-v2 voice engine