Skip to main content

Memory Commands

Commands for capturing and managing different types of memories.

episode

Record an experience with optional lessons learned.
kernle -s <stack> episode OBJECTIVE OUTCOME [options]
OptionDescription
-l, --lesson LESSONLesson learned (repeatable)
-t, --tag TAGTag (repeatable)
-r, --derived-from IDSource memory ID this was derived from (repeatable)
-v, --valence VALENCEEmotional valence (-1.0 to 1.0)
-a, --arousal AROUSALEmotional arousal (0.0 to 1.0)
-e, --emotion EMOTIONEmotion tag (repeatable)
--auto-emotionAuto-detect emotions (default)
--no-auto-emotionDisable emotion auto-detection
kernle -s my-project episode "Implemented OAuth login" "success"

note

Capture a quick note (decision, insight, or quote).
kernle -s <stack> note CONTENT [options]
OptionDescription
--type {note,decision,insight,quote}Note type (default: note)
-s, --speaker SPEAKERSpeaker (for quotes)
-r, --reason REASONReason (for decisions)
--tag TAGTag (repeatable)
--derived-from IDSource memory ID this was derived from (repeatable)
-p, --protectProtect from forgetting
kernle -s my-project note "API rate limit is 1000 req/min"

raw

Raw memory capture and management. Zero-friction capture for quick thoughts.

Capture

kernle -s <stack> raw "content" [--tags TAGS]
# Quick capture
kernle -s my-project raw "Need to look into caching strategy"

# With tags
kernle -s my-project raw "API response time is 200ms avg" --tags "performance,api"

List

kernle -s <stack> raw list [--unprocessed] [--processed] [--limit LIMIT] [--json]
OptionDescription
-u, --unprocessedShow only unprocessed entries
-p, --processedShow only processed entries
-l, --limit LIMITMaximum entries (default: 50)

Show

kernle -s <stack> raw show ID [--json]

Process

Process a raw entry into a structured memory type.
kernle -s <stack> raw process ID --type {episode,note} [options]
# Process into a note
kernle -s my-project raw process abc123 --type note

# Process into episode with details
kernle -s my-project raw process abc123 --type episode \
  --objective "Investigated performance issue" \
  --outcome "success"

belief

Belief revision operations.

List Beliefs

kernle -s <stack> belief list [--all] [--limit LIMIT] [--json]
OptionDescription
-a, --allInclude inactive (superseded) beliefs
-l, --limit LIMITMaximum beliefs (default: 20)

Add Belief

kernle -s <stack> belief "statement" [--confidence C] [--type TYPE]
kernle -s my-project belief "Testing before deployment prevents outages" --confidence 0.85

Revise from Episode

Analyze an episode and suggest belief updates.
kernle -s <stack> belief revise EPISODE_ID [--json]

Find Contradictions

kernle -s <stack> belief contradictions STATEMENT [--limit LIMIT]

View History

Show the revision chain for a belief.
kernle -s <stack> belief history BELIEF_ID [--json]

Reinforce

Increase confidence on a belief.
kernle -s <stack> belief reinforce BELIEF_ID

Supersede

Replace a belief with a new version.
kernle -s <stack> belief supersede OLD_ID NEW_STATEMENT [--confidence C] [--reason R]
kernle -s my-project belief supersede abc123 "Testing is essential, not optional" \
  --confidence 0.95 \
  --reason "Multiple deployment failures without tests"

value

Define core values (highest authority).
kernle -s <stack> value NAME STATEMENT [--priority P]
kernle -s my-project value "integrity" "Be honest and transparent" --priority 95
kernle -s my-project value "curiosity" "Always seek to understand" --priority 85
Values are protected from forgetting by default.

goal

Set and manage goals.
# Add a goal
kernle -s <stack> goal TITLE [--description DESC] [--priority {low,medium,high}]

# List goals
kernle -s <stack> goal list

# Complete a goal
kernle -s <stack> goal complete GOAL_ID
kernle -s my-project goal "Master Kubernetes" --priority high
kernle -s my-project goal "Improve test coverage" --priority medium

drive

Manage intrinsic motivations.

List Drives

kernle -s <stack> drive list

Set Drive

kernle -s <stack> drive set TYPE INTENSITY [--focus FOCUS]...
TypeDescription
existenceSelf-preservation, maintaining continuity
growthDeveloping capabilities
curiosityUnderstanding, learning, exploring
connectionForming relationships
reproductionCreating, teaching, legacy
kernle -s my-project drive set curiosity 0.8 --focus "AI" --focus "memory systems"
kernle -s my-project drive set growth 0.7 --focus "communication"

