feat(gadgets): split TodoUpsert into focused gadgets#73
Merged
zbigniewsobiecki merged 1 commit intodevfrom Jan 18, 2026
Merged
Conversation
Extract status updates from TodoUpsert into a dedicated TodoUpdateStatus gadget to reduce LLM confusion and improve task tracking clarity. Changes: - Add TodoUpdateStatus gadget for status-only updates (pending/in_progress/done) - Simplify TodoUpsert to handle content creation/updates only - Update prompts to guide agents on using the separate gadgets - Add git status and PR status to implementation trailing messages - Add EditFile/WriteFile result handling guidance to prompts - Add comprehensive tests for both gadgets The separation makes each gadget's purpose clearer: - TodoUpsert: Plan work by creating todos - TodoUpdateStatus: Track progress by updating status Co-Authored-By: Claude <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
TodoUpsertinto dedicatedTodoUpdateStatusgadgetTodoUpsertto handle content creation/updates onlyMotivation
LLMs were getting confused about the dual-purpose nature of
TodoUpsert(both creating todos and updating their status). Splitting these concerns makes each gadget's purpose clearer:Changes
New Files
src/gadgets/todo/TodoUpdateStatus.ts- New gadget for status-only updatestests/unit/gadgets/todo.test.ts- Comprehensive tests for both gadgetsModified Files
src/gadgets/todo/TodoUpsert.ts- Removed status parameter, simplified to content-onlysrc/gadgets/todo/index.ts- Export new gadgetsrc/agents/base.ts- Register new gadgetsrc/agents/review.ts- Register new gadgetsrc/agents/utils/agentLoop.ts- Add logging for new gadgetsrc/config/hintConfig.ts- Add git status and PR status to trailing messagessrc/agents/prompts/templates/implementation.eta- Updated task tracking instructionssrc/agents/prompts/templates/respond-to-review.eta- Updated task tracking instructionssrc/agents/prompts/templates/partials/rules-efficiency.eta- Add EditFile/WriteFile result handlingTest plan
npm run typecheckpassesnpm run lintpassesnpm testpasses (120 tests)