AgentFlow

Context · AgentFlow CLI

Afficher ou optimiser le contexte prévu

CLI path: agentflow context

When to use

Orchestration commands coordinate higher-order AgentFlow workloads such as ingestion, syncing, backlog triage, investigative passes, hydrated context payloads, coarse estimates, and workspace-specific automation.

Original CLI synopsis: Afficher ou optimiser le contexte prévu

Usage

agentflow context [flags]

Options

FlagScopeDefaultDescription
--dry-runInheritedfalseSimuler les exécutions sans lancer d'agent ni commandes externes
--optimizeLocalfalseAfficher le résumé tokens
--showLocalfalseAfficher le contexte pack
--taskLocal(empty)ID de tâche

Examples

agentflow context

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

What happens internally

  • Hydrates contextual services resolved from $PWD, coordinating git-bound automation, ingestion pipelines, syncing, backlog triage, investigations, MCP hooks, contextual hydration, coarse estimates, and similar orchestrations for this subtree.

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.
  • Downstream automation may fail whenever credentials, network endpoints, or cached prerequisites drift from expectations.