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

CLI-facing command helpers for the manual Delegate daemon.

The foreground command has a slightly different lifecycle from normal Delegate
commands: it must print startup evidence and then keep the BEAM runtime alive. To keep
`Pixir.CLI` rendering disciplined, this module returns a payload map that may include
an internal `:after_render` callback. The public return shape still follows the
project contract: `{:ok, term} | {:error, term}`.

# `run`

```elixir
@spec run(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, map()}
```

Start, inspect, or stop the workspace-local Delegate daemon.

---

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