Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tree_directory() and cat_multiple_files() tools #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

paulmaunders
Copy link

This PR introduces two new functions to enhance the Claude Engineer script's capabilities:

  1. tree_directory function:

    • Displays file and directory structure as a tree
    • Allows exclusion of specified folders at any depth (e.g. large folders like node_modules)
    • Provides a summary of total and displayed items
  2. cat_multiple_files function:

    • Enables viewing contents of multiple files simultaneously
    • Implements file size limits to manage token usage efficiently

These additions improve Claude Engineer's ability to analyse project structures and review code, while optimising token usage for large codebases.

@paulmaunders
Copy link
Author

The system prompt additions included here are a little verbose at the moment, and can probably be implemented more efficiently, however I think the general idea of giving Claude Engineer the ability to view the file structure of a project as a tree, and to also review more than one file simultaneously is worth adding!

@lgiavedoni
Copy link

+1

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.

None yet

2 participants