Adopt the cli-guard/dispatch package #6

Closed
opened 2026-05-23 20:53:17 +00:00 by coilysiren · 0 comments
Owner

Originally filed by @coilysiren on 2026-05-21T12:25:27Z - https://github.com/coilysiren/agent-guard/issues/26

Goal - Wire the reusable cli-guard/dispatch package (coilysiren/cli-guard#86, landed) into agent-guard's command tree, so agent-guard consumers get dispatch headless / dispatch interactive / dispatch reap.

Wire - build a dispatch.Config from agent-guard's runner + audit writer and hang dispatch.New(...).Command() off agent-guard's urfave/cli tree, the same way agent-guard wires shell, verb, audit today.

  • Config.Wrap adapts agent-guard's verb pipeline.
  • Config.AllowedOwner / RepoPath / WorktreeRoot / LogRoot reflect agent-guard's host policy and workspace layout (these are the host-specific seams the package refuses to hard-code).
  • Config.BinaryName = "agent-guard".
  • Config.Notify optional - wire ntfy / a done-banner if desired.

Pin - bump the cli-guard pin to the commit that landed #86.

Surfaced from coilysiren/cli-guard#86 sequencing: cli-guard package first, then coily switches to thin wiring, then agent-guard adopts. Each repo is its own commit closing its own issue.

_Originally filed by @coilysiren on 2026-05-21T12:25:27Z - [https://github.com/coilysiren/agent-guard/issues/26](https://github.com/coilysiren/agent-guard/issues/26)_ **Goal** - Wire the reusable `cli-guard/dispatch` package (coilysiren/cli-guard#86, landed) into agent-guard's command tree, so agent-guard consumers get `dispatch headless` / `dispatch interactive` / `dispatch reap`. **Wire** - build a `dispatch.Config` from agent-guard's runner + audit writer and hang `dispatch.New(...).Command()` off agent-guard's urfave/cli tree, the same way agent-guard wires `shell`, `verb`, `audit` today. - `Config.Wrap` adapts agent-guard's verb pipeline. - `Config.AllowedOwner` / `RepoPath` / `WorktreeRoot` / `LogRoot` reflect agent-guard's host policy and workspace layout (these are the host-specific seams the package refuses to hard-code). - `Config.BinaryName` = `"agent-guard"`. - `Config.Notify` optional - wire ntfy / a done-banner if desired. **Pin** - bump the cli-guard pin to the commit that landed #86. Surfaced from coilysiren/cli-guard#86 sequencing: cli-guard package first, then coily switches to thin wiring, then agent-guard adopts. Each repo is its own commit closing its own issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
coilyco-flight-deck/ward#6
No description provided.