Skip to main content

Computational Theseus Toolkit — Identity Continuity Guardrails for Agentic Systems

Project description

Computational Theseus Toolkit (CT Toolkit)

Identity Continuity Guardrails for Agentic Systems

Python 3.11+ License: Apache 2.0 PyPI version Documentation

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, and integration guides, visit our documentation site: 👉 https://hakandamar.github.io/ct-toolkit/


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 ✅ 202/203 passing (92% coverage)
Last Phase ✅ Phase 3: ICM and Measurement (Complete)
Current Goal 🔶 Phase 4: Open-Source Support

For a detailed breakdown of the 8-phase roadmap, see PROJECT_STATUS.md.

Framework Support

Seamlessly integrate with your favorite frameworks:

# LangChain
from ct_toolkit.middleware.langchain import TheseusChatModel
llm = TheseusChatModel(provider="openai")

# CrewAI
TheseusCrewMiddleware.apply_to_crew(crew, manager_wrapper)

Theoretical Foundation

Translating the framework proposed in The Computational Theseus (2025) into engineering practice.


License

Apache License 2.0.

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

ct_toolkit-0.2.1.tar.gz (44.8 kB view details)

Uploaded Source

Built Distribution

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

ct_toolkit-0.2.1-py3-none-any.whl (51.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ct_toolkit-0.2.1.tar.gz
  • Upload date:
  • Size: 44.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for ct_toolkit-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9159443294327347bdf0a088f7f7ddf9d748fb3b434f5db77f351dd2e3bf85a3
MD5 8a1f100262b9d7cd6fc64a63e499ea29
BLAKE2b-256 e11563de2782e091fc5a8eccbf53f5abb679b14aaa4d66e05d20aa373ae1b5db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ct_toolkit-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 51.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for ct_toolkit-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4aa7ddb99db0e20616eaf131f44269934ebe442149809753951c6f3bff46105b
MD5 1455a85c8efc900dfdec5d31e9741865
BLAKE2b-256 898814221d717f50afd9c0d08e9061b29eed7d2b193dc718fc6909dcdaf7143d

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