Commit Graph
8 Commits
Author SHA1 Message Date
dckc 4dfff77b95 feat: install on any Linux with Nix and systemd
check / check (push) Canceled after 0s
Not just the first household's machines: a home server of your own
runs speech, the status page, and the brain, and a household flake of
your own makes the box, from a few names.

- speech: sudo make install: the server, its models, its key, and its
  systemd unit, answering only the private network
- box: make keys, from the home server: each connection's key piped
  to both its ends, never on disk but where it's used
- docs/setup.md: the setup guide, from the household repository to
  teaching it the remotes
- README: the home server; Make your own

Generated-by: Claude Opus 5.5
2026-12-02 17:17:30 -06:00
dckc 469d642902 feat(status): a status page, for the phone of whoever looks after the box
Is the box up, and speech, and the brain; how many conversations,
turns, IR presses, and looks, today and all time. Counts and times
only: no transcripts.

- status/status.js: what the events and checks add up to, and the page
- status/status-server.js: the page, the box's events and heartbeat,
  and a TCP check of each part every 30 s; events kept in a file
- status/pdtv26-status.service and Makefile: sudo make install on the
  home server, answering only the private network
- checks: status (its tests)

Generated-by: Claude Opus 5.5
2026-12-02 17:16:02 -06:00
dckc 84d2816f24 feat(brain): a sandboxed language model session with an MCP channel to the box
The brain: a long-running Claude Code session, confined with bwrap to
its workspace, that hears the box through a channel and works the TV
with the box's ir and look capabilities.

- brain/channel.js: MCP on stdio to the brain (reply, say, ir_listen,
  ir_send, look, report_problem), and the ask capability, behind a
  gate, to the box
- brain/ask.js: the conversations between them; report.js: an issue on
  one repository, by a token that can do nothing else
- brain/brain.service: the session in tmux, in bwrap: a read-only
  system, an empty home but for its workspace, keys, and claude
- brain/instructions.md: how to work the TV; it imports household.md,
  who's who (an example, with no real people)
- brain/Makefile: make install, attach, status
- checks: brain-js (unit tests), brain (the package, put together)

Generated-by: Claude Opus 5.5
2026-12-02 16:29:33 -06:00
dckc 521998b666 feat(box): the box's NixOS system as a module, and lib.mkBox from a few names
check / check (push) Canceled after 0s
The box within reach of the couch: a Raspberry Pi 3B with the AIY Voice
HAT, from the first household's configuration, made generic.

- box/body: the button service, in Python: press and talk, turns by
  voice, a press interrupts; the look signal
- box/*.js: the ir and look capabilities, behind gates, for the brain;
  the ask client, the box's side of a conversation
- box/module.nix: the services, each confined to the devices and
  addresses it needs; the private network as an option (a tailnet by
  default); the Pico found by its USB IDs, as /dev/pdtv26-ir
- box/voicehat.nix: the Voice HAT's device tree overlay and ALSA setup
- lib.mkBox: a box's whole system from its name, the home server's,
  the Wi-Fi network's, and who looks after it
- checks: box-js, box-py (doctests and pyflakes), and box-system (an
  example box's system evaluates)

Generated-by: Claude Opus 5.5
2026-12-02 16:18:17 -06:00
dckc 2e7156dc36 feat(speech): the speech capability over Cap'n Web, behind a gate
check / check (push) Canceled after 0s
The agent's ears and voice: a server on the home server transcribes
a clip (sox, whisper.cpp) and speaks text (piper), one job at a time.
A gate hands the capability to whoever presents its key; the key comes
from systemd's credentials, not argv.

make test runs the unit tests in Nix's sandbox; make smoke starts a
real server on localhost, speaks a phrase, and hears it back.

Generated-by: Claude Opus 5.5
2026-12-02 15:52:55 -06:00
dckc 4a42c896db ci: nix flake check on every push
Every check in flake.nix, starting with ir-pico's doctests, in the
nixos/nix image, pinned by digest. The checkout is plain git, since
actions/checkout needs node and the image has none.

Generated-by: Claude Opus 5.5
2026-12-02 15:52:55 -06:00
dckc 147bfdc55e feat(ir-pico): learn and send IR codes from a Pico on USB
CircuitPython on a Pico H drives an IR transceiver: it prints the code
for any remote button it hears, and sends a code it's given, NEC,
Samsung, or raw pulses for the rest. pico_tty.py drives it over USB
serial. wiring.md says how to put it together.

The flake starts here: a dev shell (nix develop --command make test)
and a check that runs the doctests.

Tested: make install, then make send turned on a Vizio TV.

Generated-by: Claude Opus 5.5
2026-12-02 15:01:57 -06:00
dckc a06364e041 docs: README: peace and dignity at the TV, by delegating the remotes
The opening: the mess our elders face at the TV now, delegating it
to an agent instead, and "put on the ballgame" as a worked example.

Generated-by: Claude Opus 5.5
2026-12-02 14:26:03 -06:00