whiff

module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 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.1: puff runs on its own, without a daemon. go install ./cmd/... installs puff; 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.

The daemon, whiff, comes next.

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