ds-flow is a lightweight Claude Code Desktop workflow for using one stronger model to plan and a cheaper/faster model to implement and review.
Default model roles:
claude-dk-v4-pro: project planningclaude-dk-v4-flash: implementationclaude-dk-v4-flash: read-only plan-vs-code review
It is tuned for small local projects, especially:
- simple deep learning demos that run on CPU
- small websites
- scripts
- lightweight system tools
plan: Pro inspects the project and writes.claude/ds-flow/plan.md.implement: Flash implements only the saved plan.validate: the local script runs cheap detected checks, such aspython3 -m unittest discover -vornpm test, and writes.claude/ds-flow/validation.md.review: Flash compares the plan, validation report, tracked diff, and untracked text files, then writes.claude/ds-flow/review.md.fix: Flash applies only the minimal fixes requested by the review.
The actual model calls run through your Claude Code CLI. On this machine, the script can read the Claude-3p gateway configuration automatically.
From this repository:
./install.shThen restart Claude Code Desktop.
Run these inside a Claude Code Desktop local project or cowork session:
/ds-flow status
/ds-flow plan your requirement here
/ds-flow implement
/ds-flow validate
/ds-flow review
/ds-flow fix
One-shot mode:
/ds-flow loop build a tiny CPU-only linear regression demo with unittest tests
The workflow files are written inside the current project:
.claude/ds-flow/plan.md
.claude/ds-flow/validation.md
.claude/ds-flow/review.md
.claude/ds-flow/transcripts/
Environment variables:
DS_FLOW_PRO_MODEL: override planning model.DS_FLOW_FLASH_MODEL: override implementation/review model.DS_FLOW_IMPLEMENT_PERMISSION: override Claude Code permission mode for implementation and fix.DS_FLOW_MAX_BUDGET_USD: cap each Claude Code--printsub-run.DS_FLOW_SKIP_POST_VALIDATE=1: skip automatic local validation after implement/fix.CLAUDE_BIN: explicit Claude Code CLI path.
For deep learning tasks, ds-flow instructs models to prefer:
- CPU-only execution
- tiny synthetic or local datasets
- tiny models
- deterministic seeds
- short smoke tests
- no large downloads unless explicitly requested
See examples/smoke-python for a tiny standard-library linear regression example produced by the workflow.
cd examples/smoke-python
python3 train_linear.py
python3 -m unittest discover -vAfter pulling new changes:
git pull
./install.shRestart Claude Code Desktop so it reloads the skill and agent.