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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e48bd5d6c99e56251890bb5c1aee98d101baf6e599df55b1f09d77b0f140807a
|
|
| MD5 |
23e1e1c63ef3b3eb48639b801762c8ca
|
|
| BLAKE2b-256 |
04a37acc22c5b995959d8a9e257628021066bb3a0ac40985d456a40771413aed
|
Provenance
The following attestation bundles were made for file1agent-0.0.2.tar.gz:
Publisher:
python-publish.yml on jarrycyx/file1agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
file1agent-0.0.2.tar.gz -
Subject digest:
e48bd5d6c99e56251890bb5c1aee98d101baf6e599df55b1f09d77b0f140807a - Sigstore transparency entry: 730078765
- Sigstore integration time:
-
Permalink:
jarrycyx/file1agent@6ade4a00700a0541e7bb69d32bc2ac7e4fcd0805 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/jarrycyx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6ade4a00700a0541e7bb69d32bc2ac7e4fcd0805 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bba0b14dd7ce131f77c52834de3ae0de3e298c5e280dceb62554d325dd80a10f
|
|
| MD5 |
9f18cee460b342316dae701d8fc9edb1
|
|
| BLAKE2b-256 |
7c61719d60859c290b704cbb5891ecb89e5f801cace5bc85872b8334c9f4a8cb
|
Provenance
The following attestation bundles were made for file1agent-0.0.2-py3-none-any.whl:
Publisher:
python-publish.yml on jarrycyx/file1agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
file1agent-0.0.2-py3-none-any.whl -
Subject digest:
bba0b14dd7ce131f77c52834de3ae0de3e298c5e280dceb62554d325dd80a10f - Sigstore transparency entry: 730078773
- Sigstore integration time:
-
Permalink:
jarrycyx/file1agent@6ade4a00700a0541e7bb69d32bc2ac7e4fcd0805 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/jarrycyx
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6ade4a00700a0541e7bb69d32bc2ac7e4fcd0805 -
Trigger Event:
release
-
Statement type: