Who it is forA DevOps or platform engineer who needs an agent-driven workflow to run on a server or in a CI job without an interactive terminal.
The problemAgent runs in a chat window cannot be scheduled, logged, or checked by automation.
The outcomeA non-interactive run that prints one JSON event per line, which a pipeline can capture, store, and act on.
What you need first
- Bun installed (https://bun.sh)
- Codex CLI installed and signed in, since Codex is the default Agent runtime
- A terminal on macOS, Linux, or Windows with Bun support
- Git, if you plan to clone the repository for examples or development
Steps
- Install Bun and the released CLI with
bun install --global @deerwork-ai/deer-workflow. - Commit your reviewed workflow.ts file to the repository that your pipeline uses.
- Add a pipeline step that runs
deer-workflow run ./workflow.ts --input '<your JSON input>' --print. (inferred, check the README) - Capture stdout and parse each line as a JSON event.
- Fail the job or alert the team based on the events that the run reports.
Prompt for your agent
Using the deer-workflow repository (deerwork-ai/deer-workflow), add a CI step that runs ./workflow.ts with the input <target input JSON> and the --print flag. Expected output: a captured JSONL event stream saved as an artifact. Verify that every stdout line parses as JSON before the job reports success.
Caveat. The README describes the JSONL stream as stable, but it does not show the event schema, so check the API Reference before writing parsers against specific event names.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for deerwork-ai/deer-workflow and "Run a workflow in CI and parse its JSON event stream"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer