fix: render boolean CLI params as presence flags in tool guidance#320
Merged
zbigniewsobiecki merged 3 commits intodevfrom Feb 16, 2026
Merged
fix: render boolean CLI params as presence flags in tool guidance#320zbigniewsobiecki merged 3 commits intodevfrom
zbigniewsobiecki merged 3 commits intodevfrom
Conversation
Merge dev to main
Merge dev to main
Claude Code agents were passing `--include-comments true` which oclif rejects as an unexpected argument, since boolean flags are presence-based (--flag or --no-flag). The tool guidance rendered them as `--flag <boolean>` giving the LLM no indication of the correct syntax. - Boolean params now render as `[--flag]` (default false/unset) or `[--no-flag]` (default true, showing how to disable) - Fixes `read-work-item --include-comments true` → UnexpectedArgsError - Add test for boolean flag with default:true rendering Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
--include-comments trueUnexpectedArgsError — oclif boolean flags are presence-based (--flag/--no-flag), but tool guidance rendered them as--flag <boolean>, causing the LLM to pass a value argumentdefault: true(likeinclude-comments) now render as[--no-flag], showing the LLM how to disable the default--draft,--no-commit) render as[--flag]Companion to #318 which fixed the same class of bug for array params.
Test plan
🤖 Generated with Claude Code