/claude-dejavu:dejavu-rescue --class <C> [--shard <id>] [--dry-run] [--yes] [--include-quarantined <path>]from claude-dejavu
Rescues a corrupted Weaviate shard by walking LSM segments, recreating the class, restoring records, and gap-reindexing from Postgres canonical data.
Ships in claude-dejavu. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
The user is asking you to rescue a Weaviate class whose on-disk shard has a torn / truncated LSM segment that prevents the class from loading.
Use the bash command:
claude-dejavu rescue-shard $ARGUMENTS
Required:
--class <C> — class name (e.g. ClaudeDejavuTurn)Common:
--dry-run — walk + report what WOULD happen. No DELETE, no batch
insert, no gap-reindex. Safe to run anytime.--shard <id> — restrict to one shard id (default: all shards under
the class).--yes — skip the typed-confirmation prompt before the destructive
phase. The default flow requires typing yes interactively.--include-quarantined <path> — extra .db segment to walk alongside
the live shard (e.g. a file you preserved before Weaviate stopped
loading it).Phases (destructive on apply, in this order):
dejavu-rescue scan-shard extracts records
from every segment, with truncation tolerance for torn writes.DELETE /v1/schema/<C> then POST /v1/schema from
the canonical class definition in code/weaviate-class.json./v1/batch/objects.turns canonical set; re-embed any missing entries.Recommended workflow:
--dry-run first to confirm record counts look sane.claude-dejavu session-copy take --tag pre-rescue snapshot
for rollback safety.--dry-run, add --yes when scripting).Exit codes: 0 ok, 1 generic failure, 2 invalid args, 3 binary missing, 130 user abort.
7-day visitors to each command page
33 commands in this plugin
/dejavu-aboutDejavu AboutShow who built claude-dejavu, the project's mission, and how to get in touch/dejavu-configDejavu ConfigRead or change claude-dejavu settings (lint mode, auto-reindex, scope defaults, …)/dejavu-dbDejavu DbCheck or browse database schema (Prisma / Drizzle / TypeORM / SQL) — catches typos and fabricated table/column references/dejavu-docsDejavu DocsSearch project documentation embeddings via dejavu (docs-only)/dejavu-doctorDejavu DoctorDiagnose claude-dejavu install + runtime health (Postgres, Weaviate, venv, hooks, symbol index)/dejavu-envDejavu EnvCheck or list environment variable declarations — catches fabricated names + typos in process.env / os.getenv readsnpx claudepluginhub hthsolid/claude-dejavu --plugin claude-dejavu