Skip to main content

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.

Github CI Status GitHub release Read the Docs License GitHub issues PyPI Downloads

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.
  • Setup — optional dependencies, capability setup and the YOLO model.
  • 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.2.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 fs-tool-cli 1.2.0
File Size Uploaded Provenance Actions
fs_tool_cli-1.2.0.tar.gz 1.1 MB With provenance Details for fs_tool_cli-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fs-tool-cli 1.2.0
File Interpreter ABI Platform Actions
fs_tool_cli-1.2.0-py3-none-any.whl Python 3 none any Details for fs_tool_cli-1.2.0-py3-none-any.whl

Total release size: 1.6 MB

Release files / fs_tool_cli-1.2.0.tar.gz

Download URL fs_tool_cli-1.2.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
888f718145ab94f29acc01a60335636460d9bc416879ec01798188f71ebc3f57
BLAKE2b-256 checksum
How to use checksums
aa9062349f9072dbe1c470ca8e9f319718ba44da7b746da34af9fdb693573ec4
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 19, 2026.

Transparency log

Release files / fs_tool_cli-1.2.0-py3-none-any.whl

Download URL fs_tool_cli-1.2.0-py3-none-any.whl
Size 507.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e25f3969657108cef89ab9dd8e74f0b2cbd0266093307c5237b6bc72e6b4a23
BLAKE2b-256 checksum
How to use checksums
e9fb1cda35dd0f5dcad5519255ba960f9ef5ab9de0a9ab2d8b5a9fe09fadc6ea
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 19, 2026.

Transparency log

Security for fs-tool-cli 1.2.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.

Select from 2 files

Attestation for fs_tool_cli-1.2.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 19, 2026.

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.

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