Asagiri

Index · Asagiri CLI

Indexer le dépôt pour le RAG local (spec §10.3)

CLI path: asa index

When to use

Indexing keeps embedded search artefacts aligned whenever significant repository reorganisation threatens stale lookup tables.

Original CLI synopsis: Indexer le dépôt pour le RAG local (spec §10.3)

Usage

asa index [flags]

Options

FlagScopeDefaultDescription
--dry-runInheritedfalseSimuler les exécutions sans lancer d'agent ni commandes externes

Examples

asa index

Wire richer samples through cobra.Command.Example when the happy path warrants copy/paste-friendly automation beyond this scaffold.

What happens internally

  • Crawls repositories to refresh Asagiri ingestion indexes referenced by tooling that depends on deterministic filesystem snapshots.

Failure modes

  • Cobra rejects unknown flags or arity mismatches before any repository side effects occur.
  • Asagiri cannot resolve scaffolding when the command is invoked outside an initialised checkout.
  • Delegated subprocesses (git, MCP hosts, editor agents, etc.) can exit non-zero and bubble errors verbatim.