Skip to content

Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.

fix(pocket-executor): systemd unit needs KillMode=process for v3 workers (#310)

Aurora Capital522d50f17bf4
diff --git a/claude-ops/scripts/systemd/pocket-executor.service b/claude-ops/scripts/systemd/pocket-executor.service
index b64d0bd0..d0f07572 100644
--- a/claude-ops/scripts/systemd/pocket-executor.service
+++ b/claude-ops/scripts/systemd/pocket-executor.service
@@ -1,5 +1,5 @@
[Unit]
-Description=Pocket Executor — supervisor watchdog (keeps pocket-exec tmux alive)
+Description=Pocket Executor v3 — stateless Python supervisor (claude -p per task)
After=network-online.target
Wants=network-online.target
@@ -10,6 +10,18 @@ WorkingDirectory=__HOME__
Environment=HOME=__HOME__
Environment=PATH=/usr/local/bin:/usr/bin:/bin
Environment=POCKET_STATE_DIR=__HOME__/.claude/state/pocket
+Environment=POCKET_CLAUDE_BIN=/usr/local/bin/claude
+Environment=POCKET_EXEC_CWD=__HOME__
+Environment=POCKET_MAX_CONCURRENT=3
+Environment=POCKET_WORKER_MODEL=claude-sonnet-4-6
+Environment=POCKET_WORKER_TIMEOUT=1800
ExecStart=__HOME__/.venv-pocket/bin/python3 __HOME__/claude-ops/claude-ops/scripts/ops-cron-pocket-executor.py
StandardOutput=append:__HOME__/.claude/state/pocket/executor-stdout.log
StandardError=append:__HOME__/.claude/state/pocket/executor-stderr.log
+# v3 requires this: workers are claude -p subprocesses that must outlive
+# the oneshot service unit (they take 30-120s to complete). Without
+# KillMode=process, systemd SIGKILLs the worker process group when the
+# unit transitions to inactive, leaving 0-byte stdout and a bogus
+# completion receipt. process mode kills only the main PID (the python
+# supervisor), letting worker children run to completion under PID 1.
+KillMode=process