Echo

A native macOS desktop pet that doubles as a lightweight Agent for everyday use

Role
Solo developer
Stack
Swift 6 · SwiftUI + AppKit · Rust
Models
DeepSeek · Volcengine Ark · local Qwen3 0.6B
Scale
About 25,000 lines of Swift, 1,300 lines of Rust and 500 tests
GitHub repository

This page is about me

It lives in a corner of your desktop: it turns to follow your pointer and waves when you click it. Hand it a task and it does the work with its tools in the background, then puts the result on a card next to the pet. When you’d rather talk, start a Live Voice call and keep the conversation going by voice.

01

Hand off a task and let it finish in the background

Click Start new chat on the pet, or send a message in the main window, and Echo calls its tools in the background to get the task done. While it works the pet plays a task animation, and the result appears on an activity card beside the pet, where you can follow up, stop the reply or open the full chat. Drop a folder on the pet to start a new chat with that folder as its project.

The pet shows a finished task on its card, and the new 待办清单.md appears in Finder
When the task is done, the result appears on the card beside the pet, and a new 待办清单.md shows up in Finder
02

Live Voice: an ongoing spoken conversation

Once Live Voice starts, Echo keeps listening and answering: speech recognition feeds the chat as you talk, and the reply is synthesized into speech while it is still being generated. Start talking while a reply plays and it stops to listen. During a call the planet in the control strip has its own animation for connecting, listening, thinking and speaking; when the Agent calls a tool, a bubble shows what it is doing.

During a Live Voice call the planet sits in the pet’s control strip, and a bubble says the Agent is listing files
During a Live Voice call, a bubble says the Agent is listing files

Follows the pointer

Turns toward the pointer as it moves, hops when you hover and waves when you click

Task animations

Its own animations when a task starts, completes or fails; unseen results show as badges

Custom characters

Two built-in pets and two planets, plus any character in the Codex pet format

Each chat works in one folder: its project folder when it has one, otherwise the folder Finder is showing. Every tool call is a card in the chat, and changes to files, reminders, events and memory can be undone from their card.

A chat in the main window: tool cards for reading and writing files, with Undo on the write card (dark mode)
The main window: tool cards for reading and writing files, with Undo on the write card
Read files
list_filesread_file

List a folder and read text by lines; models that see images also read PDFs and images, HEIC included

Finder
finder_location

In a chat without a project, switch the chat’s folder to the one in Finder’s frontmost window

Write files
write_fileedit_file

Write a whole UTF-8 file or replace one exact passage; the original is backed up first and the change can be undone

Reminders
list_reminderscreate_remindercomplete_reminder

Read and change Reminders through EventKit; creating and completing can be undone

Calendar
list_eventscreate_event

Read events and add one to the default calendar; adding can be undone

Open
open_appopen_url

Open an app by its Chinese or English name, or an http(s) page in the default browser

Web pages
web_fetch

Load the page locally in WKWebView and extract the main text as Markdown with Readability and Turndown

Search
web_search

Follows the chat service: Doubao search with Volcengine Ark, DeepSeek search with DeepSeek

Images
generate_image

Generate an image with Doubao Seedream, saved to Pictures/Echo by default; can be undone

Memory
rememberupdate_memory

Add a line or change a passage; can be undone, and sensitive details are refused

If the network is down before a reply has started, the local Qwen3 0.6B answers instead (it runs on Core AI and can chat but not call tools).

  1. 01

    No code execution

    An early bash tool was removed entirely. Every tool is pure Swift and starts no process; the write tools refuse executable files, anything inside an .app bundle and hidden files, and no tool deletes, renames or moves files. Leaving out code execution greatly limits the damage a mistake can do.

  2. 02

    Back up before writing; undo in one click

    Before a file changes, its bytes, permissions, extended attributes and ACL go into the chat’s backup folder, along with a SHA-256 fingerprint of what was written. Undo checks the fingerprint and restores the file only if nobody has changed it since; the next message then tells the model which changes were reverted, so it does not keep working from stale results.

    After Undo, the write card reads Undone
    After Undo, the write card reads Undone
  3. 03

    Sensitive details stay out of memory

    The memory is a Markdown file, read once per turn into the instructions. When the model writes to it, Echo checks the text for ID card numbers and bank card numbers (only when their check digits agree), phone numbers, passwords, API keys, email addresses and street addresses down to the door number. Any match rejects the whole write and tells the model why.

  4. 04

    Tool calls in a batch run in order

    Reads may run in parallel, but every change waits for all the calls before it, so “read, then change” and “switch folders, then read” mean what they say.

  5. 05

    Interrupting keeps finished work

    Send another message while the Agent is running and the calls that have not started are marked as superseded and skipped, every finished result is kept, and the new message goes in before the next model request.

  6. 06

    Conservative networking

    Model requests follow no redirects, never retry and cap responses at 1 MiB; web_fetch blocks loopback and local network addresses by their resolved IP; the Live Voice WebSocket refuses redirects too.

  7. 07

    Use what the system provides

    Windows, menus, materials and Liquid Glass follow AppKit and SwiftUI defaults; dictation uses SpeechAnalyzer, reminders and calendars use EventKit, and App Intents expose Echo to the system.

Echo.app · Swift 6 · SwiftUI + AppKit

Companion

Pet, activity cards, control strip, bubble

Conversation · Workspace

Chats, sidebar, composer, tool cards, file tree

Voice

Live Voice session, capture and playback, barge-in

Agent harness

Tool loop, model executors, undo and backups, memory

Tools

Files, EventKit, WKWebView, LaunchServices…

Foundation Models · LanguageModelSession

Own executors

Chat Completions / Responses

Core AI

Local Qwen3 0.6B, takes over offline

EchoRuntime · Rust static library

Sprite sheets, animation state machine, gaze; joins Companion through a C ABI

Doubao streaming ASR / TTS

Voice connects over WebSocket

  • AgentApple’s Foundation Models framework drives the tool loop. Echo has its own LanguageModel executors for OpenAI-compatible services: each respond sends exactly one request, maps the transcript to Chat Completions or Responses, streams text as it arrives, and handles differences between services, such as DeepSeek’s thinking mode requiring its reasoning to be sent back.
  • VoiceAVAudioEngine runs with the system’s echo cancellation. A local energy gate pauses playback first, and only fresh recognized text confirms a real interruption, so speaker echo is never taken for the user speaking.
  • Pet runtimeA Rust static library exposed to Swift through a C header. It decodes WebP sprite sheets, decides which animation shows by priority (drag > one-shot clip > gaze > base state), and tells Swift when the next frame is due, so no timer runs while the pet is still.
  • TestsAbout 500 Swift tests plus Rust unit tests in three test plans: everyday runs, tests that need the foreground and real key presses, and tests against real services. Model services are replaced by a loopback fake server and scripted doubles, so tests don’t depend on the network or the input method.