Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
Show 50 variants Run { task: String, json: bool, }, Plan { task: String, json: bool, }, Review { base: Option<String>, paths: Vec<String>, dry_run: bool, }, Chat, Tui, Launch { port: u16, tui: bool, pro: bool, }, Console { port: u16, }, Fix { problem: Vec<String>, }, Explique { target: Vec<String>, }, Annule { id: Option<String>, tout: bool, }, Bonjour, Budget { amount: Option<String>, }, Idees { filter: Vec<String>, }, Whatis { term: Vec<String>, }, Mode { mode: Option<String>, }, Daemon, Agent { action: AgentAction, }, Swarm { task: String, }, Schedule { task: String, cron: String, autonomy: Option<String>, report: Vec<String>, }, Model { set: Option<String>, list: bool, }, Route { action: RouteAction, }, Auth { action: AuthAction, }, Skills { action: SkillsAction, }, Plugins { action: PluginsAction, }, Tools { action: ToolsAction, }, Security { action: SecurityAction, }, Github { action: GithubAction, }, Compact { task: Option<String>, out: Option<PathBuf>, json: bool, }, Mcp { action: McpAction, }, Checkpoint { action: CheckpointAction, }, Rewind { id: String, }, Replay { run_id: String, scrub: bool, }, Gateway { action: GatewayAction, }, Sessions { action: SessionAction, }, Learn, Init, Status, Memory { action: MemoryAction, }, Permissions { action: PermissionAction, }, Profile { action: ProfileAction, }, Import { source: ImportSource, }, Config { edit: bool, }, Update, Doctor, Setup, Demo, Share, Hook { action: HookAction, }, Voice { action: VoiceAction, }, Browser { url: String, },
}

Variants§

§

Run

Run a single agentic task

Fields

§task: String

Task description

§json: bool

Emit NDJSON event stream (same as the global –json flag, but may follow the task: sparrow run "..." --json)

§

Plan

Create a read-only execution plan for a task

Fields

§task: String

Task description

§json: bool

Emit JSON instead of Markdown

§

Review

Adversarial review of the current local diff (uncommitted, staged, and commits ahead of --base). Read-only — no edits, no commits, no network beyond the model call. Findings are structured around security, correctness, regressions, performance, and readability.

Fields

§base: Option<String>

Base ref to diff against (defaults to origin/main, then main, then HEAD~1).

§paths: Vec<String>

Only review changes touching these path globs (repeatable).

§dry_run: bool

Print the prompt the model will see and exit (no model call).

§

Chat

Interactive multi-turn chat

§

Tui

Launch TUI

§

Launch

Launch first-run setup, then the WebView cockpit

Fields

§port: u16

TCP port for the WebView HTTP/WS server

§tui: bool

Launch the terminal TUI instead of the WebView cockpit

§pro: bool

Use the older expert setup wizard before opening the surface

§

Console

Launch webview console (HTTP + WebSocket)

Fields

§port: u16

TCP port for the webview HTTP/WS server

§

Fix

Réparer un problème — décris ce qui ne va pas, Sparrow diagnostique puis corrige (avec ton accord). « sparrow fix “message d’erreur” », ou sans argument pour scanner le dossier courant.

Fields

§problem: Vec<String>

Le problème, avec tes mots, ou une erreur collée (entre guillemets si elle contient des espaces). Optionnel : sans argument, Sparrow inspecte le dossier courant.

§

Explique

Expliquer un fichier, une erreur ou un concept en langage simple. « sparrow explique src/main.rs » · « sparrow explique “borrow checker” »

Fields

§target: Vec<String>

Ce qu’il faut expliquer : un chemin de fichier, une erreur, ou un mot (entre guillemets si plusieurs mots).

§

Annule

Annuler la dernière action de Sparrow — revient au dernier point de sauvegarde, rien n’est perdu. « sparrow annule » · « sparrow annule –tout » pour revenir au début de la session.

Fields

§id: Option<String>

Point de sauvegarde précis (sinon : le tout dernier).

§tout: bool

