status
Purpose
Check whether project indexes are current compared to the current filesystem state.
Usage
idx status
idx status --profile
Arguments
- None.
Flags
| Flag | Type | Default | Notes |
|---|---|---|---|
--profile |
bool | false |
Show a detailed per-directory report and summary table before the overview panel |
--quiet, -q |
bool | false |
Suppress informational output |
Behavior and Side Effects
- Resolves current directory and project Git root.
- Loads ignore rules from the project root.
- Discovers indexed directories under the project.
- Discovers eligible directories (non-ignored) and keeps only directories that currently contain indexable files.
- Fails if eligible directories with files exist but are not indexed.
- For each indexed directory, checks whether reindexing is needed using current file state and checksum/index snapshot logic.
- Marks a directory as stale when it requires reindexing.
- With
--profile, prints one panel per indexed directory plus a summary panel before the final overview. - Read-only command; no writes are performed.
Output
Default (idx status) โ styled overview panel:
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ idx my-project โ
โ โ
โ Index โ
up to date โ
โ Files 847 files ยท 23 directories ยท 2.1 MB โ
โ Updated 2 minutes ago (22:18:30) โ
โ Daemon โ
watching (PID 4821, since 14:32) โ
โ Config .idx.yml ยท 3 overrides active โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Panel rows:
| Row | Content |
|---|---|
Index |
โ
up to date when all indexes are current; โ N directory/ies stale โ run idx sync otherwise |
Files |
Total indexed files ยท indexed directories ยท combined index size on disk |
Updated |
Human-readable age of the most recently modified indexed file (e.g. just now, 2 minutes ago, 3 hours ago, Jan 2, 2024) plus the local timestamp in parentheses |
Daemon |
โ
watching (PID N, since HH:MM) / โธ disabled / โ not configured |
Config |
<filename> ยท N overrides active โ only shown when .idx.yml exists at the project root |
With --profile โ per-directory tables appear first, then the overview panel:
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐ internal/core/services โ
โ โ
updated โ
โ โ
โ | file | updated | modified_at | โ
โ |--------------------------------------------------|---------|----------------------| โ
โ | search_command_service.go | โ | 2024-01-15T10:30:00Z | โ
โ ... โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ ๐ Summary โ
โ | metric | value | โ
โ |--------------------------|--------------------------| โ
โ | directories checked | 23 | โ
โ | directories updated | 23 | โ
โ | files checked | 847 | โ
โ | files updated | 847 | โ
โ | latest file modification | 2024-01-15T10:30:00Z | โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Followed by the overview panel (same as default mode, without a Config row).
Errors
- No index found under project root:
- Error:
no index found under project root "<root>": run idx init first
- Error:
- Unindexed eligible directories found:
- Shows warning panel listing the missing directories with action
run idx sync - Error:
unindexed directories found
- Shows warning panel listing the missing directories with action
- Stale index detected:
- Shows overview panel with
โ N directory/ies stale โ run idx syncin the Index row - Error:
stale index
- Shows overview panel with
- Current directory/Git root resolution failures.
- Ignore matcher loading failures.
- Directory listing or file-state read failures while checking status.
Examples
idx status
idx status --profile