Skip to main content

Memory Commands

Commands for capturing and managing different types of memories.

episode

Record an experience with optional lessons learned.
kernle -a <agent> episode OBJECTIVE OUTCOME [options]
OptionDescription
-l, --lesson LESSONLesson learned (repeatable)
-t, --tag TAGTag (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 -a claire episode "Implemented OAuth login" "success"

note

Capture a quick note (decision, insight, or quote).
kernle -a <agent> 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)
-p, --protectProtect from forgetting
kernle -a claire note "API rate limit is 1000 req/min"

raw

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

Capture

kernle -a <agent> raw "content" [--tags TAGS]
# Quick capture
kernle -a claire raw "Need to look into caching strategy"

# With tags
kernle -a claire raw "API response time is 200ms avg" --tags "performance,api"

List

kernle -a <agent> 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 -a <agent> raw show ID [--json]

Process

Process a raw entry into a structured memory type.
kernle -a <agent> raw process ID --type {episode,note,belief} [options]
# Process into a note
kernle -a claire raw process abc123 --type note

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

belief

Belief revision operations.

List Beliefs

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

Add Belief

kernle -a <agent> belief "statement" [--confidence C] [--type TYPE]
kernle -a claire belief "Testing before deployment prevents outages" --confidence 0.85

Revise from Episode

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

Find Contradictions

kernle -a <agent> belief contradictions STATEMENT [--limit LIMIT]

View History

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

Reinforce

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

Supersede

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

value

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

goal

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

# List goals
kernle -a <agent> goal list

# Complete a goal
kernle -a <agent> goal complete GOAL_ID
kernle -a claire goal "Master Kubernetes" --priority high
kernle -a claire goal "Improve test coverage" --priority medium

drive

Manage intrinsic motivations.

List Drives

kernle -a <agent> drive list

Set Drive

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

Satisfy Drive

Reduce drive intensity after satisfaction.
kernle -a <agent> drive satisfy TYPE [--amount AMOUNT]
kernle -a claire drive satisfy curiosity --amount 0.2

relationship

Track relationships with other entities.
kernle -a <agent> relationship NAME [--trust T] [--type TYPE] [--notes NOTES]
OptionDescription
--trust TTrust level (-1.0 to 1.0)
--type TYPEagent, person, or organization
--notes NOTESRelationship observations
kernle -a claire relationship "Alice" --trust 0.9 --notes "Great debugging partner"
kernle -a claire relationship "DevOps" --type organization --notes "Manages infrastructure"

playbook

Procedural memory (playbooks for how to do things).

Create

kernle -a <agent> playbook create NAME [options]
OptionDescription
-d, --descriptionWhat this playbook does
--step STEPAdd a step (repeatable)
--trigger TRIGGERTrigger condition (repeatable)
-f, --failure-modeWhat can go wrong (repeatable)
-r, --recoveryRecovery step (repeatable)
kernle -a claire 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"

List

kernle -a <agent> playbook list [--tag TAG] [--limit LIMIT]
kernle -a <agent> playbook find SITUATION
kernle -a claire playbook find "API returning 500 errors"

Show

kernle -a <agent> playbook show ID

Record Usage

kernle -a <agent> playbook record ID [--success|--failure]