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. Its primary purpose is to provide an interface for inspecting directory structures, understanding file contents and metadata, identifying duplicates, comparing directory trees, and performing file operations.

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

Project Vision

fs-tool is a lightweight, secure and agent-friendly command-line application for analyzing, organizing and restructuring local filesystems.

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 tool should be useful both for interactive human users and for automated workflows.

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.

Future Agentic Workflow

The long-term vision is to enable AI agents, especially OpenCode, to organize complex directory structures autonomously under controlled conditions.

A typical workflow:

  1. Inspect and inventory the existing filesystem.
  2. Analyze filenames, metadata, file types and contents where appropriate.
  3. Identify duplicates, inconsistencies and organizational opportunities.
  4. Propose a target directory structure.
  5. Generate a concrete restructuring plan.
  6. Validate the plan and identify potential conflicts.
  7. Execute approved operations using fs-tool.
  8. Verify the resulting filesystem against the original inventory and intended changes.

The agent is responsible for reasoning, planning and deciding what should happen. The CLI is responsible for executing individual operations safely and reporting their results.

Development Rules

  • Python >=3.11, managed with uv.
  • Use Typer for the CLI.
  • Use type hints and clear module boundaries.
  • Prefer Python standard-library functionality where practical.
  • Follow PEP 8 and use four spaces for indentation.
  • Keep line length at approximately 100 characters.
  • Write tests for filesystem operations and safety-critical behavior.
  • Document CLI commands and their JSON output schemas.
  • Do not introduce MCP-specific dependencies into the core application.

Scope

The initial implementation focuses exclusively on the filesystem CLI.

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 0.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 0.2.0
File Size Uploaded Provenance Actions
fs_tool_cli-0.2.0.tar.gz 496.2 kB With provenance Details for fs_tool_cli-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 911.6 kB

Release files / fs_tool_cli-0.2.0.tar.gz

Download URL fs_tool_cli-0.2.0.tar.gz
Size 496.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4e718c345195d7196e815ab91b112d266d0ebacbff5bd2a5a96cb204f9332d8d
BLAKE2b-256 checksum
How to use checksums
500847b4466bc2c38cc633281f45e09f8a5088e21c709f79bc3a991cbe57b4b4
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 6, 2026.

Transparency log

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

Download URL fs_tool_cli-0.2.0-py3-none-any.whl
Size 415.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6d0f1e3fe82ff8e7778d0b225e65cd750d3a90484fb2ab3c80d9d57a9711f05
BLAKE2b-256 checksum
How to use checksums
ef0fa46f239688b81595b14e826382dbcb4159a3842ab5f9df6450a037a17d5e
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 6, 2026.

Transparency log

Security for fs-tool-cli 0.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-0.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 6, 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