[Unit] Description=thought stream agent consumers After=network-online.target thoughtstream-telegram-webhook.service Wants=network-online.target [Service] Type=simple WorkingDirectory=%h/code/thought-stream Environment=THOUGHTSTREAM_ROOT=%h/.local/share/thoughtstream/live EnvironmentFile=%h/.config/thoughtstream/credentials/consumer.env ExecStartPre=%h/.nvm/versions/node/v22.19.0/bin/node scripts/build-sandbox-worker.mjs ExecStart=%h/.nvm/versions/node/v22.19.0/bin/node --import tsx src/cli.ts consume --config %h/.local/share/thoughtstream/live/thoughtstream.local.yaml Restart=always RestartSec=5 TimeoutStopSec=30 NoNewPrivileges=true PrivateTmp=true UMask=0077 [Install] WantedBy=default.target