Skip to content

Conversation

johnib
Copy link

@johnib johnib commented Sep 20, 2025

Summary

Adds interactive CLI model selection for Claude Code integration, allowing users to choose both primary and small/fast models when using the --claude-code flag.

Changes

  • Enhanced start command: Added model selection prompts when --claude-code flag is used
  • Interactive model selection: Users can select from available GitHub Copilot models for both primary and background tasks
  • Environment generation: Generates proper Claude Code environment variables with selected models
  • Improved UX: Clear prompts and model options display

Test Plan

  • Manual testing of --claude-code flag with model selection
  • Verification of generated environment variables
  • ESLint and TypeScript validation
  • Integration with existing Claude Code workflow

Benefits

  • Better model control: Users can choose optimal models for their specific use case
  • Resource optimization: Separate small/fast model selection for background tasks
  • Enhanced flexibility: Works with all available GitHub Copilot models

Closes #106

🤖 Generated with Claude Code

johnib and others added 2 commits September 20, 2025 18:00
Add --model and --small-model flags to allow non-interactive model selection when using --claude-code flag. This enables automation and avoids repetitive prompts during development.

Features:
- New CLI options: --model (-m) and --small-model (-s)
- Model validation with helpful error messages
- Backward compatibility with interactive selection
- Comprehensive unit tests with 20 test cases
- Updated documentation with usage examples

Also fix Zod v4 compatibility issue in anthropic-response.test.ts by updating z.record(z.any()) to z.record(z.string(), z.any()).

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add void operator for mock.module promises
- Move parseCliArgs function to outer scope
- Add default case in switch statement
- Fix function scoping and TypeScript errors

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@johnib johnib closed this Oct 3, 2025
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.

Feature Request: Non-Interactive CLI Model Selection for Claude Code Integration
1 participant