Skip to content

chore: remove duplicate tools superseded by deepagents#543

Merged
avoidwork merged 10 commits into
mainfrom
feat/remove-duplicate-tools
Jul 7, 2026
Merged

chore: remove duplicate tools superseded by deepagents#543
avoidwork merged 10 commits into
mainfrom
feat/remove-duplicate-tools

Conversation

@avoidwork

@avoidwork avoidwork commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Description

Remove duplicate and redundant tool implementations that are now provided by the deepagents middleware. This spans 6 commits cleaning up filesystem tools, todo tools, and prompt rules across 10 files (2,148 lines removed).

Type of Change

  • Refactor (no functional changes)

Testing

Lint passes clean (0 warnings, 0 errors across 141 files). No new code introduced — purely removal of duplicate implementations.

Coverage

  • Line coverage maintained

Checklist

  • npm run lint passes
  • Tests pass with maintained line coverage
  • No forbidden patterns used
  • Conventional Commit style applied

Changes

File Change
src/tools/filesystem.js Deleted — readFile, writeFile, patch, searchFiles now provided by deepagents
src/tools/todo.js Deleted — duplicate todo tool implementation
src/tools/todo_logic.js Deleted — duplicate todo logic
src/tools/todo_queue.js Deleted — duplicate todo queue
src/tools/index.js Removed filesystem/todo imports, cleaned TOOL_PERMISSIONS and TOOLS registry, renamed TOOL_FACTORIES → TOOLS
src/agent/deepAgents.js Removed unused imports
src/tui/app.js Removed duplicate todo tool references
prompts/CODING.md Removed duplicate tool usage rules
prompts/SYSTEM_PROMPT.md Removed duplicate tool usage rules and TOOL SCHEMAS section
tests/unit/filesystem.test.js Deleted — tests for removed filesystem tools

Commits

  1. feat: remove duplicate todo tool implementations
  2. docs: remove duplicate tool usage rules from prompts
  3. chore: remove TOOL SCHEMAS section from system prompts
  4. chore: remove filesystem.js tools (provided by deepagents)
  5. refactor: rename TOOL_FACTORIES to TOOLS
  6. `fix: remove unused imports from deepAgents.js

@avoidwork avoidwork changed the title chore: remove duplicate filesystem tools chore: remove duplicate tools superseded by deepagents Jul 7, 2026
avoidwork added 4 commits July 6, 2026 21:52
- Remove tool_queue.test.js and tool_todos.test.js (imported from non-existent todo_queue.js and todo.js)
- Update tool_index.test.js: remove 'todo', 'readFile', 'searchFiles' references, add missing tools (compactContext, createSkill, memory, skillView, skillsList)
- Update tool_registration.test.js: replace 'todo' with 'memory'
- Fix tool count assertions to match actual buildToolConfig output
…nd CODING.md

- SYSTEM_PROMPT.md RULES: 1-35 (was 1,2,5-35, missing 3,4)
- SYSTEM_PROMPT.md WHAT NOT TO DO: 1-33 (was 1,2,5-33, missing 3,4)
- CODING.md RULES: 1-22 (was 1,2,5-24, missing 3,4)
- CODING.md WHAT NOT TO DO: 1-13 (was 1,2,5-15, missing 3,4)
No rules added or removed, only renumbered.
@avoidwork avoidwork merged commit 37100fd into main Jul 7, 2026
2 checks passed
@avoidwork avoidwork deleted the feat/remove-duplicate-tools branch July 7, 2026 02:43
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