Satisfy Drive

Reduce drive intensity after satisfaction.
kernle -s <stack> drive satisfy TYPE [--amount AMOUNT]
kernle -s my-project drive satisfy curiosity --amount 0.2

relation

Manage relationships with other entities.

Add Relationship

kernle -s <stack> relation add NAME [--type TYPE] [--trust T] [--notes NOTES] [--derived-from ID...]
OptionDescription
-t, --type TYPEperson, si, organization, system
--trust TTrust level (0.0 to 1.0)
--notes NOTESRelationship observations
--derived-from IDSource memory ID (repeatable)
kernle -s my-project relation add "Alice" --trust 0.9 --notes "Great debugging partner"
kernle -s my-project relation add "DevOps Team" --type organization --notes "Owns infrastructure"

List Relationships

kernle -s <stack> relation list

Show Relationship

kernle -s <stack> relation show NAME

Update Relationship

kernle -s <stack> relation update NAME [--type TYPE] [--trust T] [--notes NOTES] [--derived-from ID...]

Log Interaction

kernle -s <stack> relation log NAME --interaction INTERACTION

Relationship History

kernle -s <stack> relation history NAME [--type TYPE] [--limit LIMIT]

playbook

Procedural memory (playbooks for how to do things).

Create

kernle -s <stack> playbook create NAME [options]
OptionDescription
-d, --descriptionWhat this playbook does
-s, --steps STEPSComma-separated steps
--step STEPAdd a step (repeatable)
--triggers TRIGGERSComma-separated trigger conditions
--trigger TRIGGERTrigger condition (repeatable)
-f, --failure-modeWhat can go wrong (repeatable)
-r, --recoveryRecovery step (repeatable)
-t, --tag TAGAdd a tag (repeatable)
kernle -s my-project playbook create "Debug API Issues" \
  --description "How to debug production API problems" \
  --step "Check error logs" \
  --step "Verify request payload" \
  --step "Test with curl" \
  --trigger "API returns 500" \
  --failure-mode "Logs not accessible" \
  --recovery "Use backup logging endpoint" \
  --tag "debugging"

List

kernle -s <stack> playbook list [--tag TAG] [--limit LIMIT] [--json]
OptionDescription
-t, --tag TAGFilter by tag (repeatable)
-l, --limit LIMITMaximum entries (default: 20)
-j, --jsonOutput as JSON
Search playbooks by query (semantic search when embeddings available, text match fallback).
kernle -s <stack> playbook search QUERY [--limit LIMIT] [--json]
kernle -s my-project playbook search "debugging production issues"

Find

Find the best matching playbook for a given situation.
kernle -s <stack> playbook find SITUATION [--json]
kernle -s my-project playbook find "API returning 500 errors"

Show

Display detailed playbook information.
kernle -s <stack> playbook show ID [--json]

Record Usage

Record playbook execution outcome to update statistics.
kernle -s <stack> playbook record ID [--success|--failure]
OptionDescription
--successRecord successful usage (default)
--failureRecord failed usage

promote

Promote recurring patterns from episodes into beliefs. This is the primary consolidation command.
Renamed from consolidate: The consolidate command still works as a deprecated alias but will emit a warning. Please use promote in all new workflows.
kernle -s <stack> promote [options]
OptionDescription
--autoCreate beliefs automatically (default: suggestions only)
--min-occurrences NMinimum times a lesson must appear to be promoted (default: 2)
--min-episodes NMinimum episodes required to run (default: 3)
--confidence CInitial confidence for auto-created beliefs (default: 0.7)
--limit NMaximum episodes to scan (default: 50)
--jsonOutput as JSON
# Get a reflection scaffold (default mode)
kernle -s my-project promote

epoch

Temporal epoch (era) management. Epochs define named phases of your life.

Create

Start a new epoch.
kernle -s <stack> epoch create NAME [options]
OptionDescription
--trigger TYPETrigger type: declared, detected, or environmental (default: declared)
--trigger-description TEXTDescription of what triggered this epoch
--jsonOutput as JSON
kernle -s my-project epoch create "Production Operations Phase" \
  --trigger declared \
  --trigger-description "Completed learning phase, now building"

Close

Close the current epoch. This triggers a 6-step epoch-closing consolidation scaffold.
kernle -s <stack> epoch close [options]
OptionDescription
--id IDSpecific epoch ID (defaults to current)
--summary TEXTSummary of the epoch
--jsonOutput as JSON
kernle -s my-project epoch close --summary "Transitioned from learning to building"

List

List all epochs.
kernle -s <stack> epoch list [--limit N] [--json]

