You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a live trace view to serve, and a file-backed plan approval flow (#39)
The server grows an optional read-only /live view (grapharc serve
--live-root PATH, token-gated via --live-token / GRAPHARC_LIVE_TOKEN)
that lists trace files and streams a run's events over SSE with a
mermaid topology render. Slack gains the same live link plumbing, the
planner gains a file-backed approval store with a grapharc approve
command, and to_mermaid learns clustered multi-round topologies.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
grapharc viz <path><run-id># Mermaid diagram of the executed path
172
+
grapharc viz <path><run-id># Mermaid diagram: the declared graph, execution status overlaid
171
173
grapharc replay <path><run-id># reconstruct a run from its trace
172
174
grapharc diff <path><a><b># what changed between two runs
173
175
```
174
176
175
-
Eleven commands, and every one of them takes `--json` — in JSON mode the failure is the document rather than a line on stderr. Exit codes are part of the interface: `0` did the job, `1` ran and the answer was negative (an agent stopped short, a run id had no events, two runs differed), `2` could not run at all.
177
+
Twelve commands, and every one of them takes `--json` — in JSON mode the failure is the document rather than a line on stderr. Exit codes are part of the interface: `0` did the job, `1` ran and the answer was negative (an agent stopped short, a run id had no events, two runs differed), `2` could not run at all.
176
178
177
-
The Slack bot puts most of these commands one `/grapharc …` away from a phone, behind an allowlisting gate that keeps the default spend at zero — setup in [docs/cookbook/07-slack.md](docs/cookbook/07-slack.md), and a command-by-command session, refusals included, in [docs/cookbook/08-slack-walkthrough.md](docs/cookbook/08-slack-walkthrough.md).
179
+
The Slack bot puts most of these commands one `/grapharc …` away from a phone, behind an allowlisting gate that keeps the default spend at zero — setup in [docs/cookbook/07-slack.md](docs/cookbook/07-slack.md), and a command-by-command session, refusals included, in [docs/cookbook/08-slack-walkthrough.md](docs/cookbook/08-slack-walkthrough.md). A tracing command run from Slack is narrated live — one status message edited in place as nodes run, with a refreshed diagram link — and `grapharc serve --live-root` adds a browser page that redraws the orchestration graph in real time over SSE.
178
180
179
181
The `run` stages use scripted models by default, so they cost nothing and produce the same trace every time. Add `--model` to run one against a real backend — that works for stage1 through stage6 and the capstone; stage0 is pure code with no model in it. `grapharc agent` is the exception: it needs a tool-calling backend and says so rather than degrading, because a scripted model has no `bind_tools` to drive a tool loop with.
0 commit comments