The database of the future.
supergit is an intelligent file organizer that helps manage and organize files within a repository using LLM. It leverages the Anthropic API to provide contextual file organization and management.
- Anthropic API Integration: Utilizes the Anthropic API for intelligent file organization and context management.
- Contextual File Analysis: Analyzes file content and user instructions to determine the best directory and filename.
- Recursive Context Collection: Collects context data from
.supergit.yaml
files across directories. - File Placement and Commit: Moves files to appropriate directories and commits changes to the Git repository.
- Supergit Initialization: Initializes directories with
.supergit.yaml
files and sets up a Git repository. - Reindexing: Updates file indexes in
.supergit.yaml
files. - Natural Language Query: Finds files based on natural language queries.
- Python 3.6+
- Git
- Anthropic API Key (set in the
ANTHROPIC_API_KEY
environment variable)
- Clone the repository.
- Install the repository.
cd supergit pip install -e .
- Set your Anthropic API key:
export ANTHROPIC_API_KEY='your_api_key_here'
To initialize a supergit repository:
supergit init --dir /path/to/root
To add a file to the supergit repository:
supergit add --file /path/to/file --dir /path/to/root
To reindex the supergit directories:
supergit reindex --dir /path/to/root
To query files in the supergit repository:
supergit query --dir /path/to/root "your query here"
This project is licensed under the MIT License.