Files
agent-skills/systemd/pr-daemon.service
T
2026-08-19 19:03:55 +01:00

26 lines
989 B
Desktop File

[Unit]
Description=PR daemon — watches GitHub/Gitea PRs and routes them to aoe sessions
Documentation=https://git.naps.pt/yolo/agent-skills
After=network.target
ConditionPathExists=%h/.config/reviewer/config.json
ConditionPathExists=%h/.config/reviewer/env
# MUST stay 0: at RestartSec=5 a fast-crashing daemon burns the default
# 5-starts-per-10s budget and systemd parks the unit in `failed` until a
# manual `systemctl --user reset-failed`.
StartLimitIntervalSec=0
[Service]
Type=simple
WorkingDirectory=%h
Environment=PATH=%h/.local/bin:%h/.nix-profile/bin:/etc/profiles/per-user/naps62/bin:/run/current-system/sw/bin:/usr/local/bin:/usr/bin:/bin
EnvironmentFile=%h/.config/reviewer/env
ExecStart=bun %h/tea/yolo/agent-skills/bin/reviewer-poll.ts
Restart=always
RestartSec=5
# The agent tmux sessions this daemon starts land in its cgroup, so the default
# control-group kill takes every running agent down with a daemon restart.
KillMode=process
[Install]
WantedBy=default.target