pub enum Commands {
Show 21 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,
},
Plan {
format: String,
},
Event(EventCommands),
Search {
query: String,
tasks: bool,
events: bool,
limit: Option<i64>,
offset: Option<i64>,
},
Doctor,
Init {
at: Option<String>,
force: bool,
},
McpServer {
dashboard_port: Option<u16>,
},
SessionRestore {
include_events: usize,
workspace: Option<String>,
},
Dashboard(DashboardCommands),
Setup {
target: Option<String>,
scope: String,
force: bool,
config_path: Option<String>,
},
Add {
name: String,
spec: Option<String>,
parent: Option<i64>,
priority: Option<String>,
},
Start {
id: i64,
with_events: bool,
},
Done,
Log {
event_type: String,
data: String,
task_id: Option<i64>,
},
Next {
format: String,
},
List {
status: Option<String>,
parent: Option<String>,
sort_by: Option<String>,
limit: Option<i64>,
offset: Option<i64>,
},
Context {
task_id: Option<i64>,
},
Get {
id: i64,
with_events: bool,
},
Logs {
mode: Option<String>,
level: Option<String>,
since: Option<String>,
until: Option<String>,
limit: Option<usize>,
follow: bool,
export: String,
},
}Variants§
Task(TaskCommands)
Task management commands
Current
Workspace state management
Fields
command: Option<CurrentAction>Report
Generate analysis and reports
Fields
Plan
Create or update task structures declaratively
Reads a JSON plan from stdin and creates/updates tasks atomically. Supports hierarchical nesting and name-based dependencies.
Example: echo ‘{“tasks”: [{“name”: “Task A”, “children”: [{“name”: “Task B”}]}]}’ | ie plan
Event(EventCommands)
Event logging commands
Search
Unified search across tasks and events
Fields
Doctor
Check system health and dependencies
Init
Initialize a new Intent-Engine project
Creates a .intent-engine directory with database in the current working directory. Use –at to specify a different location.
Examples: ie init # Initialize in current directory ie init –at /my/project # Initialize at specific directory
Fields
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
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
Add
Add a new task (alias for ‘task add’)
Fields
Start
Start a task and set focus (alias for ‘task start’)
Done
Complete the current focused task (alias for ‘task done’)
Log
Record an event for current task (alias for ‘event add’)
Fields
Next
Get the next recommended task (alias for ‘task pick-next’)
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 ie ls –limit 20 –offset 0 # Paginate results ie ls –sort-by priority # Sort by priority
Fields
Context
Get task context (alias for ‘task context’)
Get
Get task details (alias for ‘task get’)
Logs
Query and view application logs
Examples: ie logs # Show recent logs from all modes ie logs –mode dashboard # Show dashboard logs only ie logs –level error –since 1h # Show errors from last hour ie logs –follow # Real-time log monitoring
Fields
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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