pub enum Command {
Show 33 variants
Serve(ServeArgs),
Mcp {
tier: String,
},
Store(StoreArgs),
Update(UpdateArgs),
Recall(RecallArgs),
Search(SearchArgs),
Get(GetArgs),
List(ListArgs),
Delete(DeleteArgs),
Promote(PromoteArgs),
Forget(ForgetArgs),
Link(LinkArgs),
Consolidate(ConsolidateArgs),
Gc,
Stats,
Namespaces,
Export,
Import(ImportArgs),
Resolve(ResolveArgs),
Shell,
Sync(SyncArgs),
SyncDaemon(SyncDaemonArgs),
AutoConsolidate(AutoConsolidateArgs),
Completions(CompletionsArgs),
Man,
Mine(MineArgs),
Archive(ArchiveArgs),
Agents(AgentsArgs),
Pending(PendingArgs),
Backup(BackupArgs),
Restore(RestoreArgs),
Curator(CuratorArgs),
Bench(BenchArgs),
}Variants§
Serve(ServeArgs)
Start the HTTP memory daemon
Mcp
Run as an MCP (Model Context Protocol) tool server over stdio
Store(StoreArgs)
Store a new memory
Update(UpdateArgs)
Update an existing memory by ID
Recall(RecallArgs)
Recall memories relevant to a context
Search(SearchArgs)
Search memories by text
Get(GetArgs)
Retrieve a memory by ID
List(ListArgs)
List memories
Delete(DeleteArgs)
Delete a memory by ID
Promote(PromoteArgs)
Promote a memory to long-term
Forget(ForgetArgs)
Delete memories matching a pattern
Link(LinkArgs)
Link two memories
Consolidate(ConsolidateArgs)
Consolidate multiple memories into one
Gc
Run garbage collection
Stats
Show statistics
Namespaces
List all namespaces
Export
Export all memories as JSON
Import(ImportArgs)
Import memories from JSON (stdin)
Resolve(ResolveArgs)
Resolve a contradiction — mark one memory as superseding another
Shell
Interactive memory shell (REPL)
Sync(SyncArgs)
Sync memories between two database files
SyncDaemon(SyncDaemonArgs)
Run the peer-to-peer sync daemon — continuously exchange memories
with one or more HTTP peers (Phase 3 Task 3b.1). The defining
grand-slam capability: two agents on two machines form a live
knowledge mesh with no cloud, no login, no SaaS.
AutoConsolidate(AutoConsolidateArgs)
Auto-consolidate short-term memories by namespace
Completions(CompletionsArgs)
Generate shell completions
Man
Generate man page
Mine(MineArgs)
Import memories from historical conversations (Claude, ChatGPT, Slack exports)
Archive(ArchiveArgs)
Manage the memory archive (list, restore, purge, stats)
Agents(AgentsArgs)
Register or list agents (Task 1.3)
Pending(PendingArgs)
List / approve / reject governance-pending actions (Task 1.9)
Backup(BackupArgs)
v0.6.0.0: snapshot the SQLite database to a timestamped backup
file. Uses SQLite VACUUM INTO which is hot-backup safe (no daemon
stop required). Writes a manifest.json alongside (sha256 + version).
Restore(RestoreArgs)
v0.6.0.0: restore the SQLite database from a backup file written
by ai-memory backup. Verifies the manifest sha256 before
replacing the current DB. The current DB is moved aside as a safety
net before the replacement.
Curator(CuratorArgs)
v0.6.1: run the autonomous curator. --once runs a single sweep
and prints a JSON report; --daemon loops with --interval-secs
between cycles. Auto-tags memories without tags and flags
contradictions against nearby siblings in the same namespace.
Bench(BenchArgs)
v0.6.3 (Pillar 3 / Stream E): run the canonical performance
workload and print measured p50/p95/p99 against the budgets in
PERFORMANCE.md. Each invocation seeds a disposable temp DB so
the user’s main DB is untouched. Exits non-zero when any p95
exceeds its budget by more than the published 10% tolerance.
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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> 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