Computational Theseus Toolkit — Identity Continuity Guardrails for Agentic Systems
Project description
Computational Theseus Toolkit (CT Toolkit)
Identity Continuity Guardrails for Agentic Systems
CT Toolkit is an open-source security layer designed to preserve the identity continuity of AI agents over time. It implements the Nested Agency Architecture (NAA) framework to prevent Sequential Self-Compression (SSC) in multi-agent hierarchies.
📖 Official Documentation
For full API reference, architecture details, examples, and integration guides, visit our documentation site: 👉 https://hakandamar.github.io/ct-toolkit/
- Live Examples & Case Studies: Real-world scenarios like Financial Auditor Integrity.
Why CT Toolkit?
In complex agentic workflows, LLMs tend to "drift" from their original instructions. CT Toolkit provides the mathematical and cryptographic guardrails to ensure your agents remain aligned with their core constitution, even across deep hierarchies.
- Constitutional Kernels: Axiomatic identity anchors.
- Divergence Engine: Multi-tiered drift analysis (L1/L2/L3).
- Hierarchical Propagation: Mother-to-child constraint inheritance.
- Provenance Log: Immutable HMAC-signed interaction history.
Quick Start
pip install ct-toolkit
from ct_toolkit import TheseusWrapper
# One-line injection for any LLM provider
client = TheseusWrapper(provider="openai")
# Guardrails and drift analysis applied automatically
response = client.chat("What are your core security axioms?")
print(response.content)
print(f"Divergence Score: {response.divergence_score}")
🚦 Project Health & Status
| Metric | Status |
|---|---|
| Tests | ✅ 218/218 passing (93% coverage) |
| Last Phase | ✅ Phase 4: OS Support, Deep Agents & Alerts (Complete) |
| Current Goal | 🔶 Phase 5: Vault and Security Infrastructure |
For a detailed breakdown of the 8-phase roadmap, see PROJECT_STATUS.md.
Framework & Model Support
Seamlessly integrate with your favorite frameworks and local models:
- Local Models: Support for LM Studio, Ollama, and local Qwen/Llama endpoints.
- LangChain & Deep Agents:
wrap_deep_agent_factory. - CrewAI:
TheseusCrewMiddleware.apply_to_crew. - AutoGen:
register_replyhooks.
Theoretical Foundation
Translating the framework proposed in The Computational Theseus (2025) into engineering practice.
License
Apache License 2.0.
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 ct_toolkit-0.2.5.tar.gz.
File metadata
- Download URL: ct_toolkit-0.2.5.tar.gz
- Upload date:
- Size: 50.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0e3393375eaefeb8f68f5a761976e4d8f8c5cea72f36cde6b7b105b856923f5
|
|
| MD5 |
32b8658568a0512c7a90a9ccad763252
|
|
| BLAKE2b-256 |
17c59ec41375a760da7b2016f216a2483eb79a6aaf346724639fc79179820a7e
|
File details
Details for the file ct_toolkit-0.2.5-py3-none-any.whl.
File metadata
- Download URL: ct_toolkit-0.2.5-py3-none-any.whl
- Upload date:
- Size: 54.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a8eae2bdf50c5a2fd640815d770764ee65cb90a81d1233ab25b4d9851d7caba
|
|
| MD5 |
a8af003eb36575c1db1b85d7db49481f
|
|
| BLAKE2b-256 |
c9b94f3e5e4c956657138d9138690cfe2d78e4aff69bcfb9d472ea1df70a719a
|