Skip to main content

dirpluck

dirpluck is a tool that records decisions about which files belong together in TOML and builds a ZIP Archive from that declaration. The CLI is the primary entry point, and the same invocation model is also available through a small Python API.

Rather than copying everything around it like a backup, it is intended to repeatedly gather only the files needed for a particular purpose, such as review, handoff, research, recurring work, or a working context handled with an LLM.

Where it fits

Gather the material you need into one Archive

Material spread across multiple directories can be collected into one Archive when it serves the same purpose.

For example, a review package might bring together:

  • the source of the project being reviewed
  • review guidelines
  • reference material

You can gather only fixed material, or attach fixed material to a Target selected at runtime.

Apply the same extraction to different Targets

If you record decisions such as "collect README, src/, and tests/" or "exclude secrets and generated files" in a Configuration, you can reuse the same rules while changing the project being handled.

The Scope from which a Target is selected is defined separately, so the Configuration and the actual project tree do not need to live in the same place.

Directory-Target must, may, and ignore rules use a restricted Selection pattern language so directory-tree traversal stays predictable. File-kind Scopes also provide a regular-expression selector for narrower direct-child file-name filtering. These are intentionally different selection languages with different scopes and roles. See Configuration selection and Targets and Cases for details.

Why keep it declarative

For a one-off task, creating a ZIP by hand may be simpler.

dirpluck is useful when the same kind of decision needs to be made again later.

A Configuration lets you record:

  • what must always be included
  • what should be included only when present
  • what should be excluded
  • which fixed material should be collected alongside the Target

without relying on shell history, conversation history, or human memory.

Use --preview to inspect what would be selected from the current filesystem before writing an Archive.

When Configurations need to be shared across related uses, one Configuration can also reuse another as its base. See docs/configuration/INDEX.md for authoring guidance and docs/specification/INDEX.md for exact composition and resolution rules.

Before sharing an Archive

dirpluck does not infer which files contain sensitive information.

Before creating an Archive that will leave the local environment, use --preview to review its contents and explicitly exclude anything that should not be included.

For example, .env files, private keys, credentials, and project-specific sensitive files may use different names and locations in different projects.

See docs/TRUST.md for the trust boundary around Configurations and filesystem operations, including absolute paths, overwrite behavior, and Archives intended to leave the local environment.

Getting started

The shortest end-to-end walkthrough is docs/GETTING_STARTED.md. It creates a default.dirpluck, previews the planned Archive contents, and then builds the Archive.

For Configuration fields and composition, see Configuration guide. For CLI options and Invocation Templates, see CLI guide.

Installation

The current version is 0.12.0.

Python 3.11 or later is required.

pip install dirpluck
dirpluck --version

dirpluck has no third-party runtime dependencies.

Documentation

The documentation is separated by purpose:

License

dirpluck is released under the MIT License.

See LICENSE for details.

Metadata

Release files for dirpluck 0.12.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 dirpluck 0.12.0
File Size Uploaded
dirpluck-0.12.0.tar.gz 282.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dirpluck 0.12.0
File Interpreter ABI Platform
dirpluck-0.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 408.9 kB

Release files / dirpluck-0.12.0.tar.gz

Download URL dirpluck-0.12.0.tar.gz
Size 282.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7b2384322197b097723a09b87ab953d34a9b58dc1fe973266a85ce2ee1a42c94
BLAKE2b-256 checksum
How to use checksums
b5b7eea47ca9c9b2669d188f18bd0085279ed83e21fc2ebaf9f6d309b2daa342
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / dirpluck-0.12.0-py3-none-any.whl

Download URL dirpluck-0.12.0-py3-none-any.whl
Size 126.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
349aa4824125c896263c7ddd0754b5edd69ff773af88f880f52cf87eda508ef4
BLAKE2b-256 checksum
How to use checksums
88f48c8e118fdcc71260df1059460f9cc63d7972023c10829b9c7fbbe2e6656b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

0.14.0

2 release files

0.13.1

2 release files

0.13.0

2 release files

This release

0.12.0 This release

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.2

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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