English: README · Guide · API | 简体中文:README · 快速入门 · API
An open-source Dynamic Workflow runtime that combines deterministic TypeScript orchestration with replaceable Agent runtimes.
deer-workflow is a pilot project for
DeerFlow 3.0, also known as
DeerWork. The package name is @deerwork-ai/deer-workflow; the executable is
named deer-workflow.
Install Bun and Codex CLI, then sign in:
Bun is a fast, Node.js-compatible JavaScript runtime and toolkit; see its installation guide.
npm install -g @openai/codex
codex login
codex --versionCodex CLI and Codex Desktop are separate installations. Installing the Desktop
app does not install the codex terminal command.
Install the released CLI from npm:
bun install --global @deerwork-ai/deer-workflow
deer-workflow --helpRunning bun install without --global only installs dependencies for the
current project. It does not install the deer-workflow command globally.
deer-workflow agent "Inspect this repository"Describe the orchestration you need. The command runs the bundled
workflow-creator Skill through Codex and writes generated source to stdout:
deer-workflow create \
"Research several independent angles, verify the findings, and synthesize a report" \
> workflow.tsAlternatively, install the bundled Skill for your Agents, then ask any Agent that supports Agent Skills to create a Workflow:
deer-workflow skill installThe command copies the Skill into existing ~/.agents/skills and
~/.claude/skills directories and reports which destinations it changed or
skipped.
deer-workflow run ./workflow.ts --input '{"question":"Why has Neo Labs recently emerged as a new force in AI?"}'Interactive runs show meta.phases and rendered Markdown logs in a live
two-pane TUI, together with the Workflow name, module path, working directory,
and an animated highlight on the active phase. In the default mode, redirected
stderr remains JSONL for automation.
Use --print / -p when running on servers or in automation such as CI/CD,
task queues, process pipelines, and event collectors. It exposes a stable
stdout Event Stream with one JSON event per line:
deer-workflow run ./workflow.ts --print \
--input '{"question":"Why has Neo Labs recently emerged as a new force in AI?"}'Run Deep Research:
deer-workflow run ./examples/deep-research/workflow.ts \
--input '{"question":"How are Agent Skills and Dynamic Workflows evolving?","outputPath":"./report.html"}'Run Blog Writer:
deer-workflow run ./examples/blog-writer/workflow.ts \
--input '{"topic":"The Emerging Trends of Neo Labs","audience":"Agent builders"}'These paths refer to files in this repository. Clone or download the repository before running them.
The API Reference covers Agents, Flow Controls, Workflow Events, Logging, Runner behavior, JSON Schema output, and programmatic usage.
Clone the repository, then install its local dependencies and Git hooks:
git clone https://github.com/deerwork-ai/deer-workflow.git
cd deer-workflow
bun installRun the CLI directly from source while developing:
bun run dev -- --helpRun the complete quality gate before submitting changes:
bun run checkCodex CLI is the default Agent runtime, not an architectural dependency. Contributions for other Coding Agent integrations are welcome.
This project is licensed under the MIT License.