[Unit] Description=Overlord Agent (Claude Code shell-out service) After=network-online.target Wants=network-online.target [Service] Type=simple User=erik Group=erik # Working directory MUST be the repo root so: # - claude -p sessions land at ~/.claude/projects/-home-erik-MosswartOverlord/ # - .mcp.json is auto-loaded WorkingDirectory=/home/erik/MosswartOverlord EnvironmentFile=-/home/erik/MosswartOverlord/.env # Run inside the venv populated by install.sh. ExecStart=/home/erik/MosswartOverlord/agent/.venv/bin/python -m agent.service Restart=on-failure RestartSec=3 # Don't tie up the disk with stdout — let journald handle it. StandardOutput=journal StandardError=journal # Resource hints — the service is light, but cap so a runaway can't # starve the host. MemoryLimit=512M CPUQuota=200% [Install] WantedBy=multi-user.target