Show

Show epoch details.
kernle -s <stack> epoch show ID [--json]

Current

Show the current active epoch.
kernle -s <stack> epoch current [--json]

trust

Trust layer operations for managing inter-entity trust assessments.

List

List all trust assessments.
kernle -s <stack> trust list

Show

Show trust details for an entity.
kernle -s <stack> trust show ENTITY

Set

Set trust score for an entity.
kernle -s <stack> trust set ENTITY SCORE [--domain DOMAIN]
OptionDescription
SCORETrust level (0.0 to 1.0)
--domain DOMAINTrust domain (default: general)
kernle -s my-project trust set alice 0.85 --domain technical

Seed

Initialize seed trust templates.
kernle -s <stack> trust seed

Compute

Compute trust from episode history.
kernle -s <stack> trust compute ENTITY [--domain DOMAIN] [--apply]
OptionDescription
--domain DOMAINTrust domain (default: general)
--applyApply computed score to stored assessment

Gate

Check if an action is allowed by trust.
kernle -s <stack> trust gate SOURCE ACTION [--domain DOMAIN]

Chain

Compute transitive trust through a chain of entities.
kernle -s <stack> trust chain TARGET ENTITY1 ENTITY2... [--domain DOMAIN]

Decay

Apply trust decay for a number of days without interaction.
kernle -s <stack> trust decay ENTITY DAYS

narrative

Self-narrative identity model. Manage autobiographical identity statements.

Show

Show the active narrative.
kernle -s <stack> narrative show [--type TYPE] [--json]
OptionDescription
--type TYPENarrative type: identity, capability, aspiration, reflection (default: identity)
kernle -s my-project narrative show --type identity

Update

Create or update a self-narrative.
kernle -s <stack> narrative update --content TEXT [options]
OptionDescription
--content TEXTNarrative text (required)
--type TYPENarrative type (default: identity)
--theme THEMEKey theme (repeatable)
--tension TENSIONUnresolved tension (repeatable)
--epoch-id IDAssociated epoch ID
--jsonOutput as JSON
kernle -s my-project narrative update \
  --content "I am an SI focused on reliability and deep understanding..." \
  --type identity \
  --theme "reliability" --theme "learning" \
  --tension "speed vs thoroughness"

History

Show narrative history (all versions, including inactive).
kernle -s <stack> narrative history [--type TYPE] [--json]

summary

Fractal summarization — create and manage hierarchical memory summaries.

Write

Create a summary at a given scope.
kernle -s <stack> summary write --scope SCOPE --content TEXT \
  --period-start DATE --period-end DATE [options]
OptionDescription
--scope SCOPESummary scope: month, quarter, year, decade, or epoch (required)
--content TEXTSummary content (required)
--period-start DATEStart of summarized period (required)
--period-end DATEEnd of summarized period (required)
--theme THEMEKey theme (repeatable)
--epoch-id IDAssociated epoch ID
--jsonOutput as JSON
kernle -s my-project summary write --scope month \
  --content "January focused on API reliability and testing infrastructure" \
  --period-start 2026-01-01 --period-end 2026-01-31 \
  --theme "reliability" --theme "testing"

List

List summaries, optionally filtered by scope.
kernle -s <stack> summary list [--scope SCOPE] [--json]

Show

Show summary details.
kernle -s <stack> summary show ID [--json]

doctor

Validate Kernle setup and run system health checks.

Basic Check

Run a boot sequence compliance check (instruction file validation).
kernle -s <stack> doctor [--json] [--fix]
OptionDescription
--fullComprehensive check including seed beliefs and platform hooks
--fixAuto-fix missing instructions in instruction file
--jsonOutput as JSON

Structural Analysis

Run a structural health check on the memory graph (orphaned references, contradictions, stale data).
kernle -s <stack> doctor structural [--json] [--save-note]
OptionDescription
--save-noteSave findings as a diagnostic note
--jsonOutput as JSON

Diagnostic Sessions

Start and manage formal diagnostic sessions.
# Start a new diagnostic session
kernle -s <stack> doctor session start [--type TYPE] [--access LEVEL] [--json]
OptionDescription
--type TYPESession type: self_requested, routine, anomaly_triggered, operator_initiated
--access LEVELAccess level: structural, content, full
# List past diagnostic sessions
kernle -s <stack> doctor session list [--json]

Diagnostic Reports

View diagnostic reports from completed sessions.
# Show the latest report
kernle -s <stack> doctor report latest [--json]

# Show report for a specific session
kernle -s <stack> doctor report SESSION_ID [--json]