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

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.1.2
File Size Uploaded Provenance Actions
fs_tool_cli-0.1.2.tar.gz 456.1 kB With provenance Details for fs_tool_cli-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 842.6 kB

Release files / fs_tool_cli-0.1.2.tar.gz

Download URL fs_tool_cli-0.1.2.tar.gz
Size 456.1 kB
Tags Source
SHA-256 checksum
How to use checksums
39c94ef99e7bc7441d7d5159480e1fd6983c459c9d016d77fa36d84e36989c6c
BLAKE2b-256 checksum
How to use checksums
d455423c1f2b5d415d514fb3df4cf1ab4c765894468ff7ab4e3774e8a8ced73d
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.1.2-py3-none-any.whl

Download URL fs_tool_cli-0.1.2-py3-none-any.whl
Size 386.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a14854036906e9a7b6a6de5de006407496b9acd82697d02590b6b68594825dae
BLAKE2b-256 checksum
How to use checksums
c28ceb3429da438e243f6b88d9d5b6bfb14e5e38761a5fd875c9188fb7335111
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.1.2

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