Welcome to fs-tool
fs-tool is a lightweight, secure and agent-friendly command-line application for analyzing, organizing and restructuring local filesystems. It provides a reliable interface for inspecting directory structures, understanding file contents and metadata, identifying duplicates, comparing directory trees, and performing controlled file operations.
Documentation
- Command-line interface — commands, options and exit codes.
- Configuration — TOML configuration and allowed roots.
- Output formats — JSON envelope and human-readable output.
- Safety model — access restrictions, symlinks and write protection.
- Examples — practical inspection, analysis and write workflows.
- Architecture — layers, modules and data model.
- Contributing — development setup, checks and conventions.
- Funding — how to support the project.
Quick start
Install the published package and inspect a directory:
uv tool install fs-tool-cli
fs-tool inspect tree ~/Documents --plain
From a source checkout:
git clone https://github.com/pamagister/fs-tool.git
cd fs-tool
uv sync --all-groups
uv run fs-tool --help
Project Vision
fs-tool should be useful both for interactive human users and for automated workflows. Its primary purpose is to provide a reliable interface for inspecting directory structures, understanding file contents and metadata, identifying duplicates, comparing directory trees, and performing controlled file operations.
The primary use cases are:
- Understanding existing directory structures.
- Creating structured filesystem inventories.
- Collecting file metadata and identifying file types.
- Analyzing selected file formats and source code.
- Finding duplicate files.
- Comparing directory structures and file contents.
- Copying, moving and renaming files and directories.
- Verifying the integrity of filesystem operations.
Guiding Principle
The agent makes decisions; fs-tool provides the information and executes filesystem operations safely and deterministically.
The application must remain independent of any particular AI agent, MCP implementation or external automation framework.
Design Philosophy
- Prefer simplicity over unnecessary abstraction.
- Keep the Python filesystem core independent of the CLI.
- Use structured JSON output as the primary interface.
- Provide readable human-oriented output as an alternative.
- Make filesystem operations predictable, transparent and verifiable.
- Never silently overwrite or delete user data.
- Require explicit authorization for potentially risky operations.
- Favor deterministic results and reproducible inventories.
- Keep dependencies minimal.
Scope
The initial release focuses exclusively on the filesystem CLI and its underlying Python library. Agent orchestration, autonomous planning, MCP adapters and advanced LLM integrations are future extensions and must not unnecessarily influence the initial architecture.
Metadata
Release files for fs-tool-cli 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fs_tool_cli-1.0.0.tar.gz | 912.3 kB | With provenance | Details for fs_tool_cli-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fs_tool_cli-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for fs_tool_cli-1.0.0-py3-none-any.whl |
Total release size: 1.4 MB
Release files / fs_tool_cli-1.0.0.tar.gz
| Download URL | fs_tool_cli-1.0.0.tar.gz |
|---|---|
| Size | 912.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0fbccca98c6f1edb43d0420939f19e36bd3a39027b4724ab2e746cddd5aa798b
|
|
BLAKE2b-256 checksum How to use checksums |
023a52eeab87c5904eebcd0ae2c90578dfc4aa733d127bc3222b6439880b136a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 8, 2026.
Transparency logRelease files / fs_tool_cli-1.0.0-py3-none-any.whl
| Download URL | fs_tool_cli-1.0.0-py3-none-any.whl |
|---|---|
| Size | 448.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
560fd4d6aecbccf486e7519f096010f40440d944c81be8b0cce120ca7a8637b4
|
|
BLAKE2b-256 checksum How to use checksums |
c0dc7114c984562b10cac90411b09513b96356388aaeb03552fe1c83cc211734
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 8, 2026.
Transparency logSecurity for fs-tool-cli 1.0.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for fs_tool_cli-1.0.0.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 8, 2026.
Transparency logA 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.