# `Pixir.Delegate.DaemonServer`
[🔗](https://github.com/Ranvier-Technologies/pixir/blob/main/lib/pixir/delegate/daemon_server.ex#L1)

Manual foreground Delegate daemon with bounded local IPC.

This GenServer is the first cross-invocation residency boundary for Delegate service
mode. A human or supervising caller starts one foreground Pixir process for a
workspace; short-lived CLI clients then use loopback IPC to ask that process to run
`delegate start/status/attach/cancel` against live OTP owners.

The daemon is intentionally not a production service manager. It does not auto-start,
install launchd state, create a second durable store, or spawn one OS process per
child. The endpoint file is only live capability metadata. The Session Log remains
durable truth.

# `await_stop`

```elixir
@spec await_stop(pid()) :: {:ok, :stopped}
```

Block until the daemon process exits.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `start_link`

```elixir
@spec start_link(keyword()) :: GenServer.on_start()
```

Start a Delegate daemon server for a workspace.

# `started_payload`

```elixir
@spec started_payload(pid()) :: {:ok, map()} | {:error, map()}
```

Return daemon startup metadata safe for stdout.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
