Add system-tools: shell execution, file ops, directory listing#29
Open
dmoskov wants to merge 4 commits intoletta-ai:mainfrom
Open
Add system-tools: shell execution, file ops, directory listing#29dmoskov wants to merge 4 commits intoletta-ai:mainfrom
dmoskov wants to merge 4 commits intoletta-ai:mainfrom
Conversation
Provides four system interaction tools that extend Letta's built-in capabilities: - execute_shell_command: Run shell commands (not available in Letta built-ins) - read_file_contents: Read files without character limits (Letta's built-in has 500 char limit - write_file_contents: Overwrite files (Letta's built-in only appends) - list_directory_contents: List directory contents (not available in Letta built-ins) Includes registration script for easy setup via REST API. Co-Authored-By: Claude <noreply@anthropic.com> EOF )
- smart_read_file: Uses LLM to extract only relevant snippets based on query Prevents context window blowup while still accessing full file content - smart_grep_file: Regex search with configurable context lines No LLM required, returns matches with surrounding context Both tools respect the principle behind Letta 500 char limit while providing more intelligent file access. Co-Authored-By: Claude <noreply@anthropic.com>
Collaborator
|
Hey @letta-code could you take a look please? |
|
Letta Code encountered an error —— View job The agent encountered an issue before updating the comment. |
Self-contained Asana client with: - 30-second timeouts and automatic retries - Simple auth via ASANA_ACCESS_TOKEN env var - Full task CRUD, search, comments, subtasks - Both CLI and library usage - Detailed setup guide for Personal Access Tokens Also adds __pycache__ to .gitignore. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This reverts commit 1a656c4.
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
Adds four system interaction tools that extend Letta's built-in capabilities:
execute_shell_commandread_file_contentsread_from_text_filehas 500 char limitwrite_file_contentsappend_to_text_fileonly appendslist_directory_contentsFiles
SKILL.md- Full documentation with examplesscripts/system_tools.py- Tool implementationsscripts/register_system_tools.py- Registration scriptreferences/COMPARISON.md- Comparison with Letta built-insUsage
Or via SDK:
Security Note
execute_shell_commandis intentionally not in Letta's built-ins for security in multi-tenant environments. These tools are designed for trusted, single-tenant deployments.Test Plan
🤖 Generated with Claude Code