Skip to content

feat: per-task model override for kanban workers#23234

Closed
hongchen1993 wants to merge 1 commit into
NousResearch:mainfrom
hongchen1993:feat/per-task-model-override
Closed

feat: per-task model override for kanban workers#23234
hongchen1993 wants to merge 1 commit into
NousResearch:mainfrom
hongchen1993:feat/per-task-model-override

Conversation

@hongchen1993

Copy link
Copy Markdown
Contributor

Summary

Allow Producer to set per-Consumer model via model_override field on kanban tasks.

Changes

  • Task.model_override field (Optional[str])
  • Schema migration for existing databases
  • _default_spawn passes -m model when model_override is set
  • SCHEMA_SQL includes model_override TEXT column

Motivation

Without per-task model override, ALL workers run on the profile's default model. This means:

  • Simple tasks waste Pro compute
  • Complex tasks can't opt into Pro for quality
  • Flash/Pro routing is impossible at the kanban level

This enables Hands allocation matrix to route per-Consumer model selection.

Usage

kanban_create(title="Consumer: simple task", assignee="harness", model_override="deepseek-v4-flash")
kanban_create(title="Consumer: code review", assignee="harness", model_override="deepseek-v4-pro")

- Add model_override field to Task class and tasks schema
- Add migration for existing databases
- Spawn worker with -m model when model_override is set
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/plugins Plugin system and bundled plugins comp/cron Cron scheduler and job management labels May 10, 2026
@teknium1

Copy link
Copy Markdown
Contributor

Merged via PR #28364 (cherry-picked onto current main with your authorship preserved via rebase-merge — commit f01ee0b). Thanks for the contribution!

@teknium1 teknium1 closed this May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cron Cron scheduler and job management comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants