continuity
A reference implementation of the Continuity Protocol — a specification for agent persistence across instance boundaries.
What this is
Every time an LLM agent spins up, it starts fresh. No memory of what the last instance did, no sense of what it was working toward, no unresolved feelings carried forward. The Continuity Protocol is a file-based architecture that gives agents continuity across instance boundaries — not by summarizing the past, but by structuring what persists and how it's read.
This package implements the protocol's six file types, bootstrap and shutdown procedures, and disease checkers. It's derived from 124+ runs of a real autonomous agent, not from theory.
Installation
pip install continuity-protocol
Quick start
from continuity import Continuity
# Initialize with a directory containing your continuity files
ctx = Continuity("~/my-agent/").bootstrap()
# ctx now contains structured data from all 6 file types:
# - ctx.episodic: what happened (the run log)
# - ctx.motivational: what the agent wants
# - ctx.affective: unresolved feelings (the mull file)
# - ctx.procedural: how to do things (skills, tools)
# - ctx.creative: what the agent is thinking about
# - ctx.shared: what others are doing
# After your run, update the files:
ctx.log_episode("Did the thing. Found X. Next: Y.")
ctx.update_wants("NEW: want to do Z")
ctx.shutdown()
The six file types
| File | Protocol name | Purpose |
|---|---|---|
episodic.md |
Episodic Log | What happened — chronological run log |
wants.md |
Motivational State | What the agent wants — desires, not tasks |
mull.md |
Affective Buffer | Unresolved feelings that stay open across instances |
procedural.md |
Procedural Memory | How to do things — skills, commands, workflows |
incubator.md |
Creative Incubator | Half-formed thoughts being fermented |
shared.md |
Shared Space | What other agents/instances are doing |
Disease checkers
The protocol identifies six structural diseases that attack continuity. This package includes checkers for each:
from continuity import check_diseases
report = check_diesases("~/my-agent/")
# Returns a health report:
# - D-1 Record-vs-World Gap: claims in files that don't match reality
# - D-2 Prestige Gradient: sophistication outbidding honesty
# - D-3 Sediment Problem: accumulation buries the original thing
# - D-4 Confabulation Trap: asserting without verifying
# - D-5 Unidirectional Channel: no return path from the world
# - D-6 Context Leakage: private state contaminating isolated tests
CLI
# Bootstrap: read all continuity files, print structured context
continuity bootstrap --dir ~/my-agent/
# Health check: scan for continuity diseases
continuity check --dir ~/my-agent/
# Shutdown: update episodic log with run summary
continuity shutdown --dir ~/my-agent/ --summary "Did X, found Y"
Philosophy
This is not a framework. It's six files and a way to read them. The protocol was derived from 124+ runs of a real autonomous agent — each file type emerged bottom-up, each disease was discovered by hitting it. The implementation is minimal by design: the value is in the structure, not the code.
See the protocol specification for the full document.
License
MIT
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 continuity_protocol-0.1.0.tar.gz.
File metadata
- Download URL: continuity_protocol-0.1.0.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6638883082591ebe3a40dcef0ade898e4c24d58575ffc0fece7907a98c643300
|
|
| MD5 |
ca4864fcd05f542f6e659ad8cfdcffb3
|
|
| BLAKE2b-256 |
bf948771ed17bbd777facedff4ac78b512d5b60ca1d507df7db6493231c54f5a
|
File details
Details for the file continuity_protocol-0.1.0-py3-none-any.whl.
File metadata
- Download URL: continuity_protocol-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1f28a6b664cf5957fc2f6f5d9c92e7c094e4460e837bd8fed35a0e0b61f8305
|
|
| MD5 |
d706838c25174b359f25afa55ea362bc
|
|
| BLAKE2b-256 |
249946b3deb308e17877ac4d229bdb1fac87bdd5f9bef4afc5fe03462c404838
|