Skip to content

feat(gadgets): add required comment parameter to all gadgets#71

Merged
zbigniewsobiecki merged 2 commits intodevfrom
feat/gadget-comment-parameter
Jan 18, 2026
Merged

feat(gadgets): add required comment parameter to all gadgets#71
zbigniewsobiecki merged 2 commits intodevfrom
feat/gadget-comment-parameter

Conversation

@zbigniewsobiecki
Copy link
Copy Markdown
Member

Summary

  • Add a required comment string parameter to all 23 gadgets so agents must explain the rationale behind each gadget call
  • Log comment field (unabbreviated) in gadget call logs for better observability
  • Add todo list to implementation agent's trailing message to keep progress visible

Changes

  • Add comment: z.string().min(1) to all gadget schemas
  • Update all gadget examples to include comment field
  • Update synthetic gadget calls in agents with pre-fetch comments
  • Replace reason with comment in Sleep gadget
  • Rename comment to text in PostTrelloComment to avoid collision

Test plan

  • npm run typecheck passes
  • npm run lint passes
  • npm test passes (99 tests)

🤖 Generated with Claude Code

zbigniewsobiecki and others added 2 commits January 18, 2026 09:51
Add a required `comment` string parameter to all 23 gadgets so agents
must explain the rationale behind each gadget call. This improves
observability and debugging of agent sessions.

Changes:
- Add `comment: z.string().min(1)` to all gadget schemas
- Update all gadget examples to include comment field
- Log comment field (unabbreviated) in gadget call logs
- Update synthetic gadget calls in agents with pre-fetch comments
- Add todo list to implementation agent's trailing message
- Replace `reason` with `comment` in Sleep gadget
- Rename `comment` to `text` in PostTrelloComment to avoid collision

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
These gadgets are self-explanatory in their actions and don't benefit
from the additional rationale requirement like file/system operations do.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@zbigniewsobiecki zbigniewsobiecki merged commit 051bc67 into dev Jan 18, 2026
3 checks passed
@zbigniewsobiecki zbigniewsobiecki deleted the feat/gadget-comment-parameter branch January 18, 2026 08:59
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