Introduction
This guide walks through building a complete feature — a user authentication system — using Zenflow’s multi-model workflow. By assigning the right model to each phase (planning, implementation, review), you get higher quality output while using tokens efficiently. The core insight: frontier reasoning models excel at planning but are overkill for implementation. Fast models generate code efficiently when given a clear spec. Cross-model review catches issues that same-model review misses.Prerequisites
- A Zenflow workspace with a connected repository
- At least two saved presets configured (e.g., a planner and an implementer)
- Basic familiarity with workflows
Step 1: Set Up Your Presets
Before creating the task, configure agent presets in Settings → Saved presets:| Preset Name | Agent | Model | Purpose |
|---|---|---|---|
planner | Zencoder | auto-plus | Architecture and spec generation |
builder | Zencoder | auto | Code implementation |
reviewer | Zencoder | auto-plus | Cross-model code review |
Step 2: Create the Task
- Click New task and select Code mode
- Choose your repository and source branch
- Describe the feature:
- Select the Multi-model workflow
- Click Start
Step 3: Planning Phase
The Multi-model workflow starts with a planning phase using a frontier reasoning model. The agent produces:spec.md— Technical specification with architecture decisionsplan.md— Implementation steps broken into discrete tasks
- Are the architecture decisions sound? (e.g., JWT storage strategy, password hashing rounds)
- Does the plan cover edge cases? (expired tokens, duplicate emails, rate limiting)
- Is the scope right? (not too broad, not too narrow)
The planning phase is where reasoning depth matters most. A well-structured spec means the implementation phase needs fewer tokens to produce correct code — the agent doesn’t have to re-derive architectural decisions.
Step 4: Implementation Phase
Once you approve the plan, the workflow switches to a fast model for implementation. This is the most token-intensive phase, where model efficiency has the biggest impact. The fast model follows the spec and generates:- Route handlers for registration, login, and token refresh
- Middleware for authentication and authorization
- Database models and migrations
- Input validation schemas
- Unit tests for each component
Step 5: Review Phase
The workflow automatically switches to a different model for review. Cross-model review is more effective because a different model brings different assumptions and catches different classes of issues. The reviewer evaluates against the review rubric:- Semantic resolution — Does the implementation actually solve the requirement?
- Contract adherence — Do API signatures match what the spec defined?
- Regression safety — Could these changes break existing functionality?
- Scope discipline — Are there unnecessary changes outside the task scope?
Step 6: Iterate and Merge
After review, address any findings:- Check the review output in the task artifacts
- If changes are needed, provide guidance in chat — the agent iterates
- Run your verification script to confirm tests pass
- Click Create PR to push the branch and open a pull request
Token Efficiency Breakdown
Here’s a typical breakdown of where tokens are consumed across the three phases:| Phase | Token share | Model type | Efficiency strategy |
|---|---|---|---|
| Planning | ~15% | Frontier reasoning | Invest here — quality plan reduces total tokens downstream |
| Implementation | ~70% | Fast model | Largest token volume — fast model executes spec without re-deriving decisions |
| Review | ~15% | Different model | Cross-model perspective catches issues same-model review misses |
Advanced: Custom Multi-Model Workflow
For recurring projects, create a custom workflow that encodes your team’s specific multi-model process:Next Steps
Multi-Agent Orchestration
Full orchestration overview and approach comparison
Agent Presets
Configure and assign presets to workflow steps
Subagent Pipelines
Advanced parallel execution with isolated contexts
Custom Workflows
Build your own workflow templates