Skip to content

Merge dev to main#319

Merged
zbigniewsobiecki merged 2 commits intomainfrom
dev
Feb 16, 2026
Merged

Merge dev to main#319
zbigniewsobiecki merged 2 commits intomainfrom
dev

Conversation

@zbigniewsobiecki
Copy link
Copy Markdown
Member

Summary

Changes included

  • Extract formatParam() helper for clean array-type parameter rendering
  • Array params now render as --item <string> (repeatable) in tool guidance
  • Rename --items--item (singular) CLI flag and tool manifest param
  • New test coverage for array parameter rendering

CI

🤖 Generated with Claude Code

zbigniewsobiecki and others added 2 commits February 16, 2026 21:58
Claude Code agents were passing --items as a single JSON array string
(e.g. --items '["Step 1", "Step 2"]'), creating one malformed checklist
item instead of individual items. This happened because buildToolGuidance()
rendered array params as `--items <array>`, giving no indication that
repeated flags are needed.

- Extract formatParam() helper from buildToolGuidance() to reduce
  cognitive complexity and handle array-type params
- Array params now render as `--item <string> (repeatable)` instead of
  `--items <array>`
- Rename CLI flag from --items to --item (singular) to match convention
- Rename tool manifest param from items → item to match the CLI flag
- Add test coverage for array parameter rendering (required + optional)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…e-flag

fix: render array CLI params as repeatable flags in tool guidance
@zbigniewsobiecki zbigniewsobiecki merged commit c4250ca into main Feb 16, 2026
8 checks passed
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