Skip to content

feat: add model selection and difficulty tier management#11

Merged
gdhanush27 merged 1 commit into
mainfrom
featureX
May 12, 2026
Merged

feat: add model selection and difficulty tier management#11
gdhanush27 merged 1 commit into
mainfrom
featureX

Conversation

@gdhanush27

Copy link
Copy Markdown
Owner
  • Introduced /models command in Telegram bot to allow users to select models for different difficulty tiers.
  • Implemented openModelTiersPanel method to facilitate direct access to model tier selection.
  • Created dynamic options for model family selection in settings UI, allowing users to pick models for light, medium, and hard tasks.
  • Enhanced task splitting logic to propagate parent difficulty to child tasks.
  • Added unit tests to ensure proper handling of task difficulties and model selection.
  • Developed commands for setting model families and tier models, ensuring persistence across sessions.
  • Implemented model matching logic to improve user experience when selecting models based on input queries.

- Introduced `/models` command in Telegram bot to allow users to select models for different difficulty tiers.
- Implemented `openModelTiersPanel` method to facilitate direct access to model tier selection.
- Created dynamic options for model family selection in settings UI, allowing users to pick models for light, medium, and hard tasks.
- Enhanced task splitting logic to propagate parent difficulty to child tasks.
- Added unit tests to ensure proper handling of task difficulties and model selection.
- Developed commands for setting model families and tier models, ensuring persistence across sessions.
- Implemented model matching logic to improve user experience when selecting models based on input queries.
@gdhanush27
gdhanush27 merged commit fc76eaf into main May 12, 2026
4 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 46986b2ad0

ℹ️ 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".

}
if (matches.length === 1) {
const m = matches[0];
await this.modelManager.setPreferredFamily(m.family);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Write /model changes to the configuration that shadows them

When the user has set CoClaw.model.family through VS Code/Telegram settings, ModelManager.getPreferredFamily() always returns that configuration value before the global memento. This /model <family> path only updates the memento, so the command reports a successful switch while subsequent requests keep using the configured workspace/global setting instead. Persist the change to CoClaw.model.family as well, or explicitly clear that setting before relying on setPreferredFamily().

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant