Skip to main content

Filepilot 🚀✨

License Python Version Version

Filepilot is an AI-powered tool for creating, analyzing, and modifying files using Natural Language Processing (NLP). It provides a command-line interface (CLI) for interacting with Anthropic's Claude AI assistant using the Claude-3-5-Sonnet model, leveraging its capabilities to generate file content, analyze existing files, and apply edits based on natural language instructions. Since Filepilot operates directly on files in your workspace, it seamlessly integrates with any IDE or text editor, maintaining your development workflow while adding AI capabilities.

Demo

Demo

Features ✨

  • 🆕 Create: Generate new files with AI-generated content based on a description and optional reference files
  • 📁 CreateDir: Create entire directory structures with multiple files
  • 🔍 Analyze: Get a concise summary of a file's main purpose using NLP
  • 🚀 Modify: Edit existing files by providing natural language instructions
  • 🔄 Update: Modify files based on analyzing reference files
  • 🤖 Powered by Claude-3: Harness the power of Anthropic's Claude-3-5-Sonnet model
  • 👀 Visual Diffs: Review changes with syntax-highlighted diffs before applying

Installation 🛠️

Install via pip:

pip install filepilot

Or use Docker:

docker pull ghcr.io/joaompinto/filepilot

Set your API key:

export ANTHROPIC_API_KEY="your-api-key-here"

Usage 📖

Basic commands:

# Create a new file
filepilot create app.py "Create a Flask web application with a home route"

# Create a directory structure
filepilot createdir webapp "A web application with templates and routes"

# Change directory and create a new file
filepilot changedir src "Create a new file in the src directory"

# Analyze files
filepilot analyze app.py config.py

# Modify existing files
filepilot change app.py "Add error handling to the main route"

# Update based on reference files
filepilot update requirements.txt app.py

# Non-interactive mode
filepilot create -y script.py "A script that processes CSV files"

Docker usage:

docker run -it --rm -v $(pwd):/app -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
  filepilot filepilot analyze app.py

Enable verbose output:

export VERBOSE_MODE=true

Contributing 🤝

Contributions are welcome! Please follow the contributing guidelines.

License 📄

This project is licensed under the MIT License.

For Docker installation and usage instructions, see the Docker Guide.

Metadata

Release files for filepilot 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for filepilot 0.5.0
File Size Uploaded
filepilot-0.5.0.tar.gz 16.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for filepilot 0.5.0
File Interpreter ABI Platform
filepilot-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.5 kB

Release files / filepilot-0.5.0.tar.gz

Download URL filepilot-0.5.0.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
37dc776b3dd2999ec94f4dd2564725c1445af0e17ca696c7bffc53abbfeb5d3f
BLAKE2b-256 checksum
How to use checksums
57473c46422317c2078ced58046df599baa3ab9406b4faceb05a3b08dbed119e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / filepilot-0.5.0-py3-none-any.whl

Download URL filepilot-0.5.0-py3-none-any.whl
Size 22.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
753022fb0f0c6e6d9cd8b177f396328b65ff3b6c7dc30b8688b9e62dd0bf150d
BLAKE2b-256 checksum
How to use checksums
ff153517795015a45992f007f32d45466696b1c70b3967432e68fb3df30abefc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page