Skip to main content

Tired of main_fixed.py? file1.agent cleans up the mess from AI agents.

Project description

👕 file1.agent

Tired of main_fixed.py? file1.agent cleans up the mess from AI agents.

Tired of navigating through endless main_fixed.py and file_improved.py files? file1.agent revolutionizes your file management by eliminating AI-generated code clutter. Our advanced detection algorithms precisely identify and remove duplicate files and mock data, while our powerful graph visualization reveals complex file relationships at a glance. With vision model integration for comprehensive content analysis across text, images, and PDFs, file1.agent provides AI agents with complete file context.

Even better, the file relationship graph and automatically generated file summaries can serve directly as agent memory, giving your AI agents persistent, structured awareness of your entire workspace.

Features

  • File Summarization: Automatically generate summaries for files and directories
  • Duplicate Detection: Identify duplicate files using LLM-based comparison
  • Simulated Data Detection: Detect and remove simulated/mock data files
  • Relationship Visualization: Create visual graphs showing file relationships
  • Vision Model Integration: Extract and analyze content from images and PDFs
  • Reranking Support: Use reranking models to improve relevance scoring

Installation

You can install file1.agent using pip:

pip install file1agent

For development:

git clone https://github.com/file1/file1agent.git
cd file1agent
pip install -e .[dev]

Quick Start

Run the following commands to set up the testing environment:

mkdir -p outputs/test_repo
rm -rf outputs/test_repo
cp -r examples/test_repo outputs/
from file1agent import FileManager
import os


file1 = FileManager(
    config="config.toml",
    analyze_dir="outputs/test_repo"
)

# Clean repository (remove duplicates and simulated data)
file1.clean_repository()

Configuration

file1 uses a TOML configuration file to specify model settings and other parameters:

[llm]
language = "chs"  # Language setting: "chs" for Chinese, "eng" for English

[llm.chat] # Main language model used for general tasks and coding
model = "glm-4.5-air"  # The main language model used for general tasks
base_url = "https://cloud.infini-ai.com/maas/v1/"  # Base URL for the model API service
api_key = "<YOUR API KEY>"  # API key for accessing the language models

[llm.vision]
model = "glm-4.1v-9b-thinking"  # The vision model used for image analysis tasks
base_url = "https://open.bigmodel.cn/api/paas/v4/"  # Base URL for the vision model API service
api_key = "<YOUR API KEY>"  # API key for accessing the vision model

[rerank]
rerank_model = "bge-reranker-v2-m3"  # The reranking model used to improve search result relevance
rerank_api_key = "<YOUR API KEY>" # API key for accessing the reranking model (infiniai service)
rerank_base_url = "https://cloud.infini-ai.com/maas/v1/"  # Base URL for the reranking model API service

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

Support

If you have any questions or issues, please open an issue on GitHub Issues.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

file1agent-0.0.2.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

file1agent-0.0.2-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file file1agent-0.0.2.tar.gz.

File metadata

  • Download URL: file1agent-0.0.2.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for file1agent-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e48bd5d6c99e56251890bb5c1aee98d101baf6e599df55b1f09d77b0f140807a
MD5 23e1e1c63ef3b3eb48639b801762c8ca
BLAKE2b-256 04a37acc22c5b995959d8a9e257628021066bb3a0ac40985d456a40771413aed

See more details on using hashes here.

Provenance

The following attestation bundles were made for file1agent-0.0.2.tar.gz:

Publisher: python-publish.yml on jarrycyx/file1agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file file1agent-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: file1agent-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for file1agent-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bba0b14dd7ce131f77c52834de3ae0de3e298c5e280dceb62554d325dd80a10f
MD5 9f18cee460b342316dae701d8fc9edb1
BLAKE2b-256 7c61719d60859c290b704cbb5891ecb89e5f801cace5bc85872b8334c9f4a8cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for file1agent-0.0.2-py3-none-any.whl:

Publisher: python-publish.yml on jarrycyx/file1agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page