A voice-first agent service on pi and Pi Durable, with a page to talk to it from.
- Durable chats. Every chat is a Pi Durable conversation in one SQLite file. A turn, a tool call waiting on a yes, and a long job all survive a restart.
- Apps over MCP. Each app is an MCP server; Talk makes one extension per app. Tools are classified as lookups, changes or dangerous changes from their names and annotations.
- Ask before delete. A dangerous change (delete, archive, send, pay) is parked by a hook until you say yes. The item must be one a lookup just returned. Anything but a yes stops the run, and what you said instead is the next turn.
- Agents. An agent is a role, a voice and the apps it may use. One agent can ask another, which runs as a child conversation.
- Voice.
packages/pi-voiceis a voice loop in front of any Pi Durable conversation: turn detection, sentence-by-sentence speech, barge-in, swappable voices (Kokoro, xAI, ElevenLabs, any OpenAI-compatible speech server). It imports nothing from Talk. - The page (
page/, built on @jaetask/toolkit): each agent is a bot with one conversation on screen. You see the steps a turn takes, the card each call stored, and the gate as a card with buttons. A Trajectory tab shows each turn as model steps, lookups and changes with timings. Voice calls and dictation use the same loop.
It is built for a local model (Gemma on Ollama) and local speech (Whisper and Kokoro over HTTP). Nothing leaves the machine unless you configure a hosted voice.
Node 22.19 or later.
npm install
npm run build:page # writes public/ (esbuild and Tailwind)
cp apps.example.json apps.json # the MCP servers your agents may use; optional
npm start # http://127.0.0.1:3930It needs Ollama on 11434 with the model, and for voice a speech server with Whisper and Kokoro (VOICESTUDIO_URL, an OpenAI-compatible /v1/audio API plus Kokoro's streaming websocket).
| Setting | Default | What it does |
|---|---|---|
TALK_PORT |
3930 | The port (loopback only) |
TALK_DATA |
data |
Where the store, the web cache and scratch worktrees go |
TALK_PAGE_DIR |
public |
Where the built page is served from |
TALK_MODEL |
gemma4:26b-a4b-it-qat |
The model id on Ollama |
TALK_APPS_FILE |
apps.json |
The apps: [{ "name", "label", "url", "about" }] |
TALK_SKILLS_DIR, TALK_PERSONAS_DIR |
skills, personalities |
Plain-text skills (one per app) and roles, read fresh each turn |
TALK_TTS |
kokoro |
The voice provider: kokoro, kokoro-http, xai (needs XAI_API_KEY), elevenlabs (needs ELEVENLABS_API_KEY and ELEVENLABS_VOICE) |
TALK_PRETEND_WRITES |
off | Test mode: changes are accepted and logged, never made |
Real changes also need a switch file: data/writes.enabled.
npm test # the service: 58 expect tests, then the voice loop: 29
npm run test:update # approve new outputExpect tests with @jaetask/snap: each case is an input file with its approved output beside it. The model is scripted and the apps are fakes in the test process, so nothing needs a GPU. --update approves new output; read the diff first.
src/server.ts the HTTP server (node:http), the websocket (ws) and the built page
src/engine.ts a chat is a Pi Durable conversation; a turn follows its run
src/bots.ts the page's API: agents as bots, rows from the transcript, one event stream
src/ext/ extensions: one per app (MCP), the gate, agents and delegation, the web and research,
Claude Code over ACP
src/apps/ how app tools are classified, shown to the model, compacted and drawn as cards
src/views.ts what the screens are given: turns, cards, export, a draft test from a turn
src/model/ollama.ts Ollama's own chat API as a pi-ai API
packages/pi-voice/ the voice loop
page/ the page (React on @jaetask/toolkit), built into public/
Talk began as a private Python service; this is its rewrite on pi. Some code still knows the shapes of the apps it grew up with (a ticket board, for one).
The page's logic began as grokbot-clone's web app (MIT, page/LICENSE.grokbot-clone); its screens are built from @jaetask/toolkit. The avatars are drawn from formulas in page/avatar/shapes.ts and the icons are Tabler.
MIT.
Push a branch, never main. A pull request to main opens by itself and merges when the ci check passes.