Daemon (argusd)
Keep ingesting when the dashboard is closed: start, stop, status, logs.
By default the file watcher and the alert detectors run inside argus start. Close it and ingestion stops. argusd moves that work into a long-running background process so your archive stays current whether or not a dashboard is open.
argusd does not serve the dashboard. Port 4242 is still bound only by argus start.
How the two fit together
When argusd is running, argus start notices its PID file and becomes a read-only viewer of the database the daemon keeps fresh. It logs argusd <pid> active — dashboard is read-only., the sidebar footer reads argusd daemon, and anything that would write, such as the indexing buttons in Settings, is refused with:
Argus is read-only because the argusd daemon is running. Manage indexing from the CLI (e.g.
argus indexing enable) or stop the daemon withargus daemon stop.
When argusd is not running, argus start ingests in-process as usual. If the PID file is left over from a daemon that died, argus start logs Stale argusd PID file (PID <pid> is not argusd) — ignoring. and carries on.
The dashboard currently shows no error when a Settings action is refused in read-only mode. If a click appears to do nothing, check the footer.
Commands
argus daemon start [--data-dir PATH]
argus daemon stop [--data-dir PATH]
argus daemon restart [--data-dir PATH]
argus daemon status [--data-dir PATH]
argus daemon logs [--data-dir PATH] [-n|--lines INTEGER] [-f|--follow]start
Spawns a detached process and waits up to 3 seconds for it to write ~/.argus/argusd.pid. Prints argusd started, PID 12345. If a daemon is already running it prints daemon already running, PID 12345 and exits without error. A leftover PID file that does not belong to a running argusd is cleared first, with Clearing stale PID file (PID 12345 is not argusd). On timeout it prints daemon did not start within timeout — check ~/.argus/argusd.log and exits with code 1.
The child is started as python -P -m argus.cli daemon run, not through the argus console script, so it is unaffected by the directory you launched it from.
stop
Prints argusd stopped. or argusd is not running. and removes the PID file either way, so it also cleans up a stale file. It only ever signals a process it has verified as the argusd that wrote the PID file (see How argusd is identified). If the PID now belongs to some other program, for example after a crash or reboot, that program is left alone and only the stale file is removed.
If the PID is alive but cannot be verified either way, stop touches nothing, keeps the file, and exits with code 1:
argusd not stopped: PID 12345 is alive but can't be verified as argusd, so it was left alone. If it is an older argusd, stop that process yourself; if it isn't argusd, delete C:\Users\you\.argus\argusd.pid.Windows
On Windows, stop is an immediate hard kill. That is safe, because the daemon holds no critical state in memory, but no argusd stopped. line is written to the log file. On Linux and macOS the daemon gets SIGTERM and up to 10 seconds to exit before SIGKILL.
restart
Stop, then start. Prints argusd restarted, PID 12345.
Restart after upgrading
A running daemon holds the old code. After pip install --upgrade argus-code or the uv equivalent, run argus daemon restart.
status
Always exits with code 0. One of:
argusd: not running.
argusd: not running (stale PID file for 12345).
argusd: possibly running (PID 12345 is alive but can't be verified as argusd). If it isn't, delete C:\Users\you\.argus\argusd.pid.
argusd: running (PID 12345, uptime 3h07m21s).
Log: C:\Users\you\.argus\argusd.logUptime is measured from when the PID file was written, which is the moment the daemon registered itself. The Log: line is printed only when the daemon is verified as running.
How argusd is identified
A PID on its own proves little: after an unclean exit, such as a Windows reboot or the hard kill stop uses there, the operating system can hand the same PID to an unrelated program. So argusd.pid records the PID together with the process's start time, and a PID counts as argusd only while a live process with that PID has the same start time. A dead process, a different start time, or a process that is visibly some other program makes the file stale, and Argus ignores it.
When there is no start time to compare, for example a PID file written by an Argus older than 0.6.0, Argus falls back to the process's command line on Linux and macOS. Windows does not expose another process's command line, so there a Python process holding that PID is reported as possibly running. Argus then neither starts a second daemon nor kills the process, and tells you which file to delete if it is not argusd.
logs
Tails ~/.argus/argusd.log, 40 lines by default. --follow polls every half second and survives log rotation, which a plain tail -f would not. Following starts at the end of the file. If there is no log yet it prints No log file yet at <path>.
What the daemon does
- Runs the same ingestion as
argus start: a first pass over transcripts, then a filesystem watcher that reads only the new bytes of a changed file after a 100 ms quiet period. - Runs the alert detectors once at startup, then every 10 minutes.
- Survives having no agent data yet. If there is neither a
~/.claude/directory nor a Codex home with sessions, it logsNo agent data found (~/.claude/ or ~/.codex/). Staying up and watching for it — ingest starts automatically once it appears.and checks every 30 seconds. When data shows up it logsAgent data appeared — ingest started.See Supported agents for where each agent's data lives. - Writes
~/.argus/argusd.logwith full date stamps, rotating at 1,000,000 bytes with three backups.
Limits to know
- No auto-restart. A crashed daemon stays down until you start it again. The next
startorstopcleans up the stale PID file. - No OS-native autostart yet. The README lists an
argus installcommand as a follow-up; it does not exist today. The hiddenargus daemon runcommand is the blocking foreground form, meant for systemd, launchd or Windows Scheduled Tasks if you want to wire that up yourself. - If argusd dies while a read-only dashboard is open, the footer keeps saying
argusd daemonand ingestion stays paused until you restart the dashboard, which then resumes ingesting in-process. - Idle cost is small. The README quotes roughly 40 to 70 MB of RAM and no idle CPU, since the watcher is event-driven and the scheduler wakes every 10 minutes.
Verified against argus-code 0.7.0.