DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to run a workflow in CI and parse its JSON event stream with Deer Workflow

Execute a saved workflow in a build pipeline and read a stable JSONL event stream.

Short answer: Install Bun and the released CLI with bun install --global @deerwork-ai/deer-workflow; then 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. All steps.

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

  1. Install Bun and the released CLI with bun install --global @deerwork-ai/deer-workflow.
  2. Commit your reviewed workflow.ts file to the repository that your pipeline uses.
  3. Add a pipeline step that runs deer-workflow run ./workflow.ts --input '<your JSON input>' --print. (inferred, check the README)
  4. Capture stdout and parse each line as a JSON event.
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer