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
  • Unindexed eligible directories found:
    • Shows warning panel listing the missing directories with action run idx sync
    • Error: unindexed directories found
  • Stale index detected:
    • Shows overview panel with โŒ N directory/ies stale โ€” run idx sync in the Index row
    • Error: stale index
  • 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