Skip to main content

supergit

The database of the future.

Overview

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.

Features

  • 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.

Requirements

  • Python 3.6+
  • Git
  • Anthropic API Key (set in the ANTHROPIC_API_KEY environment variable)

Installation

  1. Clone the repository.
  2. Install the repository.
    cd supergit
    pip install -e .
    
  3. Set your Anthropic API key:
    export ANTHROPIC_API_KEY='your_api_key_here'
    

Usage

Initialize Supergit

To initialize a supergit repository:

supergit init --dir /path/to/root

Add a File

To add a file to the supergit repository:

supergit add --file /path/to/file --dir /path/to/root

Reindex Directories

To reindex the supergit directories:

supergit reindex --dir /path/to/root

Query Files

To query files in the supergit repository:

supergit query --dir /path/to/root "your query here"

License

This project is licensed under the MIT License.

Metadata

Release files for supergit 0.1.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 supergit 0.1.0
File Size Uploaded
supergit-0.1.0.tar.gz 7.3 kB Details

Built distribution (wheel)

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

Total release size: 15.0 kB

Release files / supergit-0.1.0.tar.gz

Download URL supergit-0.1.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d35f831dde3519436f556ff559733495cecccc47dfc7e276ba5405c02e319949
BLAKE2b-256 checksum
How to use checksums
8891a9aa1b51add2303024ac72e1e173d3bd3267bf89d125da96c5bb57de79fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.10

Release files / supergit-0.1.0-py3-none-any.whl

Download URL supergit-0.1.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
717463eaeddca34a47fa7d1d6f5748788dae338f4e7f81312a53745e599ad701
BLAKE2b-256 checksum
How to use checksums
4d41cb4c24b3eaeba9c0a6430d2b57b6c2e2472183827e65156134ffd6ef833b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

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