Skip to main content

Command

Enum Command 

Source
pub enum Command {
Show 36 variants Init { template: Option<InitTemplate>, from: Option<String>, force: bool, agent: Option<String>, }, ExportTemplate { name: String, }, ExportRun, Retro { events: Option<PathBuf>, }, Start { attach: bool, }, Stop, Attach, Status { json: bool, }, Send { from: Option<String>, role: String, message: String, }, Assign { engineer: String, task: String, }, Validate { show_checks: bool, }, Config { json: bool, }, Board { command: Option<BoardCommand>, }, Inbox { command: Option<InboxCommand>, member: Option<String>, limit: usize, all: bool, }, Read { member: String, id: String, }, Ack { member: String, id: String, }, Merge { engineer: String, }, Task { command: TaskCommand, }, Review { task_id: u32, disposition: ReviewAction, feedback: Option<String>, reviewer: String, }, Completions { shell: CompletionShell, }, Nudge { command: NudgeCommand, }, Pause, Resume, Grafana { command: GrafanaCommand, }, Telegram, Load, Queue, Cost, Scale { command: ScaleCommand, }, Doctor { fix: bool, yes: bool, }, Metrics, Telemetry { command: TelemetryCommand, }, Chat { agent_type: String, cmd: Option<String>, cwd: String, sdk_mode: bool, }, Shim { id: String, agent_type: String, cmd: String, cwd: String, rows: u16, cols: u16, pty_log_path: Option<String>, sdk_mode: bool, }, ConsolePane { project_root: String, member: String, events_log_path: String, pty_log_path: String, }, Daemon { project_root: String, resume: bool, },
}

Variants§

§

Init

Scaffold .batty/team_config/ with default team.yaml and prompt templates

Fields

§template: Option<InitTemplate>

Template to use for scaffolding

§from: Option<String>

Copy team config from $HOME/.batty/templates//

§force: bool

Overwrite existing team config files

§agent: Option<String>

Default agent backend for all roles (claude, codex, kiro)

§

ExportTemplate

Export the current team config as a reusable template

Fields

§name: String

Template name

§

ExportRun

Export run state for debugging

§

Retro

Generate a run retrospective

Fields

§events: Option<PathBuf>

Path to events.jsonl (default: .batty/team_config/events.jsonl)

§

Start

Start the team daemon and tmux session

Fields

§attach: bool

Auto-attach to the tmux session after startup

§

Stop

Stop the team daemon and kill the tmux session

§

Attach

Attach to the running team tmux session

§

Status

Show all team members and their states

Fields

§json: bool

Emit machine-readable JSON output

§

Send

Send a message to an agent role (human → agent injection)

Fields

§from: Option<String>

Explicit sender override (hidden; used by pane bridge and automation)

§role: String

Target role name (e.g., “architect”, “manager-1”)

§message: String

Message to inject

§

Assign

Assign a task to an engineer (used by manager agent)

Fields

§engineer: String

Target engineer instance (e.g., “eng-1-1”)

§task: String

Task description

§

Validate

Validate team config without launching

Fields

§show_checks: bool

Show all individual checks with pass/fail status

§

Config

Show resolved team configuration

Fields

§json: bool

Emit machine-readable JSON output

§

Board

Show the kanban board

Fields

§

Inbox

List inbox messages for a team member, or purge delivered inbox messages

Fields

§member: Option<String>

Member name (e.g., “architect”, “manager-1”, “eng-1-1”)

§limit: usize

Maximum number of recent messages to show

§all: bool

Show all messages

§

Read

Read a specific message from a member’s inbox

Fields

§member: String

Member name

§id: String

Message REF, ID, or ID prefix from batty inbox output

§

Ack

Acknowledge (mark delivered) a message in a member’s inbox

Fields

§member: String

Member name

§id: String

Message REF, ID, or ID prefix from batty inbox output

§

Merge

Merge an engineer’s worktree branch into main

Fields

§engineer: String

Engineer instance name (e.g., “eng-1-1”)

§

Task

Manage workflow task state and metadata

Fields

§command: TaskCommand
§

Review

Record a structured review disposition for a task

Fields

§task_id: u32

Task id

§disposition: ReviewAction

Review disposition

§feedback: Option<String>

Feedback text

§reviewer: String

Reviewer name (default: human)

§

Completions

Generate shell completions

Fields

§shell: CompletionShell

Shell to generate completion script for

§

Nudge

Per-intervention runtime toggles

Fields

§

Pause

Pause nudges and standups

§

Resume

Resume nudges and standups

§

Grafana

Manage Grafana monitoring (setup, status, open)

Fields

§

Telegram

Set up Telegram bot for human communication

§

Load

Estimate team load and show recent load history

§

Queue

Show pending dispatch queue entries

§

Cost

Estimate current run cost from agent session files

§

Scale

Dynamically scale team topology (add/remove agents)

Fields

§

Doctor

Dump diagnostic state from Batty state files

Fields

§fix: bool

Remove orphan branches and worktrees after confirmation

§yes: bool

Skip the cleanup confirmation prompt

§

Metrics

Show consolidated telemetry dashboard (tasks, cycle time, rates, agents)

§

Telemetry

Query the telemetry database for agent and task metrics

Fields

§

Chat

Interactive chat with an agent via the shim protocol

Fields

§agent_type: String

Agent type: claude, codex, kiro, generic

§cmd: Option<String>

Shell command to launch the agent CLI (auto-detected from agent type if omitted)

§cwd: String

Working directory for the agent

§sdk_mode: bool

Use SDK mode (NDJSON stdin/stdout) instead of PTY screen-scraping

§

Shim

Internal: run a shim process (spawned by batty chat or orchestrator)

Fields

§id: String

Unique agent identifier

§agent_type: String

Agent type: claude, codex, kiro, generic

§cmd: String

Shell command to launch the agent CLI

§cwd: String

Working directory for the agent

§rows: u16

Terminal rows

§cols: u16

Terminal columns

§pty_log_path: Option<String>

Path to write raw PTY output for tmux display panes

§sdk_mode: bool

Use SDK mode (NDJSON stdin/stdout) instead of PTY screen-scraping

§

ConsolePane

Internal: interactive shim pane bridge for tmux

Fields

§project_root: String

Project root directory

§member: String

Member/agent id

§events_log_path: String

Path to the shim event log

§pty_log_path: String

Path to the shim PTY log

§

Daemon

Internal: run the daemon loop (spawned by batty start)

Fields

§project_root: String

Project root directory

§resume: bool

Resume agent sessions from a previous run

Trait Implementations§

Source§

impl Debug for Command

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Command

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 Command

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<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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<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