workflows/hello.tsx
Ghost doc — This is a real script found at
workflows/hello.tsx in the Smithers repository. It demonstrates the simplest possible workflow with direct literal output (no AI agent).Source
Running
What This Demonstrates
- Literal output — The
Taskreceives a plain object instead of an agent prompt, producing deterministic output with no LLM call. createSmithers— Registers a Zod schema and auto-generates the backing SQLite table. No manual DDL needed.ctx.input— Access the input payload passed via--inputon the CLI.- Resumable — If the workflow crashes after the task completes, re-running skips straight to the end because the output is already persisted.