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"
Automatic Memory Loading
Make memory loading automatic instead of relying on manual commands:
# Clawdbot - Install hook for automatic loading
kernle -a my-agent setup clawdbot
# Claude Code - Install SessionStart hook (project-level)
kernle -a my-agent setup claude-code
# Claude Code - Install globally for all projects
kernle -a my-agent setup claude-code --global
# Cowork - Same as Claude Code
kernle -a my-agent setup cowork
After setup, memory loads automatically at every session start. No more forgetting to run kernle load!
See hooks/ directory for manual installation or kernle setup --help for details.
Other Integrations
Manual CLAUDE.md setup:
kernle -a my-agent init # Generates CLAUDE.md section with manual load instructions
MCP Server:
claude mcp add kernle -- kernle mcp -a my-agent
Clawdbot skill:
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
- 🔍 Readable —
kernle dumpexports 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kernle-0.2.2.tar.gz.
File metadata
- Download URL: kernle-0.2.2.tar.gz
- Upload date:
- Size: 276.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f59a32be4c491f5ce46195e282449faf27397d4add74b8b492994a69460a8f1
|
|
| MD5 |
33cc68b51d704ab70069927e29f73ce5
|
|
| BLAKE2b-256 |
56f3d5df92beab94a38ed7e6d132393d4a81b29435c36189287b0c91b96ef283
|
Provenance
The following attestation bundles were made for kernle-0.2.2.tar.gz:
Publisher:
publish.yml on emergent-instruments/kernle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kernle-0.2.2.tar.gz -
Subject digest:
9f59a32be4c491f5ce46195e282449faf27397d4add74b8b492994a69460a8f1 - Sigstore transparency entry: 888451669
- Sigstore integration time:
-
Permalink:
emergent-instruments/kernle@213b6e079d7fa929746cade151374681dbc3fea3 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/emergent-instruments
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@213b6e079d7fa929746cade151374681dbc3fea3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file kernle-0.2.2-py3-none-any.whl.
File metadata
- Download URL: kernle-0.2.2-py3-none-any.whl
- Upload date:
- Size: 312.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e403ac01fa902f4f965c15d7cfb1936f7ba3961f2f1ecdc207688b359c77b5c3
|
|
| MD5 |
36db12729c310668b403d1000b3afaac
|
|
| BLAKE2b-256 |
88fa7e177b95be9766425898a808907ff9e868ab9c5ffe4a1ad2ce1a9cff78b2
|
Provenance
The following attestation bundles were made for kernle-0.2.2-py3-none-any.whl:
Publisher:
publish.yml on emergent-instruments/kernle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kernle-0.2.2-py3-none-any.whl -
Subject digest:
e403ac01fa902f4f965c15d7cfb1936f7ba3961f2f1ecdc207688b359c77b5c3 - Sigstore transparency entry: 888451727
- Sigstore integration time:
-
Permalink:
emergent-instruments/kernle@213b6e079d7fa929746cade151374681dbc3fea3 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/emergent-instruments
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@213b6e079d7fa929746cade151374681dbc3fea3 -
Trigger Event:
release
-
Statement type: