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.1.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.1.0
File Size Uploaded Provenance Actions
fs_tool_cli-1.1.0.tar.gz 1.0 MB With provenance Details for fs_tool_cli-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.5 MB

Release files / fs_tool_cli-1.1.0.tar.gz

Download URL fs_tool_cli-1.1.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
eed760cc3748647c295447ada94018d816f48d5ac3b95d8fe41b39c4195e163e
BLAKE2b-256 checksum
How to use checksums
e1100b94e25d80ceae05734d1ffd50b832b5a9388a1e3044a66443eff853c7a6
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 11, 2026.

Transparency log

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

Download URL fs_tool_cli-1.1.0-py3-none-any.whl
Size 484.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c930122e761e1f52a8ce454c15aa267c213630a2f4fc9d3310a2e63ade8191db
BLAKE2b-256 checksum
How to use checksums
529ec4f4b281bde2f50e9d423c87decefc03d6ca162b5825f745e4de5d345baa
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 11, 2026.

Transparency log

Security for fs-tool-cli 1.1.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.1.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 11, 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