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
This commit is contained in:
dckc committed 2026-12-02 16:29:33 -06:00
1 parent 521998b666
commit 84d2816f24
16 files changed
+927 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
{
"name": "pdtv26-brain",
"version": "0.1.0",
"description": "The brain's channel for the agent at the TV: MCP to a language model session, and the ask capability, over Cap'n Web, to the box",
"private": true,
"type": "module",
"license": "Apache-2.0",
"scripts": {
"test": "node --test"
},
"dependencies": {
"capnweb": "0.13.1",
"ws": "8.23.1"
}
}