{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "deerwork-ai-deer-workflow--run-workflow-in-ci-with-json-events",
 "repo": "deerwork-ai/deer-workflow",
 "repo_url": "https://github.com/deerwork-ai/deer-workflow",
 "repo_slug": "deerwork-ai-deer-workflow",
 "title": "Run a workflow in CI and parse its JSON event stream",
 "page_title": "How to run a workflow in CI and parse its JSON event stream with Deer Workflow",
 "summary": "Execute a saved workflow in a build pipeline and read a stable JSONL event stream.",
 "who": "A DevOps or platform engineer who needs an agent-driven workflow to run on a server or in a CI job without an interactive terminal.",
 "problem": "Agent runs in a chat window cannot be scheduled, logged, or checked by automation.",
 "outcome": "A non-interactive run that prints one JSON event per line, which a pipeline can capture, store, and act on.",
 "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."
 ],
 "agent_prompt": "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.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "45 minutes",
 "basis": "readme",
 "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.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/deerwork-ai-deer-workflow/run-workflow-in-ci-with-json-events/",
 "md": "https://dedupedai.com/use-cases/deerwork-ai-deer-workflow/run-workflow-in-ci-with-json-events/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/deerwork-ai-deer-workflow--run-workflow-in-ci-with-json-events.json",
 "api_version": "v1"
}
