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: 1292 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.2.1.tar.gz (3.8 MB view details)

Uploaded Source

Built Distribution

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

kernle-0.2.1-py3-none-any.whl (224.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kernle-0.2.1.tar.gz
  • Upload date:
  • Size: 3.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kernle-0.2.1.tar.gz
Algorithm Hash digest
SHA256 fa31ebd446efd8b08b8428f3249391b580a0b7b3764af338458ecec1a6485296
MD5 6fabaf0c541b1896f5d496f519d6ae10
BLAKE2b-256 7281a5c5b407fc65b352de3bf5331f7401f97bf7028ed79cf161a7cbf7c237ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for kernle-0.2.1.tar.gz:

Publisher: publish.yml on emergent-instruments/kernle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: kernle-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 224.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kernle-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0266b6abb723aac5dccfdd804676db3b1de7bcfddb4df267fa68961f661cc2a
MD5 9e1574ead1f3e20cafc8b428d95efab7
BLAKE2b-256 6f78451abfbb077c8d71d33d867c4cce09ee7b1df1149a45eaebee0c18b5c688

See more details on using hashes here.

Provenance

The following attestation bundles were made for kernle-0.2.1-py3-none-any.whl:

Publisher: publish.yml on emergent-instruments/kernle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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