Skip to main content

Utility Commands

Commands for managing memory state, searching, analysis, and maintenance.

load

Load and display working memory at session start.
kernle -a <agent> load [--json] [--sync] [--no-sync]
OptionDescription
-j, --jsonOutput as JSON
-s, --syncForce sync (pull) before loading
--no-syncSkip sync even if auto-sync enabled
# Standard load
kernle -a claire load

# Force sync from cloud first
kernle -a claire load --sync

checkpoint

Save and restore session state.

checkpoint save

kernle -a <agent> checkpoint save TASK [options]
OptionDescription
-p, --pending PENDINGPending item (repeatable)
-c, --context CONTEXTAdditional context
-s, --syncForce sync after saving
--no-syncSkip sync
kernle -a claire checkpoint save "Working on user authentication"

checkpoint load

kernle -a <agent> checkpoint load [--json]

checkpoint clear

kernle -a <agent> checkpoint clear

Search memory using vector similarity.
kernle -a <agent> search QUERY [--limit LIMIT]
OptionDescription
-l, --limit LIMITMaximum results (default: 10)
kernle -a claire search "authentication"
kernle -a claire search "database performance" --limit 5

status

Show memory status overview.
kernle -a <agent> status
Example output:
Memory Status for claire
========================================
Values:     3
Beliefs:    12
Goals:      2 active
Episodes:   45
Raw:        8 (5 unprocessed)
Notes:      23
Checkpoint: Yes (2 hours ago)

when

Query memories by time period.
kernle -a <agent> when [PERIOD]
PeriodDescription
todayToday’s memories (default)
yesterdayYesterday’s memories
this weekThis week’s memories
last hourLast hour’s memories
kernle -a claire when yesterday
kernle -a claire when "this week"

anxiety

Memory anxiety tracking and management.
kernle -a <agent> anxiety [options]
OptionDescription
-d, --detailedShow detailed breakdown
-a, --actionsShow recommended actions
--autoExecute recommended actions
-c, --context TOKENSCurrent context token usage
-l, --limit LIMITContext window limit (default: 200000)
-e, --emergencyRun emergency save immediately
-s, --summarySummary for emergency save
-j, --jsonOutput as JSON
kernle -a claire anxiety
# Output: Memory Anxiety: 45/100 (Aware)

consolidate

Run memory consolidation (episodes → beliefs).
kernle -a <agent> consolidate [--min-episodes MIN]
OptionDescription
-m, --min-episodes MINMinimum episodes to consolidate (default: 3)
kernle -a claire consolidate
kernle -a claire consolidate --min-episodes 5

identity

Identity synthesis operations.

identity show

Generate a coherent identity narrative.
kernle -a <agent> identity show [--json]
# or just:
kernle -a <agent> identity

identity confidence

Check identity coherence score.
kernle -a <agent> identity confidence [--json]

identity drift

Detect identity drift over time.
kernle -a <agent> identity drift [--days DAYS] [--json]
OptionDescription
-d, --days DAYSDays to look back (default: 30)

emotion

Emotional memory operations.

emotion summary

kernle -a <agent> emotion summary [--days DAYS] [--json]
Search by emotional characteristics.
kernle -a <agent> emotion search [options]
OptionDescription
--positiveFind positive episodes
--negativeFind negative episodes
--calmFind low-arousal episodes
--intenseFind high-arousal episodes
-t, --tag TAGEmotion tag to match
-l, --limit LIMITMaximum results (default: 10)
kernle -a claire emotion search --positive --limit 5
kernle -a claire emotion search --negative --intense

emotion tag

Add emotional tags to an episode.
kernle -a <agent> emotion tag EPISODE_ID [--valence V] [--arousal A] [--tag TAG]...

emotion mood

Get mood-relevant memories.
kernle -a <agent> emotion mood --valence V --arousal A [--limit LIMIT]

meta

Meta-memory operations.

meta confidence

Get confidence for a memory.
kernle -a <agent> meta confidence TYPE ID

meta verify

Verify a memory (increases confidence).
kernle -a <agent> meta verify TYPE ID [--evidence EVIDENCE]

meta lineage

Get provenance chain.
kernle -a <agent> meta lineage TYPE ID [--json]

meta uncertain

List low-confidence memories.
kernle -a <agent> meta uncertain [--threshold T] [--limit L]

meta knowledge

Show knowledge map.
kernle -a <agent> meta knowledge [--json]

meta gaps

Detect knowledge gaps.
kernle -a <agent> meta gaps QUERY [--json]

meta boundaries

Show competence boundaries.
kernle -a <agent> meta boundaries [--json]

meta learn

Identify learning opportunities.
kernle -a <agent> meta learn [--limit LIMIT]

forget

Controlled forgetting operations.

forget candidates

Show forgetting candidates.
kernle -a <agent> forget candidates [--threshold T] [--limit L]

forget run

Run forgetting cycle.
kernle -a <agent> forget run [--dry-run] [--threshold T] [--limit L]
# Preview
kernle -a claire forget run --dry-run

# Actually forget
kernle -a claire forget run --threshold 0.2 --limit 5

forget protect

Protect a memory from forgetting.
kernle -a <agent> forget protect TYPE ID [--unprotect]

forget recover

Recover a forgotten memory.
kernle -a <agent> forget recover TYPE ID

forget list

List forgotten memories.
kernle -a <agent> forget list [--limit L]

dump

Dump all memory to stdout.
kernle -a <agent> dump [--format {markdown,json}] [--include-raw] [--no-raw]
OptionDescription
-f, --formatOutput format (default: markdown)
-r, --include-rawInclude raw entries (default: true)
--no-rawExclude raw entries
kernle -a claire dump | less
kernle -a claire dump --format json

export

Export memory to a file.
kernle -a <agent> export PATH [--format {markdown,json}]
Format is auto-detected from file extension if not specified.
kernle -a claire export backup.md
kernle -a claire export memory-snapshot.json --format json

init

Initialize Kernle with interactive setup.
kernle -a <agent> init [options]
OptionDescription
-y, --non-interactiveUse defaults
--env {claude-code,clawdbot,cline,cursor,desktop}Target environment
--seed-valuesSeed initial values (default: true)
--no-seed-valuesSkip seeding values
# Interactive
kernle -a my-project init

# Non-interactive for Claude Code
kernle -a my-project init -y --env claude-code

mcp

Start MCP server (stdio transport).
kernle -a <agent> mcp
Used for integration with MCP-compatible tools. See MCP Integration.