[Unit]
Description=agent_runner_api — orquestador de agentes Claude headless con worktrees + DoD
After=network.target

[Service]
Type=simple
WorkingDirectory=%h/fn_registry/apps/agent_runner_api
ExecStart=%h/fn_registry/apps/agent_runner_api/agent_runner_api --port 8486 --db %h/fn_registry/apps/agent_runner_api/agent_runs.db --repo-root %h/fn_registry --worktrees-root /tmp
Restart=always
RestartSec=3
Environment=PATH=%h/.local/bin:/usr/local/bin:/usr/bin:/bin
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=default.target
