Skip to main content

Utility Commands

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

load

Load and display working memory at session start. Uses priority-based budget allocation to fit the most important memories within token limits.
Use --budget to prevent context overflow. A budget of 6000-8000 tokens is recommended for most sessions. See Context Overload Recovery for details.

Priority Ordering

Memories are loaded by priority until the budget is exhausted:

Budget Metadata (_meta)

When using --json, the response includes a _meta object with budget metrics:

Token Estimation

Tokens are estimated at approximately 4 characters per token, with a 1.3x safety margin for JSON serialization overhead.

Access Tracking

Loading memories automatically records access for salience-based forgetting. Frequently accessed memories maintain higher salience and are less likely to be forgotten.

checkpoint

Save and restore session state.

checkpoint save

Use --progress, --next, and --blocker for better context recovery. These structured fields help your SI resume work more effectively.

checkpoint load

checkpoint clear


Search memory using vector similarity.

status

Show memory status overview.
Example output:

when

Query memories by time period.

anxiety

Memory anxiety tracking and management.

identity

Identity synthesis operations.

identity show

Generate a coherent identity narrative.

identity confidence

Check identity coherence score.

identity drift

Detect identity drift over time.

emotion

Emotional memory operations.

emotion summary

Search by emotional characteristics.

emotion tag

Add emotional tags to an episode.

emotion mood

Get mood-relevant memories.

meta

Meta-memory operations.

meta confidence

Get confidence for a memory.

meta verify

Verify a memory (increases confidence).

meta lineage

Get provenance chain.

meta uncertain

List low-confidence memories.

meta knowledge

Show knowledge map.

meta gaps

Detect knowledge gaps.

meta boundaries

Show competence boundaries.

meta learn

Identify learning opportunities.

forget

Controlled forgetting operations for memory maintenance. Kernle uses salience-based forgetting to help memories gracefully fade while preserving core identity.
Salience Formula: Kernle calculates memory salience as:
where:
  • reinforcement_weight = log(times_accessed + 1)
  • age_factor = days_since_last_access / half_life (half_life = 30 days)
Lower salience = more likely to be forgotten. Protected memories and memories above the threshold are never forgotten.

forget candidates

Show forgetting candidates (low-salience memories eligible for forgetting).

forget run

Run forgetting cycle.
Forgetting is reversible via forget recover, but run with --dry-run first to review candidates.

forget protect

Protect a memory from forgetting. Protected memories never decay and cannot be forgotten.
Values and Drives are protected by default and excluded from forgetting candidates.

forget recover

Recover a forgotten (tombstoned) memory. Forgotten memories are not deleted - they can always be recovered.

forget list

List all forgotten (tombstoned) memories.

forget salience

Check the salience score of a specific memory. Useful for understanding why a memory is or isn’t a forgetting candidate.
Shows:
  • Current salience score with visual bar
  • Component breakdown (confidence, access count, protection status)
  • Status interpretation (critical/low/moderate/high salience)

dump

Dump all memory to stdout.

export

Export memory to a file.
Format is auto-detected from file extension if not specified.

export-full

Export complete agent context (all memory layers) to a single file. Unlike export (full memory dump), export-full assembles all memory layers — boot config, values, beliefs, goals, episodes, notes, drives, relationships, self-narratives, trust assessments, playbooks, and checkpoint — into one comprehensive file.

process

Run or check automated memory processing (model-driven layer promotion). Processing uses a bound model to automatically promote memories across layers (e.g., raw entries to episodes, episodes to beliefs).

process run

Run memory processing transitions.
Available transitions:
process run and process exhaust auto-bind a model from environment variables (CLAUDE_API_KEY / ANTHROPIC_API_KEY) if none is already bound. You can also bind one explicitly with kernle model set claude.

process status

Show unprocessed memory counts and whether each transition’s quantity threshold has been met.
Example output:

process exhaust

Run processing cycles repeatedly until convergence (no more promotions possible).

model

Show, bind, or unbind inference models. Model binding is session-only (not persisted to disk). Process commands auto-bind from environment variables, but model set lets you bind explicitly.

model show

Show the currently bound model.

model set

Bind a model provider.
Default models per provider:

model clear

Unbind the currently bound model.

init

Initialize Kernle by generating a CLAUDE.md/AGENTS.md health check section.

suggestions

Manage memory suggestions (auto-generated recommendations from the processing pipeline).

suggestions list

suggestions show

Show details for a specific suggestion. Supports partial ID matching.

suggestions accept

Accept a suggestion and promote it to structured memory. Supports all 7 memory types (episode, belief, note, goal, value, relationship, drive).

suggestions dismiss

Dismiss a suggestion with an optional reason.

suggestions expire

Expire stale pending suggestions older than a threshold.

suggestions extract

Extract new suggestions from unprocessed raw entries.

stack

Manage local stacks.

stack list

List all stacks in ~/.kernle/.

stack delete

Delete a stack and all its data.
This permanently deletes the stack’s database records and directory. Cannot be undone.

doctor

Validate boot sequence compliance and system health.
Checks:
  • Memory system initialization
  • Storage accessibility
  • Required tables exist
  • Embedding provider availability
  • Sync credentials (if configured)

stats

Usage statistics and health check tracking.

stats health-checks

Show health check compliance over time.

mcp

Start MCP server (stdio transport).
Used for integration with MCP-compatible tools. See MCP Integration.