CLI Reference
Complete reference for all uteke commands. Version 0.1.0.
Global Flags
| Flag | Description | Default |
|---|---|---|
--store <path> | Override store location | ~/.uteke |
--namespace <name> | Namespace for multi-agent isolation | default |
--config <path> | Override config file path | auto-resolved |
--json | Output as JSON | off |
--verbose | Enable debug logging | off |
uteke remember
Store a new memory with optional tags, metadata, and contradiction detection.
# Basic
uteke remember "Deploy v2.1 to staging Friday" --tags deploy,staging
# With metadata enrichment
uteke remember "Deploy staging to AWS us-east-1" \
--tags deploy,aws \
--entity staging-server \
--category infrastructure \
--meta "source:meeting-note,confidence:0.9"
# With contradiction detection
uteke remember "Server runs on port 8080" --tags config --detect-contradiction
# With memory type and temporal bounds
uteke remember "API rate limit is 1000/min" --type fact --valid-from 2026-01-01 --valid-until 2026-12-31
# In a specific namespace
uteke remember "User prefers dark mode" --tags pref --namespace my-agent| Flag | Description |
|---|---|
--tags <tags> | Comma-separated tags |
--entity <name> | Associate memory with an entity (e.g. "staging-server") |
--category <cat> | Categorize the memory (e.g. "infrastructure") |
--meta <pairs> | Key:value pairs, comma-separated. Auto-detects type (string/number/bool) |
--metadata <json> | Arbitrary JSON metadata |
--detect-contradiction | Detect conflicting memories (default threshold: 0.65) |
--type <type> | Memory type: fact, procedure, preference, decision, context |
--valid-from <datetime> | Start of validity period (ISO 8601) |
--valid-until <datetime> | End of validity period (ISO 8601) |
--json | Output stored memory as JSON |
uteke recall
Hybrid search combining vector similarity with FTS5 full-text search, ranked by Reciprocal Rank Fusion (RRF). Hot memories (accessed within 7 days) get a score boost.
uteke recall "What framework does the API use?"
uteke recall "deployment" --limit 10
uteke recall "database config" --namespace hermes --json
uteke recall "server" --entity staging-server --json
uteke recall "config" --category infrastructure --limit 5| Flag | Description |
|---|---|
--limit <n> | Max results (default: 5) |
--entity <name> | Filter results to a specific entity |
--category <cat> | Filter results to a specific category |
--json | Output as JSON array |
uteke search
Keyword text search with tag filtering.
uteke search "monorepo"
uteke search "deploy" --tags staging,prod --limit 20
uteke search "api" --namespace backend --json| Flag | Description |
|---|---|
--tags <tags> | Filter by comma-separated tags |
--limit <n> | Max results (default: 20) |
--json | Output as JSON |
uteke list
List memories with optional tag, entity, category filter and pagination.
uteke list --limit 20
uteke list --tag deploy --offset 10 --json
uteke list --entity staging-server --json
uteke list --category infrastructure --limit 10
uteke list --namespace hermes| Flag | Description |
|---|---|
--tag <tag> | Filter by single tag |
--entity <name> | Filter by entity name |
--category <cat> | Filter by category |
--limit <n> | Max results (default: 20) |
--offset <n> | Skip first N results |
--json | Output as JSON |
uteke forget
Delete memories by ID, tag, tier, or all. Supports bulk operations.
# Delete single memory
uteke forget <uuid> --confirm
# Delete all with a tag
uteke forget --tag deploy --confirm
# Delete all cold-tier memories (>30 days old)
uteke forget --cold --confirm
# Delete everything in namespace
uteke forget --all --confirm
# Preview without deleting
uteke forget --tag stale --dry-run| Flag | Description |
|---|---|
--tag <tag> | Delete all memories with this tag |
--cold | Delete all cold-tier memories (>30 days) |
--all | Delete all memories in namespace |
--confirm | Skip confirmation prompt |
--dry-run | Preview what would be deleted |
uteke consolidate
Find and merge duplicate memories using cosine similarity.
# Preview duplicates (dry run)
uteke consolidate --threshold 0.60 --dry-run
# Merge duplicates
uteke consolidate --threshold 0.60
# Higher threshold = more conservative (default: 0.90)
uteke consolidate --dry-runRecommended threshold: 0.60–0.70 for small embedding models (embeddinggemma-q4). Keeps newer memory, removes older.
uteke prune
Remove deprecated and expired temporal memories.
# Preview what would be pruned
uteke prune --ttl 30 --dry-run
# Prune deprecated/expired memories
uteke prune --ttl 30uteke namespace
Manage namespaces — list, inspect, and switch defaults.
# List all namespaces with counts
uteke namespace list
# Show stats for a namespace
uteke namespace stats my-agent
# Switch default namespace (saved to config)
uteke namespace switch my-agentNamespace resolution order: --namespace flag → UTEKE_NAMESPACE env → uteke.toml → "default"
uteke tags
Manage tags across all memories.
# List all tags with counts
uteke tags list --by-count
# Rename a tag
uteke tags rename old-tag new-tag
# Delete a tag from all memories
uteke tags delete unused-taguteke recall (enhanced)
Semantic search with new flags:
# Minimum similarity score filter
uteke recall "database config" --min 0.7
uteke recall "database config" --strict # uses 0.7 default
# Time-travel: query memories at specific point in time
uteke recall "deployment process" --at 2026-06-01T12:00:00Z
# Relationship graph traversal
uteke recall "auth" --related --depth 2
# AI-context formatted output
uteke recall "api design" --context| Flag | Description |
|---|---|
--min <score> | Minimum similarity score (0.0-1.0) |
--strict | Use strict threshold (0.7) |
--at <timestamp> | Query memories at point in time (RFC3339) |
--related | Follow relationship edges |
--depth <n> | Traversal depth for --related |
--context | AI-prompt formatted output |
uteke list (enhanced)
# Time-travel list
uteke list --at 2026-06-01T12:00:00Zuteke room
Room-based memory management:
# Create a room
uteke room create "project-kickoff" --title "Project Kickoff"
# List rooms
uteke room list
# Add memory to room
uteke room add "project-kickoff" <memory-id> --author cto
# Recall within a room (semantic)
uteke room recall "project-kickoff" --query "database decision"
# Generate structured document from room
uteke room document "project-kickoff"
# Room summary (LLM-free, tag clustering)
uteke room summary "project-kickoff"
# Remove memory from room
uteke room remove "project-kickoff" <memory-id>
# Delete room
uteke room delete "project-kickoff"uteke bench
Run performance benchmarks with synthetic data:
# Default: 100, 1000, 10000 memories
uteke bench
# Custom counts
uteke bench --counts 500,5000
# JSON output
uteke bench --jsonMeasures insert throughput, recall latency (avg + p95), and storage footprint.
uteke pin / unpin
Pin memories so they never decay:
uteke pin <id>
uteke unpin <id>uteke importance
Recalculate importance scores:
uteke importanceuteke aging
Memory aging management with auto-cleanup.
# Show hot/warm/cold breakdown
uteke aging status
# Preview memories older than 90 days
uteke aging preview --days 90
# Delete memories older than 180 days
uteke aging cleanup --days 180 --confirmOther Commands
| Command | Description |
|---|---|
uteke get <id> | Retrieve a single memory by UUID |
uteke forget <id> | Delete a memory by UUID |
uteke forget --tag <tag> | Delete all memories with a tag |
uteke forget --cold | Delete all cold-tier memories |
uteke forget --all | Delete all memories in namespace |
uteke consolidate | Find and merge duplicate memories |
uteke prune | Remove deprecated/expired memories |
uteke stats | Show store statistics with tier breakdown |
uteke export | Export memories to JSONL (no embeddings) |
uteke import <file> | Import memories from JSONL |
uteke doctor | Health check (DB, index, model, consistency) |
uteke verify | Verify DB and index consistency |
uteke repair | Rebuild index from SQLite |
uteke namespace list | List all namespaces with memory counts |
uteke namespace stats <name> | Show stats for a namespace |
uteke namespace switch <name> | Set default namespace in config |
uteke hook install <shell> | Install shell hook (bash/zsh/fish) |
uteke completions <shell> | Generate shell completions |
uteke-serve (Server Mode)
Start a persistent HTTP server for fast AI agent access. Eliminates cold start (~980ms → ~21ms per operation).
# Start server on default port (8767)
uteke-serve
# Custom port
uteke-serve --port 9000
# With logging
RUST_LOG=info uteke-serve --port 8767When [server] enabled = true is set in config, the CLI auto-routes commands through the server. Falls back to local store if server is not running.