Skip to content
taog
GitHub

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.

Quickstart · Docker Compose
$ 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
Telemetry
SampleWAL · OK

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%
  • /mnt/user/photos100%
  • /mnt/vm/backups0%

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.

Every engine reads from and writes to the same WAL-mode database. A file the walker discovers is immediately searchable, hashable, comparable, and healable — without a second crawler, a second index, or a second copy of your metadata.
  1. A — Ingest

    Walk mounts, sniff, render

    • 01Incremental walker
    • 08Magic-byte inspector
    • 03WebP previews & filmstrips
  2. B — Index

    One searchable corpus

    • 02Filenames & paths
    • 02OCR · subtitles
    • 02Archive listings
  3. C — Analyze

    Compare, verify, measure

    • 043-stage BLAKE3
    • 05Merkle folder clones
    • 06Perceptual matching
    • 07Bit-rot scrubber
    • 09Treemaps · growth · tiers
  4. 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

  1. 01

    Incremental Walker

    Shipped · T3

    Every 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

  2. 02

    FTS5 · OCR · Subtitle · Archive Search

    Shipped · T3

    One 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

  3. 03

    WebP Thumbnails & Video Filmstrips

    Shipped · T3

    Compact 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

  4. 04

    3-Stage BLAKE3 + Hardlinks

    Shipped · T4

    Size 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

  5. 05

    Merkle Whole-Folder Clones

    Shipped · T4

    File 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

  6. 06

    Perceptual dHash / pHash + Keyframes

    Shipped · T5

    64-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

  7. 07

    Bit-Rot Self-Healer

    Shipped · T6

    When 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

  8. 08

    512 B Magic-Byte Inspector

    Shipped · T6

    The 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

  9. 09

    Treemaps · Growth · Tiers

    Shipped · T7

    Drill-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. 10

    Safe 6-Mode Remediation · Protected Paths · MCP

    In progress · T8

    Quarantine, 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.

sist2 searches. Diskover maps. Czkawka and rmlint hunt duplicates. Spacedrive browses. Each is excellent at its slice — and each keeps its own scanner, its own index, and its own idea of what is on your disks. Taog runs one walk and answers all of it from a single Go binary, a single SQLite file, and a single Next.js studio.
Capability comparison between Taog, sist2, Diskover, Czkawka, rmlint, and Spacedrive
CapabilityTaogGo · SQLite · Next.jssist2C · Elasticsearch / SQLiteDiskoverPython · Elasticsearch · PHPCzkawkaRust · desktop GUI / CLIrmlintC · CLISpacedriveRust · Tauri desktop app
Persistent, queryable file indexNativeNativeNativeNot offeredNot offeredNative
Full-text + OCR content searchNativeNativePartial, plugin, or paid tierNot offeredNot offeredNot offered
Thumbnails & video previewsNativeNativeNot offeredPartial, plugin, or paid tierNot offeredNative
Exact duplicates, hardlink-awareNativeNot offeredPartial, plugin, or paid tierNativeNativePartial, plugin, or paid tier
Whole-folder duplicate treesNativeNot offeredNot offeredNot offeredNativeNot offered
Perceptual image & video similarityNativeNot offeredNot offeredNativeNot offeredNot offered
Broken-file & bad-extension inspectorNativeNot offeredNot offeredNativeNot offeredNot offered
Bit-rot detection & self-healingNativeNot offeredNot offeredNot offeredNot offeredNot offered
Treemaps, growth deltas, age tiersNativePartial, plugin, or paid tierNativeNot offeredNot offeredNot offered
Reference paths & reviewable remediationT8In progress (T8)Not offeredPartial, plugin, or paid tierNativeNativeNot offered
Built-in MCP endpoint for AI agentsT8In progress (T8)Not offeredNot offeredNot offeredNot offeredNot offered
Self-hosted web UINativeNativeNativeNot offeredNot offeredPartial, 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.

Taog speaks JSON-RPC 2.0 MCP on the same port as its API. Homelab agents can ask what is eating the array, how much is reclaimable, or whether anything rotted overnight — and get answers from the index instead of kicking off a fresh crawl.
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

taog_search_files

Registered

Search indexed filenames, paths, OCR text, subtitles, and archive contents via SQLite FTS5.

inputSchema
{  "type": "object",  "properties": {    "query": {      "type": "string"    }  },  "required": [    "query"  ]}
POST /mcp · request
{  "jsonrpc": "2.0",  "id": 7,  "method": "tools/call",  "params": {    "name": "taog_search_files",    "arguments": {      "query": "lease agreement"    }  }}
result · illustrative
{  "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.

docker-compose.yml · taog-backend.volumes
volumes:  - ./data:/data  # Expose host / NAS storage read-only for indexing:  - /mnt:/mnt:ro,rslave