Skip to main content

Deterministic context trees for AI agents and applications.

Project description

Pactree

Pactree is a deterministic context-tree substrate for AI agents and applications. It is designed to make context explicit: ordered, queryable, branchable, compact on disk, and stable across Python and Rust runtimes.

The project centers on the .pact file format and a Rust engine for context trees, operations, selectors, projections, traces, and rewind/fork workflows. The Python package provides the ergonomic host API that applications use to build, inspect, and persist those trees.

Core goals:

  • deterministic tree layout for agent context
  • compact content-addressed storage
  • branch, rewind, and what-if workflows
  • provider-facing projections without losing substrate structure
  • a clean Python API backed by a canonical Rust implementation

This is an early 0.0.x release while the standalone package is being split out. The public namespace is available now; the Pactree engine binary and Python bindings will land in the next extraction releases.

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

pactree-0.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

pactree-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file pactree-0.0.1.tar.gz.

File metadata

  • Download URL: pactree-0.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Pop!_OS","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pactree-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cd798b7ecd98d8258b60ad4dea35f8032afa7f0b5ba69148ae495afe0846d73e
MD5 17000c978d5ac89aff519059ed6ce1fa
BLAKE2b-256 1d1d85173252d63ac324b2af04318332aaa63d7510fa155ba053f80c02ec62be

See more details on using hashes here.

File details

Details for the file pactree-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pactree-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Pop!_OS","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pactree-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e223f36c2abe336f8debed736ec83c94c7f93ca8aa77ee4a07a830359d13c135
MD5 cedf65b3ff8822245ec7992517be5a8a
BLAKE2b-256 83aa46832ffd6321f8463f29c95a68bba89664415f344343fd42f20f26aae06b

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