v0.1.0-alphaGOAT spelled backwards
One index for every disk you own.Searched, deduplicated, and quietly healed.
Taog walks your hosts and NAS shares into a single SQLite WAL + FTS5 index — then searches inside files, collapses duplicates all the way up to cloned folders, and restores silently rotted files from byte-verified copies. Your mounts stay read-only until you say otherwise.
$ git clone https://github.com/jerrytunin/taog.git
&& cd taog
&& docker compose up -d- studio
- http://localhost:8116
- api
- http://localhost:8115/api/v1/health
- mcp
- POST http://localhost:8115/mcp
Indexed files
4,812,337
3 sources · 2 hosts
Capacity
38.62TB
FTS5 · OCR · subtitles · archives
Reclaimable
2.14TB
exact 1.31 · tree 0.61 · perceptual 0.22
Bit-rot
1open
41 healed from verified donors · 30d
Mounts · ro,rslaveio 4
- /mnt/user/media71%1,284/s
- /mnt/user/photos100%indexed
- /mnt/vm/backups0%queued
Age tiers · mtime
- Hot
- 3.48<30d
- Warm
- 6.95<6mo
- Cold
- 11.97<2y
- Frozen
- 16.222y+
Event streamGET /api/v1/events▍
Illustrative telemetry rendered from sample data. Live events stream from GET /api/v1/events.
- Runtime
- Go · CGO_ENABLED=0
- Index
- SQLite WAL + FTS5
- Digest
- BLAKE3-256
- Perceptual
- 64-bit dHash · pHash
- Ports
- :8115 API · :8116 Studio
- License
- MIT
§01Architecture
Ten subsystems. One SQLite file.
A — Ingest
Walk mounts, sniff, render
- 01Incremental walker
- 08Magic-byte inspector
- 03WebP previews & filmstrips
B — Index
One searchable corpus
- 02Filenames & paths
- 02OCR · subtitles
- 02Archive listings
C — Analyze
Compare, verify, measure
- 043-stage BLAKE3
- 05Merkle folder clones
- 06Perceptual matching
- 07Bit-rot scrubber
- 09Treemaps · growth · tiers
D — Act
Plan, dry-run, expose
- 106-mode remediation
- 07Self-heal from donors
- 10REST · SSE · MCP
taog.dbWAL · FTS5
sourcesfilesfiles_ftsdir_merklesnapshotsbitrot_eventsprotected_pathstagsfile_tags
- 01
Incremental Walker
Shipped · T3Every file is keyed on (device_id, inode, size, mtime), so re-scans skip what has not changed. Per-mount I/O concurrency keeps spinning arrays and NAS links from thrashing each other.
TAOG_SCAN_CONCURRENCY · multi-host · NAS shares · VMs
- 02
FTS5 · OCR · Subtitle · Archive Search
Shipped · T3One SQLite FTS5 corpus over filenames, paths, EXIF and media tags, source and config text, Tesseract OCR from images and scanned PDFs, embedded .srt/.ass subtitles, and .zip/.tar.gz/.7z listings.
files_fts · built for sub-100 ms queries
- 03
WebP Thumbnails & Video Filmstrips
Shipped · T3Compact WebP previews and 4-frame hover filmstrip sprite sheets are generated inside the same scan pass — no separate thumbnailer daemon, no second walk.
TAOG_THUMB_DIR · ffmpeg keyframe sprites
- 04
3-Stage BLAKE3 + Hardlinks
Shipped · T4Size buckets first, so unique sizes cost zero reads. Then a 4 KB edge hash over the first and last 2 KB. Then a full streaming BLAKE3. Files sharing (device_id, inode) are already hardlinked and report 0 B wasted.
size → edge-4K → BLAKE3-256 · inode-aware
- 05
Merkle Whole-Folder Clones
Shipped · T4File digests roll up the directory tree, so a copied photo library collapses into a single Duplicate Directory Tree instead of forty thousand rows. Near-complete subset folders surface too.
dir_merkle · bottom-up digest rollup
- 06
Perceptual dHash / pHash + Keyframes
Shipped · T564-bit perceptual fingerprints catch resized, recompressed, and re-exported images within a Hamming distance of 8. ffmpeg keyframes extend the same matching to re-encoded video.
Hamming ≤ 8 · image + video
- 07
Bit-Rot Self-Healer
Shipped · T6When a digest drifts while size and mtime stay identical, that is rot, not an edit. Taog restores the file from a duplicate whose bytes verify on disk — before, during, and after the copy.
verify → temp copy → verify → atomic rename → verify
- 08
512 B Magic-Byte Inspector
Shipped · T6The first 512 bytes reveal the true MIME type: truncated JPEGs and PNGs, unplayable streams, broken PDFs and archives, and extensions that lie about what they hold.
is_corrupt · ext_mismatch · magic_mime
- 09
Treemaps · Growth · Tiers
Shipped · T7Drill-down treemaps across every host, 24h / 7d / 30d snapshot deltas that name exactly which folders grew, and age tiers: Hot under 30 days, Warm under 6 months, Cold under 2 years, Frozen beyond.
snapshots · growth deltas · Hot/Warm/Cold/Frozen
- 10
Safe 6-Mode Remediation · Protected Paths · MCP
In progress · T8Quarantine, hardlink, symlink, delete, fix_extension, heal_bitrot — each planned as a dry run, never touching Protected Paths or #keep-forever files, and exposed over REST, SSE, and JSON-RPC 2.0 MCP.
dry_run plans · protected_paths · POST /mcp
§02Consolidation
Five tools, five crawlers. Or one walk.
| Capability | TaogGo · SQLite · Next.js | sist2C · Elasticsearch / SQLite | DiskoverPython · Elasticsearch · PHP | CzkawkaRust · desktop GUI / CLI | rmlintC · CLI | SpacedriveRust · Tauri desktop app |
|---|---|---|---|---|---|---|
| Persistent, queryable file index | Native | Native | Native | Not offered | Not offered | Native |
| Full-text + OCR content search | Native | Native | Partial, plugin, or paid tier | Not offered | Not offered | Not offered |
| Thumbnails & video previews | Native | Native | Not offered | Partial, plugin, or paid tier | Not offered | Native |
| Exact duplicates, hardlink-aware | Native | Not offered | Partial, plugin, or paid tier | Native | Native | Partial, plugin, or paid tier |
| Whole-folder duplicate trees | Native | Not offered | Not offered | Not offered | Native | Not offered |
| Perceptual image & video similarity | Native | Not offered | Not offered | Native | Not offered | Not offered |
| Broken-file & bad-extension inspector | Native | Not offered | Not offered | Native | Not offered | Not offered |
| Bit-rot detection & self-healing | Native | Not offered | Not offered | Not offered | Not offered | Not offered |
| Treemaps, growth deltas, age tiers | Native | Partial, plugin, or paid tier | Native | Not offered | Not offered | Not offered |
| Reference paths & reviewable remediation | T8In progress (T8) | Not offered | Partial, plugin, or paid tier | Native | Native | Not offered |
| Built-in MCP endpoint for AI agents | T8In progress (T8) | Not offered | Not offered | Not offered | Not offered | Not offered |
| Self-hosted web UI | Native | Native | Native | Not offered | Not offered | Partial, plugin, or paid tier |
● native◐ partial, plugin, or paid tier○ not offered◐ T8 landing in the Safe Remediation milestone
Based on each project's public documentation for its free edition. Spotted something out of date? Open an issue.
§03MCP integration
A storage oracle your agents can call.
- Endpoint
- POST :8115/mcp
- Transport
- JSON-RPC 2.0
- Protocol
- 2024-11-05
- Methods
- initialize · tools/list
- tools/call
- T8
Three tools are registered in tools/list today; bit-rot and tier tools plus tools/call execution arrive with T8.
MCP reference● registered in tools/list today
● lands with the T8 milestone
taog_search_files
RegisteredSearch indexed filenames, paths, OCR text, subtitles, and archive contents via SQLite FTS5.
{ "type": "object", "properties": { "query": { "type": "string" } }, "required": [ "query" ]}{ "jsonrpc": "2.0", "id": 7, "method": "tools/call", "params": { "name": "taog_search_files", "arguments": { "query": "lease agreement" } }}{ "query": "lease agreement", "total": 3, "hits": [ { "path": "/mnt/user/documents/2023/lease-signed.pdf", "source": "nas-01", "matched": "ocr" }, { "path": "/mnt/user/documents/2021/lease-draft.docx", "source": "nas-01", "matched": "text" }, { "path": "/mnt/vm/backups/mail-2023-04.zip", "source": "docker-vm", "matched": "archive" } ]}§04 — Deploy
Point it at /mnt.It only reads.
Bind your shares :ro,rslave, run one command, and open the studio on :8116. Nothing is written to your data until a remediation plan you reviewed says so.
volumes: - ./data:/data # Expose host / NAS storage read-only for indexing: - /mnt:/mnt:ro,rslave