feat: add multi-harness support (Claude/Qwen CLIs)#8
Merged
Conversation
- Fix build commands: task -> just (README.md, user-guide.md) - Fix config file reference: config -> config.yaml (user-guide.md) - Fix Makefile -> justfile (architecture/README.md) - Add missing commands to maintenance table: backup, restore, recover, metrics - Remove broken links to non-existent cmd/README.md and internal/README.md - Fix table alignment for markdownlint compliance
- Add --harness flag to switch command to select CLI harness - Add --model flag to override model (passed to Qwen CLI) - Add getHarness() and getHarnessBinary() helper functions - Add harness get/set commands for managing default harness - Add DefaultHarness field to Config struct - Enhance GenerateWrapperScript to support custom env var names - Qwen uses ANTHROPIC_API_KEY wrapper for secure API key handling - Validate harness names and warn on invalid values - Support case-insensitive harness names
- Add cmd/harness_test.go with tests for: - harness get/set commands - getHarness() and getHarnessBinary() functions - Case-insensitive harness validation - Add wrapper envVarName parameter tests: - Custom env var (ANTHROPIC_API_KEY) - Default env var (ANTHROPIC_AUTH_TOKEN) - Empty string defaults to ANTHROPIC_AUTH_TOKEN
- README.md: Add Multi-Harness feature, fix table formatting - cmd/README.md: Add harness commands, --harness and --model flags - docs/guides/user-guide.md: Add harness get/set documentation - cmd/setup.go: Add promptForHarness() for setup wizard
- Update description to mention Claude Code and Qwen Code - Add prerequisites section for both Claude and Qwen CLI - Add harness commands to Execution section - Update Security section to mention wrapper scripts
Fix table column alignment in README.md and cmd/README.md to pass markdownlint validation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
kairo harness get/setcommands to manage default CLI harness--harnessflag onswitchcommand to override harness per invocation--modelflag support for Qwen harness (passed through to qwen CLI)Technical Details
cmd/harness.gowith get/set subcommands--harnessflag added to switch commandKAIRO_HARNESSenvironment variabledefault_harnessfieldTest plan