@agnamo/indytag
v1.2.0
Published
Tag paths, write agent ignore rules and directory indexes, then import a manifest or index to move, recycle, delete, zip or export the paths it lists. One Python file, no dependencies.
Maintainers
Readme
indytag
Tag paths in a tree, turn those marks into durable artifacts agents can consume, then act on the inventory later.
- Tag — pick files/folders and assign labels (
project,skill,vault, … or custom). - Write rules + indexes — emit ignore rules, per-tag files,
index.md, and a.indytag/inventory. - Act — import that inventory (or scan a scope) and move / recycle / delete / zip / csv / meta / dedupe / atomize.
One Python file, standard library only. The npm package is a thin launcher: it finds a Python 3 interpreter and hands it the real terminal, so the interactive selector keeps its raw-mode keys, mouse and animation.
npm i -g indytag
# or: npm i -g @agnamo/indytag
indytag .What it writes
Run against a folder and it produces:
| Path | What it is |
|---|---|
| .ignore, .aiignore | gitignore-syntax rules for the paths you tagged |
| .indytag/tags.<tag> | one rule file per tag (e.g. tags.project, tags.vault) |
| index.md | layered directory index for humans and agents |
| .indytag/manifest.json | counts, tag map and file locations |
| .indytag/inventory/ | index.md, manifest.json, list.csv |
| .indytag/index/ | index-all.md, manifest-all.json (full depth) |
Everything except index.md and .ignore lives inside the hidden .indytag/
container, so the folder you aimed it at stays readable.
Default tags
project skill agent archive review private vault app frozen staleFiles written: .indytag/tags.project, .indytag/tags.skill, … one per tag.
Add your own with --tags (comma list). Custom names become tags.<custom> the same way:
indytag . --tags project,skill,mine,yoursInteractive selector
indytag . # tag + index, selector first
indytag . --no-select --yes # scripted run, no prompts| Key | Action |
|---|---|
| Space | tag / untag the current path with the active tag |
| Tab, 1–9 | switch the active tag (first nine presets) |
| a / n / i | tag all / clear all / invert for the active tag |
| / | filter; Enter keeps it |
| ← → e c | collapse, expand, expand all, collapse all |
| Backspace / 0 | clear tags on the current path |
| Enter | save and continue |
| q / Esc | cancel, write nothing |
Import a previous run
Point --import at a manifest.json, index.md or list.csv written by
indytag, or by the standalone index.py that shares the same manifest shape.
The format is detected from the content, so the file name does not matter.
indytag --import .indytag/inventory/manifest.json # asks what to do
indytag --import index.md --action list # just print them
indytag --import index.md --action csv --target picks.csv
indytag --import manifest-all.json --action zip --target bundle.zip
indytag --import index.md --action move --target ../keep # keeps layout
indytag --import index.md --action recycle --pick 'build/*'| Action | Effect |
|---|---|
| list | print the imported paths, change nothing |
| move | move into --target, root-relative layout preserved |
| recycle | Recycle Bin on Windows, .indytag/trash/<stamp>/ elsewhere |
| delete | permanent removal of the imported paths |
| zip | one archive, root-relative entry names |
| csv | imported paths only: path, kind, size, modified, tags |
| meta | full scope walk → rich CSV (size, times, mode, sha256) |
| dedupe | byte-match duplicates in a scope; recycle extras |
| atomize | byte-match duplicates in a scope; permanent delete extras |
meta
One row per file. Does not need an import when you pass a scope:
indytag --action meta --scope other --other ./tree --target meta.csv
indytag --action meta --scope workspace --no-hash # skip sha256
indytag --action meta --scope drives --drive C:\ --drive Z:\Columns: path, name, parent, kind, extension, size_bytes, size_human,
created_utc, modified_utc, accessed_utc, mode, sha256, is_symlink,
symlink_target, exists.
dedupe vs atomize
Both scan a scope (workspace / drives / all / other), group files by
size then sha256, keep one copy per set, remove the rest.
| | dedupe | atomize |
|---|---|---|
| extras go to | Recycle Bin (or .indytag/trash/) | permanent delete — no recycle |
| confirm | yes (unless --yes) | yes, stronger wording (unless --yes) |
indytag --action dedupe --scope other --other ./tree --dry-run
indytag --action atomize --scope other --other ./tree --yesSafety: absolute paths, drive letters and .. segments are refused and
counted, a nested path collapses when its ancestor is already selected,
--dry-run writes nothing, and a non-interactive run needs --yes before
anything is moved, recycled, deleted or atomized.
Requirements
Python 3.8 or newer on PATH. Override the interpreter with
INDYTAG_PYTHON (or PYTHON). Node 18+ is only needed for the npm launcher.
indytag --version
indytag --help