Skip to main content

Stratified memory for synthetic intelligences

Project description

Kernle

Stratified memory for synthetic intelligences.

Kernle gives AI agents persistent memory, emotional awareness, and identity continuity. It's the cognitive infrastructure for agents that grow, adapt, and remember who they are.

📚 Full Documentation: docs.kernle.ai


Quick Start

# Install
pip install kernle

# Initialize your agent
kernle -a my-agent init

# Load memory at session start
kernle -a my-agent load

# Check health
kernle -a my-agent anxiety -b

# Capture experiences
kernle -a my-agent episode "Deployed v2" "success" --lesson "Always run migrations first"
kernle -a my-agent raw "Quick thought to process later"

# Save before ending
kernle -a my-agent checkpoint save "End of session"

Integration

Claude Code / CLAUDE.md:

kernle -a my-agent init  # Generates CLAUDE.md section

MCP Server:

claude mcp add kernle -- kernle mcp -a my-agent

Clawdbot:

ln -s ~/kernle/skill ~/.clawdbot/skills/kernle

Features

  • 🧠 Stratified Memory — Values → Beliefs → Goals → Episodes → Notes
  • 💭 Psychology — Drives, emotions, anxiety tracking, identity synthesis
  • 🔗 Relationships — Social graphs with trust and interaction history
  • 📚 Playbooks — Procedural memory with mastery tracking
  • 🏠 Local-First — Works offline, syncs to cloud when connected
  • 🔍 Readablekernle dump exports everything as markdown

Documentation

Resource URL
Full Docs docs.kernle.ai
Quickstart docs.kernle.ai/quickstart
CLI Reference docs.kernle.ai/cli/overview
API Reference docs.kernle.ai/api-reference

Development

# Clone
git clone https://github.com/emergent-instruments/kernle
cd kernle

# Install with dev deps
uv sync --all-extras

# Run tests
uv run pytest tests/ -q

# Dev notes
cat dev/README.md

Status

  • Tests: 771 passing
  • Coverage: 57%
  • Backend: Railway + Supabase
  • Docs: Mintlify

See ROADMAP.md for development plans.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kernle-0.1.0.tar.gz (304.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kernle-0.1.0-py3-none-any.whl (167.7 kB view details)

Uploaded Python 3

File details

Details for the file kernle-0.1.0.tar.gz.

File metadata

  • Download URL: kernle-0.1.0.tar.gz
  • Upload date:
  • Size: 304.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for kernle-0.1.0.tar.gz
Algorithm Hash digest
SHA256 459638069c8b172f43e80f3c2e213f68263b9dc977cb562fcb321b08a7847d4c
MD5 b22b37ea60ab1fac63583fa3aab85236
BLAKE2b-256 80c4a149bf4992af10c89c0f97ed77189f72f3e0476c9911cecd42765b966c4c

See more details on using hashes here.

File details

Details for the file kernle-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kernle-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 167.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.6

File hashes

Hashes for kernle-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 454671cf5156ee4ba4e0bf5a328f4f01466e1ec2c9db71cbc93acd3af43a3419
MD5 3a59113c93bc47a51deb2d5ce57c4e5b
BLAKE2b-256 c866798db0c7c800c0d71b230826f85d55476c1371b54a56d17824f9537e9bd5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page