AGENTS.md@cli/src/lib/daemonA

AGENTS.md@cli/src/lib/daemon from phnx-labs/agi-cli is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add phnx-labs/agi-cli/cli/src/lib/daemon/AGENTS.md@git:20261020.a6bdf2f

Pins git:20261020.a6bdf2f in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
phnx-labs/agi-cli
Path
cli/src/lib/daemon/AGENTS.md
Versions recorded
31
Latest version
git:20261020.a6bdf2f, committed Oct 20, 2026
First version recorded
Sep 1, 2026
Size
32,112 bytes
Repository stars
26
License
a license file GitHub does not identify

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Daemon module

The background process behind `agents __daemon-run` — the interval-driven
services that keep sessions, device probes,
self-heal, and reapers running on each machine without a human polling them.

## Current architecture

**N independent per-device daemons, no daemon-to-daemon bus.** Every device
that runs agents-cli runs its own daemon process (`agents __daemon-run` →
`runDaemon()`, `daemon.ts:850`). No daemon opens a persistent connection to
another daemon. Cross-device state either rides per-device files in the existing
fleet-synced user repo (`fleet-shared-state.ts`, used by usage/auth sync) or an
on-demand `ssh` invocation of a peer CLI verb — e.g.
`watchFleetFeed` spawns `ssh <peer> agents feed watch --local`
(`cli/src/lib/feed/watch.ts:151`) and `watchFleetSessions` does the same for
sessions (`cli/src/lib/session/remote/watch.ts:245`). There is no shared daemon
protocol and no standing device-to-device usage/auth probe mesh.

**Start, claim, and stop are one serialized lifecycle.** All three mutate the
shared pid/heartbeat/socket inventory behind `<daemonDir>/daemon.lock`.
`stopDaemon()` holds that lock from target resolution through its postcondition,
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add phnx-labs/agi-cli/cli/src/lib/daemon/AGENTS.md@sha256:2d78e5733443ca60

