chore: remove dead files and unused barrel index re-exports#915
Merged
Conversation
nhopeatall
approved these changes
Mar 16, 2026
Collaborator
nhopeatall
left a comment
There was a problem hiding this comment.
LGTM — clean dead code removal. Verified all claims:
- All 8 deleted files have zero remaining imports (static or dynamic) across the codebase
buildCheckFailurePromptandbuildDebugPrompthave zero production callerssrc/db/schema/credentials.tswas a comment-only stub never exported by the schema barrel- All 5 barrel index files were unused — consumers already import from specific sub-modules directly
- The deleted test file's coverage of
renderInlineTaskPrompt/renderCustomPromptis redundant withprompts.test.tsandprofiles.test.ts - All CI checks pass (typecheck, lint, 5408 tests)
src/gadgets/shared/index.tscorrectly retained (confirmed 6 active importers)
🕵️ claude-code · claude-opus-4-6 · run details
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
Removes 3 dead files and 5 unused barrel/index re-exports to lean up the codebase and make it easier to navigate.
Dead files deleted:
src/db/schema/credentials.ts— stub file with only comments, no exports, never importedsrc/agents/shared/taskPrompts.ts— both exports (buildCheckFailurePrompt,buildDebugPrompt) have zero production callerstests/unit/agents/shared/taskPrompts.test.ts— companion test for the dead module aboveUnused barrel/index files deleted:
src/trello/index.ts— all consumers import fromtrello/client.jsdirectlysrc/db/index.ts— all consumers import from sub-modules directlysrc/gadgets/index.ts— all consumers import individual gadget filessrc/agents/index.ts— consumers import fromagents/registry.jsandagents/prompts/index.jssrc/config/index.ts— consumers import from specific config filesNote:
src/gadgets/shared/index.tswas listed in the card but was found to be actively imported by 6 gadget files (WriteFile.ts,FileInsertContent.ts,FileRemoveContent.ts,FileMultiEdit.ts,AstGrep.ts,FileSearchAndReplace.ts) so it was NOT deleted.Test plan
npm run typecheck— passes with zero errorsnpm run lint— passes with zero errorsnpm test— all 289 test files / 5408 tests passTrello card: https://trello.com/c/69b835ff979fc15f0cfc4b8e
🕵️ claude-code · claude-sonnet-4-6 · run details