Skip to main content

Syntax

Description

Shows the indexing status of the current repository. Must be run from within a git repository. The command:
  • Checks if the current directory is a git repository
  • Looks up the repository in the global registry
  • Compares the indexed commit with the current commit
  • Reports whether the index is up-to-date or stale

Output Example

Up-to-date index

Stale index

Not indexed

Not a git repository

When Index is Stale

The index becomes stale when:
  • New commits are made after indexing
  • Files are modified but not committed (the index only tracks committed state)
  • Branches are switched
To update a stale index:
The analyze command auto-detects staleness and performs an incremental update if possible.

Use Cases

Before using MCP tools

Check if your index is current:

CI/CD integration

Verify index freshness in CI:

After switching branches

What Gets Checked

  • Repository path — Absolute path to the git root
  • Indexed timestamp — When the index was last built
  • Indexed commit — Git SHA that was indexed (first 7 characters)
  • Current commit — Current git HEAD (first 7 characters)
  • Status — Whether the commits match