Commands
status
Summarize repository, manifest, and zvec state
What It Does
status prints the current repository state that matters to RAGit: branch, HEAD, exact current-HEAD snapshot readiness, runtime support, backend, historical manifest count, knowledge readiness, event-ledger activity, embedding/store/cache state, and security posture.
When To Use / When Not To Use
When to use it
- You want a quick operational snapshot of the current repository.
- You want to confirm whether the store is loaded and whether retrieval should be ready.
- You want to inspect config surfaces without opening files manually.
When not to use it
- You want a deeper health diagnosis. Use
doctor. - You want to change config values. Use
config set.
Syntax
pnpm ragit status [--format text|json|both] [--cwd <path>]
Arguments And Options
--format text|json|both: Choose human text, JSON, or both.--cwd <path>: Run against another repository.
Input And Output Contract
- There is no positional input and no JSON payload input.
- JSON output includes
branch,head,snapshot,runtime,backend,zvec,supported_types,docsAuthority,knowledge,events,manifests,embedding.configured,embedding.store,embedding.cache,embedding.ready,embedding.needsMigration,security, andformat. runtimereports the current and minimum Node versions, the currentplatform/arch, the two supported native targets, and aggregatesupportedstate.snapshot.statusismissingwhen HEAD or its exact manifest is absent,invalidfor malformed/mismatched/future manifests,store-unavailablefor a valid exact manifest without a usable canonical store, andindexedonly when both exact manifest and store are usable.zvec.searchReadyandknowledge.durableReadyare true only forsnapshot.status: indexed. Themanifestscount is historical context and an unrelated manifest never makes the current HEAD ready.embedding.cachereportsenabled,dir,namespaceId,entryCount,batchPolicy,retryPolicy,writable, andnamespaceReadable.securityreportsmaskingConfigured,remoteEmbeddingPolicy,providerEgressClass,outputRemasking,quarantineEntries,lastAuditAt, andlegacyUnsafeState.- Agents should usually call
--format json.
Examples
Human terminal flow:
pnpm ragit status
Agent-oriented flow:
pnpm ragit status --format json
Failures And Cautions
statusis a summary, not a repair command.statusexits successfully for all four snapshot diagnostic states and does not call an embedding provider to determine readiness.- Detached HEAD is reported with
branch: null; an unborn repository useshead: null. Dirty worktree metadata does not invalidate an otherwise usable committed snapshot. - A loaded store does not guarantee that your exact current HEAD is indexed. Commit intended document changes, then run
ingest. - Event counters reflect append-only operational ledger activity, not snapshot semantic deltas. Use
timelinewhen you need the detailed time axis. - When
embedding.needsMigration=true, change the store withmigrate embeddingsbefore running write paths against the new provider contract. - When
embedding.cache.enabled=falsewhile cache is expected, inspectdoctorforembedding.cache-dirandembedding.cache-namespace.