Skip to main content

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

Metadata

Release files for file1agent 0.0.2

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

Source distribution (sdist)

Source distribution for file1agent 0.0.2
File Size Uploaded Provenance
file1agent-0.0.2.tar.gz 22.5 kB With provenance Details

Built distribution (wheel)

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

Total release size: 51.8 kB

Release files / file1agent-0.0.2.tar.gz

Download URL file1agent-0.0.2.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e48bd5d6c99e56251890bb5c1aee98d101baf6e599df55b1f09d77b0f140807a
BLAKE2b-256 checksum
How to use checksums
04a37acc22c5b995959d8a9e257628021066bb3a0ac40985d456a40771413aed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2025.

Transparency log

Release files / file1agent-0.0.2-py3-none-any.whl

Download URL file1agent-0.0.2-py3-none-any.whl
Size 29.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bba0b14dd7ce131f77c52834de3ae0de3e298c5e280dceb62554d325dd80a10f
BLAKE2b-256 checksum
How to use checksums
7c61719d60859c290b704cbb5891ecb89e5f801cace5bc85872b8334c9f4a8cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2025.

Transparency log

Security for file1agent 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for file1agent-0.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files Full provenance

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