Add workflow orchestrator enhancements - #5
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d916fdd5b8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| sessionFile, | ||
| systemPrompt: agent.systemPrompt, | ||
| model: agent.model, | ||
| model: pickModel(agent.model, currentState?.model, ctx.model?.id), |
There was a problem hiding this comment.
Honor the workflow model override before agent defaults
When a user starts /workflow --model <id> "goal", startWorkflow stores that model in currentState.model, but this call passes agent.model to pickModel first. Because the bundled PM/developer/verifier agent files all define model: openrouter/free, the requested run model is never used for those subagents (the PM runner uses the same precedence below), so the new CLI flag silently has no effect unless users edit or remove every agent model line.
Useful? React with 👍 / 👎.
Summary
This PR makes the workflow orchestrator usable directly from an installed Pi package while keeping project-level customization available.
Runtime changes
/workflow "goal", optional workflow names, quoted arguments, and--model <id>./modeland agent-frontmatter hints.Documentation and configuration
openrouter/free.Tests
Validation
git diff --checkpassing