The line at the top of this page pins the label git:20261020.a6bdf2f, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_pgvf77sfqz4cvgrq.svg)](https://markdownregistry.com/a/art_pgvf77sfqz4cvgrq)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 31 versions of this file, between Sep 1, 2026 and Oct 20, 2026, about one every 2 days.

versioncommittedcommitsizeaudit
git:20261020.a6bdf2f latest2026-10-20 a6bdf2f 32,112 BA view · diff
git:20261020.ac859d72026-10-20 ac859d7 31,488 BA view · diff
git:20261017.baba0f12026-10-17 baba0f1 31,706 BA view · diff
git:20261012.ddd8f722026-10-12 ddd8f72 34,686 BA view · diff
git:20261012.084dfac2026-10-12 084dfac 34,962 BA view · diff
git:20261011.ee62daa2026-10-11 ee62daa 35,244 BA view · diff
git:20261011.49a95272026-10-11 49a9527 35,298 BA view · diff
git:20261010.357c2b12026-10-10 357c2b1 33,334 BA view · diff
git:20261010.8d2e2012026-10-10 8d2e201 33,205 BA view · diff
git:20261009.bded1972026-10-09 bded197 30,690 BA view · diff
git:20261008.dabfc7e2026-10-08 dabfc7e 31,097 BA view · diff
git:20261006.59721832026-10-06 5972183 30,616 BA view · diff
git:20261006.d7c12042026-10-06 d7c1204 30,916 BA view · diff
git:20261005.0d37c612026-10-05 0d37c61 29,777 BA view · diff
git:20261005.13ad78d2026-10-05 13ad78d 30,179 BA view · diff
git:20261004.95b23892026-10-04 95b2389 29,016 BA view · diff
git:20261004.db874532026-10-04 db87453 29,053 BA view · diff
git:20260923.ffe3a5d2026-09-23 ffe3a5d 28,119 BA view · diff
git:20260923.ceec8b32026-09-23 ceec8b3 28,007 BA view · diff
git:20260913.b6dc2f52026-09-13 b6dc2f5 27,222 BA view · diff
git:20260913.e934bc72026-09-13 e934bc7 26,942 BA view · diff
git:20260907.04eabf02026-09-07 04eabf0 25,456 BA view · diff
git:20260907.079d9ee2026-09-07 079d9ee 25,610 BA view · diff
git:20260907.132d80e2026-09-07 132d80e 24,780 BA view · diff
git:20260907.261ed8c2026-09-07 261ed8c 24,963 BA view · diff
git:20260907.2dc61702026-09-07 2dc6170 24,809 BA view · diff
git:20260901.00948492026-09-01 0094849 24,213 BA view · diff
git:20260901.75231862026-09-01 7523186 24,596 BA view · diff
git:20260901.e51c2442026-09-01 e51c244 24,213 BA view · diff
git:20260901.c6e1c992026-09-01 c6e1c99 20,848 BA view · diff
git:20260901.ee54dc42026-09-01 ee54dc4 23,015 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (32112 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

phnx-labs/agi-cli · 26 stars · license a license file GitHub does not identify · pushed 2026-11-07 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_pgvf77sfqz4cvgrq
GET https://markdownregistry.com/api/v1/resolve?ref=phnx-labs/agi-cli/cli/src/lib/daemon/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/2d78e5733443ca60c96f00af07022170b9285aa180d6d3a3da28b2ed94f3b37e

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from phnx-labs/agi-cli

DESIGN.md@.agents/artifacts/2026-08-21 DESIGN.md file
phnx-labs/agi-cli · .agents/artifacts/2026-08-21/DESIGN.md
git:20260822.0edb90f · audit A · 26 stars
DESIGN.md@.agents/artifacts/2026-08-25 DESIGN.md file
phnx-labs/agi-cli · .agents/artifacts/2026-08-25/DESIGN.md
git:20260825.b3c3383 · audit A · 26 stars
DESIGN.md@.agents/artifacts/2026-09-05 DESIGN.md file
phnx-labs/agi-cli · .agents/artifacts/2026-09-05/DESIGN.md
git:20260906.5d705eb · audit B · 26 stars
DESIGN.md@.agents/artifacts/2026-09-06/account-model-v2 DESIGN.md file
phnx-labs/agi-cli · .agents/artifacts/2026-09-06/account-model-v2/DESIGN.md · The meta harness engineering system for agents. A Phoenix Labs source-available product (FSL-1.1-Apache-2.0)…
alpha · audit A · 26 stars
DESIGN.md@.agents/artifacts/2026-09-06/secrets-extraction DESIGN.md file
phnx-labs/agi-cli · .agents/artifacts/2026-09-06/secrets-extraction/DESIGN.md
git:20260906.a8060ea · audit A · 26 stars
DESIGN.md@.agents/artifacts/2026-09-06/share-extraction DESIGN.md file
phnx-labs/agi-cli · .agents/artifacts/2026-09-06/share-extraction/DESIGN.md
git:20260913.851b11f · audit A · 26 stars
AGENTS.md AGENTS.md file
phnx-labs/agi-cli · AGENTS.md
git:20261020.4f00dc6 · audit A · 26 stars
CLAUDE.md CLAUDE.md file
phnx-labs/agi-cli · CLAUDE.md
git:20260208.4be496d · audit B · 26 stars
DESIGN.md DESIGN.md file
phnx-labs/agi-cli · DESIGN.md · The meta harness engineering system for agents. A Phoenix Labs source-available product (FSL-1.1-Apache-2.0)…
alpha · audit A · 26 stars
AGENTS.md@cli AGENTS.md file
phnx-labs/agi-cli · cli/AGENTS.md
git:20261107.17d6c49 · audit B · 26 stars
CLAUDE.md@cli CLAUDE.md file
phnx-labs/agi-cli · cli/CLAUDE.md
git:20260825.72ebbe6 · audit B · 26 stars
image SKILL.md skill
phnx-labs/agi-cli · cli/src/commands/__tests__/testdata/stats-plugin-names/agents/plugins/create/skills/image/SKILL.md · Generate an image.
git:20261006.5fb8d40 · audit B · 26 stars

Every file in phnx-labs/agi-cli

Browse by kind, by grade A, or by owner.