A Python-based text editor tool that leverages Anthropic's Claude-3 API for AI-powered file manipulation and code generation.
- AI-powered text and code generation using Claude-3
- File creation and modification
- String replacement functionality
- Line-specific text insertion
- Edit history with undo capability
- Safe file operations within work directory
- Directory listing and traversal
- File viewing with line range support
- Python 3.x
- anthropic
- python-dotenv
pip install -r requirements.txt
- Create a
.env
file with your Anthropic API key:
ANTHROPIC_API_KEY=your_key_here
- Run the editor:
python anthropic_editor.py
The editor uses Claude-3's computer-use beta capabilities to perform file operations and generate content based on natural language input.