Skip to content

Conversation

@hashemix
Copy link
Member

@hashemix hashemix commented Sep 21, 2025

📌 Summary

This PR introduces 6 new tools that enhance the server's capabilities, along with improvements to existing tools. These enhancements aim to provide better support of different scenarios and working with larger files and increase token efficiency by reducing the number of files processed or included in the results.

🔍 Related Issues

✨ Changes Made

  • Added a new Head File tool tool for reading the first N lines of a text file
  • Added a new Tail File tool for reading the last N lines of a text file
  • Added a new Read File Lines tool to read a specific range of lines from a text file, starting at a given line offset.
  • Added a new Calculate Directory Size tool for efficiently calculating the total size of a directory.
  • Added a new Find Empty Directories tool to list all empty directories within a given path.
  • Added a new Find Duplicate Files tool for efficient detection of duplicate files within a given path. The duplication check follows a three-step process: first by comparing file sizes, then comparing the first 4KB of file content, and finally performing a full file content comparison to ensure accurate detection.
  • Updated Search Files and Search Files Content tools with new arguments of min_bytes and max_bytes` to help searching files withing a specific range.
  • Used rayon to improve performance by parallelizing certain tasks.
  • Created invoke_tools macro to reduce code boilerplate for calling tools

rayon

🛠️ Testing Steps

cargo make check

@hashemix hashemix changed the title Feat/add multiple new tools feat: add multiple new tools + enhancements Sep 21, 2025
@hashemix hashemix merged commit 6188eb3 into main Sep 21, 2025
9 checks passed
@hashemix hashemix mentioned this pull request Sep 21, 2025
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