Revenir au tout premier point de sauvegarde de la session.

§

Bonjour

Dire bonjour — l’accueil chaleureux : Sparrow regarde ton dossier et te propose quoi faire. Parfait pour un premier contact.

§

Budget

Voir ou changer le plafond de dépense par session. « sparrow budget » affiche le réglage actuel ; « sparrow budget 2€ » le change.

Fields

§amount: Option<String>

Le montant max par session (ex. « 2€ », « $0.50 », « 1.5 »). Vide : affiche le réglage actuel.

§

Idees

Des idées de ce que tu peux faire avec Sparrow, classées par profil. « sparrow idees » · « sparrow idees enseignant » · « sparrow idees “factures” ».

Fields

§filter: Vec<String>

Filtre : un profil (enseignant, developpeur, …) ou un mot-clé.

§

Whatis

C’est quoi ce mot ? — définition instantanée d’un terme de Sparrow, en deux phrases simples, sans appel modèle. « sparrow whatis token ».

Fields

§term: Vec<String>

Le terme à définir (ex. checkpoint, token, swarm). Vide : liste les mots connus.

§

Mode

Choisir comment Sparrow te parle : simple (langage clair, zéro jargon), pro (sortie technique complète) ou auto. Sans argument : affiche le mode actuel.

Fields

§mode: Option<String>

« simple », « pro » ou « auto ».

§

Daemon

Run headless Sparrow runtime daemon

§

Agent

Manage persistent agents

Fields

§

Swarm

Run swarm: planner → coder → verifier

Fields

§task: String

Task or plan file

§

Schedule

Schedule periodic jobs

Fields

§task: String

Task description

§cron: String

Cron expression

§autonomy: Option<String>

Autonomy level for scheduled jobs

§report: Vec<String>

Report to surfaces

§

Model

Manage model routing

Fields

§set: Option<String>

Set active route

§list: bool

List available models

§

Route

Configure intelligent auto-routing provider

Fields

§

Auth

Manage provider credentials

Fields

§action: AuthAction
§

Skills

Manage skill library

Fields

§

Plugins

Manage local Sparrow plugins

Fields

§

Tools

Inspect and gate toolsets

Fields

§

Security

Security audit of config, permissions, plugins, hooks, secrets

Fields

§

Github

GitHub Action / remote PR workflow

Fields

§

Compact

Compact context and write a durable handoff doc

Fields

§task: Option<String>

Task description (recorded in the handoff)

§out: Option<PathBuf>

Output path (default: .sparrow/handoff/.md)

§json: bool

Emit JSON instead of Markdown to stdout (the file is always Markdown)

§

Mcp

Manage MCP connectors

Fields

§action: McpAction
§

Checkpoint

List checkpoints

Fields

§

Rewind

Rewind to a checkpoint

Fields

§id: String

Checkpoint ID or number

§

Replay

Replay a transcript

Fields

§run_id: String

Run ID to replay

§scrub: bool

Open an interactive TUI scrubber (←/→ to step through events)

§

Gateway

Start/stop gateway daemon

Fields

§

Sessions

Manage saved sessions

Fields

§

Learn

Interactive tutorial

§

Init

Initialize a project with .sparrow/ config

§

Status

Show live status (active runs, budget, session)

§

Memory

Manage persistent memory

Fields

§

Permissions

Inspect and update permission policy

Fields

§

Profile

Profile management

Fields

§

Import

Import config from another tool (claude-code, codex, opencode, openclaw)

Fields

§

Config

Edit configuration

Fields

§edit: bool

Open config.toml in editor

§

Update

Self-update

§

Doctor

Run diagnostics

§

Setup

(Re)run conversational setup

§

Demo

Run a self-contained demo (snake game)

§

Share

Share latest session as GitHub Gist

§

Hook

Install or scan security pre-commit hooks

Fields

§action: HookAction
§

Voice

Voice commands (speak, transcribe, providers)

Fields

§

Browser

Test browser/vision (screenshot, navigate)

Fields

§url: String

URL to test

Trait Implementations§

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more