RepoOps
Open the app
Local app / This machine

The Capture Daemon

The capture daemon is the part of RepoOps that stays on. It captures your coding sessions every five minutes, keeps the pages warm, and does the team's hourly delivery, with or without a dashboard window open. It opens no inbound port and sends nothing until you bind the machine and opt in.

Last updated

1

How to

The RepoOps desktop app installed. The commands at the end are for a source checkout and need Node and a terminal.

  1. Leave Run the background capture daemon on.

    Settings, Capture daemon. It is on by default, and while it is on the desktop app starts the daemon when it opens and checks every 30 seconds that it is still running. A daemon that stopped is started again after 10 seconds, then twice as long each time up to 5 minutes. After five restarts in 30 minutes the app stops trying and the tray reads Daemon: off (crash loop).

  2. Read its state in the tray and on Today.

    The tray shows Daemon: running, running (idle), running (not checking in), stopped, not started, or off with the reason, and offers Daemon: Start, Daemon: Stop and Daemon status…. Today's card for this machine shows whether it is running, its version, its last capture and the warm count.

  3. Close the window instead of quitting.

    The local server stays up for as long as the app runs. To free its memory while no window is open, turn on Stop the local server when no window is open in Settings, Desktop server, and choose the minutes. The app then stops the server that long after the last window closes and the tray reads Server stopped; capture continues, and the daemon also runs what the server ran for your team. Show dashboard, or opening the app, starts the server again. Quit stops the server and leaves the daemon running.

  4. Keep it running without the app, from a source checkout.

    npm run daemon:install registers it as a per-user service (a Scheduled Task on Windows, a launchd agent on macOS, a systemd user unit on Linux), so it starts at login and restarts after a crash. npm run daemon:status prints its status and checks that the process is really alive. npm run daemon:uninstall stops it and removes the service.

  5. Collect a support bundle when asked.

    From a checkout, node scripts/daemon.mjs flare writes a directory with the status, recent logs, boot history, crash-report file names and version. Environment variables enter it by name only, never by value. The desktop app has no button for this.

2

Use cases

A laptop that rebooted overnight

Situation
The machine restarted and you have not opened RepoOps yet.
You do
Open the app and look at Today's card for this machine.
You see
The app started the daemon at launch. The card shows it running with its last capture, and the next five-minute cycle picks up the sessions written while it was down. Capture is late, not lost.

A daemon in a crash loop

Situation
The tray reads Daemon: off (crash loop).
You do
Open Daemon status… or Runtime health on a main page and read the last exit reason. Fix the cause, then choose Daemon: Start.
You see
Daemon: Start clears the restart limit and capture resumes. Every page still computes its data on demand meanwhile, so a stopped daemon makes RepoOps slower, never wrong.
3

Expected outcome

WorkedThe tray reads Daemon: running and Today's card shows a last capture inside the last few minutes.
WorkedWith the machine bound and cloud sync on, the sources on repoops.ai/v2/production.html list the device's capture daemon as fresh, with a recent report.
Did not workDaemon: off (env off-switch).

Next step: REPOOPS_DAEMON_DISABLED=1 is set in the environment and wins over the Settings toggle. Remove it.

Did not workDaemon: disconnected (re-connect needed).

Next step: The device token expired or was revoked. Choose Reconnect… in the tray, or bind again from Settings, Connect to team.

Did not workTurning the Settings toggle on did not start capture.

Next step: A running daemon reads the toggle each cycle, but the toggle cannot start a process that has stopped. Use Daemon: Start.

Did not workThe hosted page says No daemon has connected yet.

Next step: Health is sent only from a bound machine with cloud sync on. Check both, then the local status.

4

What else to consider

What it runs, and how often

Every five minutes it scans each tracked repository's sessions and redacts them into the local store; a four-minute watchdog aborts a hung cycle so cycles never stack. Every thirty seconds it writes its status and a memory sample, so a frozen number is never shown as live. Once an hour, at a fixed offset of its own, one cycle delivers the redacted events and every other call to repoops.ai, and the hourly brain snapshot follows. On the other quarter hours it asks repoops.ai one question, whether a transcript or containment request is waiting, and pulls only when the answer changed. A nightly pass runs the reflection and digest work.

Its memory ceiling is half of the machine's RAM and at least 2048 MB (REPOOPS_DAEMON_MEMORY_CEILING_MB overrides it). Three readings in a row above it make the daemon write a final status, release its lock and exit, so it can be restarted clean.

What leaves the machine

The daemon never listens on a port; it only makes outbound HTTPS calls. No code, brain content or telemetry leaves until you bind the device to a team and cloud sync is on. The anonymous reliability beacon (crash and version counts) is the one default-on path and carries neither. Events are redacted before they touch disk, and captured transcripts stay in a local store that is never committed and are redacted again on the way out.

Warm artifacts and the native collector

Let the daemon keep these artifacts current, on Today's card for this machine and as a Settings row, has the daemon rebuild the relationship map, the code and recall graphs and the causal edges in the background. It is off by default and the daemon reads it when it starts, so restart the daemon after ticking it; the card says so until you do. On one 32 GB machine a full pass over five repositories took under a minute and added about a gigabyte while it ran.

Capture with the native collector, in Settings under Capture daemon, is an evaluation for RepoOps in the default browser and is off by default. In the desktop app and a source server the switch is disabled and says why.

The hosted view of every device

On repoops.ai, Production lists each bound device's capture daemon as a source: the source dots at the top of the page open the list, and each device opens its own source page with its version, its freshness rule and, when the device said, why it is quiet. Liveness comes from the time the server received the last report, not from the device's own flag, because a dead process cannot send its last green status. A report older than 65 minutes reads stale; past the dark cutoff (2 hours, REPOOPS_DAEMON_STALE_ALERT_HOURS) a still-running row reads offline, and an hourly sweep alerts owners and admins once per dark episode. A graceful stop reads stopped and never alerts.

Telemetry push and Brain publish are separate columns, each advancing only when data actually left, so a fresh report beside an old push points at a push gate rather than a dead process. A quiet reason (cloud sync off, no binding, a revoked token, a plan without cloud push, a network error) shows under the state when the device sends one. Version drift is shown only when the update feed resolves. The page is read-only: start, stop and update happen on the machine.

Cost

Capture, status, the hosted state and the dark sweep make no model call. The nightly reflection uses your own key when one is set. The cost the daemon adds is memory and CPU on your machine, and the one bounded health request after each capture cycle when cloud sync is on.