AgentFlow

Index · AgentFlow CLI

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

CLI path: agentflow 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

agentflow index [flags]

Options

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

Examples

agentflow 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 AgentFlow 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.
  • AgentFlow 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.