whiff

module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: MIT

README

whiff

A small daemon of puffs: little services that talk to each other, and to you, by sending messages.

Services are written in puff, a small lisp with immutable values and Results instead of nil and exceptions. The CLI, the hiss editor and AI agents connect as clients with addresses of their own, so a service can call :gh/prs, publish :git/changed or ask you a question and get the answer later. whiff supervises the services, reloads them when you save and keeps a history of every message.

Agents get whiff's functions as MCP tools. Anything an agent asks to write waits in a review queue for you; nothing waits on you.

whiff has no UI of its own. Its CLI is enough to use it; hiss is the nicer client.

Inspirations

  • Erlang/OTP: everything that talks has an address and a mailbox, messages are plain data, and services are supervised and restarted from their last good state.
  • Clojure: immutable data that compares by value, with literals for vectors [...] and maps {k v}, keywords like :read, let with vector bindings, loop / recur, and -> to thread a value through calls.
  • Rust: Result and Option instead of nil and exceptions, and try to pass an error up.
  • vrs: a lisp runtime for personal services, the idea whiff started from.

Status

v0.3. go install ./cmd/... installs two binaries:

  • puff runs puff without a daemon: puff file.puff args... runs a file (calling its main if it defines one), puff -e '(...)' evaluates an expression and puff alone starts a REPL. Try go run ./cmd/puff examples/hello.puff ann.
  • whiff is the daemon and its CLI. The first command starts the daemon, which loads the services in ~/.whiff/services/, reloads them when you save and restarts them when they fault. whiff call, send, pub and sub talk to them; whiff inbox, reply and wait answer the questions they ask you and pick up long jobs; whiff history -f follows every message; whiff -h lists the rest.

Services keep state across restarts (:state, kept in ~/.whiff/whiff.db; whiff reset forgets it), subscribe to topics, run long work as jobs and mark each function :read or :write. services/ has the ones in daily use: git, gh (which watches your pull requests), todo, reviewer and assistant, a resident Claude agent you talk to through your inbox. docs/stdlib.md lists every function puff has, and whiff's own.

Next, in v0.4: whiff mcp for agents, and the review queue for what they ask to write.

License

MIT, see LICENSE.

Directories

Path Synopsis
cmd
puff command
Command puff runs puff code without a whiff daemon.
Command puff runs puff code without a whiff daemon.
whiff command
Command whiff is the whiff daemon and its clients.
Command whiff is the whiff daemon and its clients.
internal
daemon
Package daemon is whiff's daemon: it serves clients on the per-user socket and runs the services they talk to.
Package daemon is whiff's daemon: it serves clients on the per-user socket and runs the services they talk to.
puff
Package puff is a small lisp for whiff's services: immutable values, and Results and Options instead of nil and exceptions.
Package puff is a small lisp for whiff's services: immutable values, and Results and Options instead of nil and exceptions.
rpc
Package rpc is how whiff's clients talk to the daemon: JSON lines over a per-user unix socket.
Package rpc is how whiff's clients talk to the daemon: JSON lines over a per-user unix socket.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL