Commands

Enum Commands 

Source
pub enum Commands {
Show 19 variants Task(TaskCommands), Current { set: Option<i64>, command: Option<CurrentAction>, }, Report { since: Option<String>, status: Option<String>, filter_name: Option<String>, filter_spec: Option<String>, format: String, summary_only: bool, }, Event(EventCommands), Search { query: String, tasks: bool, events: bool, limit: Option<i64>, }, Doctor, McpServer, SessionRestore { include_events: usize, workspace: Option<String>, }, Dashboard(DashboardCommands), Setup { target: Option<String>, scope: String, dry_run: bool, force: bool, diagnose: bool, config_path: Option<String>, project_dir: Option<String>, }, Add { name: String, spec: Option<String>, parent: Option<i64>, priority: Option<String>, }, Start { id: i64, with_events: bool, }, Done, Switch { id: i64, with_events: bool, }, Log { event_type: String, data: String, task_id: Option<i64>, }, Next { format: String, }, List { status: Option<String>, parent: Option<String>, }, Context { task_id: Option<i64>, }, Get { id: i64, with_events: bool, },
}

Variants§

§

Task(TaskCommands)

Task management commands

§

Current

Workspace state management

Fields

§set: Option<i64>

Set the current task ID (for backward compatibility)

§

Report

Generate analysis and reports

Fields

§since: Option<String>

Time duration (e.g., “7d”, “2h”, “30m”)

§status: Option<String>

Filter by status

§filter_name: Option<String>

Filter by name pattern (FTS5)

§filter_spec: Option<String>

Filter by spec pattern (FTS5)

§format: String

Output format

§summary_only: bool

Return summary only

§

Event(EventCommands)

Event logging commands

§

Search

Unified search across tasks and events

Fields

§query: String

Search query (supports FTS5 syntax like “JWT AND authentication”)

§tasks: bool

Search in tasks (default: true)

§events: bool

Search in events (default: true)

§limit: Option<i64>

Maximum number of results (default: 20)

§

Doctor

Check system health and dependencies

§

McpServer

Start MCP server for AI assistants (JSON-RPC stdio)

§

SessionRestore

Restore session context for AI agents (Focus Restoration - Phase 1)

This command returns all context needed to restore work continuity:

  • Current focused task
  • Parent task and siblings progress
  • Child tasks status
  • Recent events (decisions, blockers, notes)
  • Suggested next commands

Designed for SessionStart hooks to inject context at the beginning of new sessions.

Fields

§include_events: usize

Number of recent events to include (default: 3)

§workspace: Option<String>

Workspace path (default: current directory)

§

Dashboard(DashboardCommands)

Dashboard management commands

§

Setup

Unified setup command for AI tool integrations

This command provides a unified interface for setting up intent-engine integration with various AI assistant tools. It handles both hook installation and MCP server configuration in one step.

Features:

  • User-level or project-level installation
  • Atomic setup with rollback on failure
  • Built-in connectivity testing
  • Diagnosis mode for troubleshooting

Fields

§target: Option<String>

Target tool to configure (claude-code, gemini-cli, codex)

§scope: String

Installation scope: user (default, recommended), project, or both

§dry_run: bool

Show what would be done without actually doing it

§force: bool

Overwrite existing configuration

§diagnose: bool

Run diagnosis on existing setup instead of installing

§config_path: Option<String>

Custom config file path (advanced)

§project_dir: Option<String>

Project directory for INTENT_ENGINE_PROJECT_DIR env var

§

Add

Add a new task (alias for ‘task add’)

Fields

§name: String

Task name

§spec: Option<String>

Detailed specification (markdown)

§parent: Option<i64>

Parent task ID

§priority: Option<String>

Priority (critical, high, medium, low)

§

Start

Start a task and set focus (alias for ‘task start’)

Fields

§id: i64

Task ID

§with_events: bool

Include events summary

§

Done

Complete the current focused task (alias for ‘task done’)

§

Switch

Switch to a different task (alias for ‘task switch’)

Fields

§id: i64

Task ID

§with_events: bool

Include events summary

§

Log

Record an event for current task (alias for ‘event add’)

Fields

§event_type: String

Event type (decision, blocker, milestone, note)

§data: String

Event data/description

§task_id: Option<i64>

Task ID (optional, uses current task if not specified)

§

Next

Get the next recommended task (alias for ‘task pick-next’)

Fields

§format: String

Output format (text or json)

§

List

List tasks with filters (alias for ‘task list’)

Examples: ie ls # List all tasks ie ls todo # List todo tasks ie ls doing # List doing tasks ie ls done # List done tasks

Fields

§status: Option<String>

Filter by status (todo, doing, done)

§parent: Option<String>

Filter by parent ID (use “null” for no parent)

§

Context

Get task context (alias for ‘task context’)

Fields

§task_id: Option<i64>

Task ID (optional, uses current task if omitted)

§

Get

Get task details (alias for ‘task get’)

Fields

§id: i64

Task ID

§with_events: bool

Include events summary

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

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