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

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.0.1
File Size Uploaded Provenance Actions
fs_tool_cli-1.0.1.tar.gz 998.3 kB With provenance Details for fs_tool_cli-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.5 MB

Release files / fs_tool_cli-1.0.1.tar.gz

Download URL fs_tool_cli-1.0.1.tar.gz
Size 998.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0772149629744aaaffff0fe77cc8e499fa82b0026f265e0e6f47392b9e776230
BLAKE2b-256 checksum
How to use checksums
c5d20a5c3ab826c21313d4d91113e466d9ffd2d220418f4d487334c1f3e7805d
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 10, 2026.

Transparency log

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

Download URL fs_tool_cli-1.0.1-py3-none-any.whl
Size 477.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86c8c807a53a71003fec5d0e6984316197ae59230014a8d110ae1b79ab401e80
BLAKE2b-256 checksum
How to use checksums
bf211abf704efb35f867fb76e5251c401bc6bca1bd271c2198fdb10bb6828b9d
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 10, 2026.

Transparency log

Security for fs-tool-cli 1.0.1

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.0.1.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 10, 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