ask and chat run graph’s agent loop — the conversational surface for probing tools, prototyping workflows, and exercising plans. Every tool call here also feeds the shape cache, so exploration makes the planner smarter. Anything you’ll run twice belongs in a plan, and plans get their own surface: the workbench.
One-shot: graph ask
- Streaming: the answer streams to stdout; tool activity (dim
→ tool {args}/✓ tool 0.8slines) goes to stderr.graph ask "…" > out.mdcaptures just the answer. - Piped stdin becomes context:
--jsonbuffers and emits a machine-readable envelope instead:--no-streamprints the final answer only, without token streaming.
Interactive: graph chat
A failed turn keeps the session alive and rolls the conversation back so a retry starts clean. On exit you get a copy-pasteable resume hint: