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.2.tar.gz (35.7 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.2-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pactree-0.0.2.tar.gz
  • Upload date:
  • Size: 35.7 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.2.tar.gz
Algorithm Hash digest
SHA256 0a61e059c0b0fff69ce41ddab1675e3b96db2071c8527daa641fc00e52242607
MD5 8c584a2ecac70b5b0cbeae4d39791aef
BLAKE2b-256 0c7333589672fc695527fd41c5604dfd1ad91a7ce9b81a13620515d7d2a0cc8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pactree-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 30.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9ac5345a0a7ee20dd9b42c28d6724e2a9bf34d99346f99b9c9eaf5f0741a0ec4
MD5 d358624856b9a4784447db7c50176561
BLAKE2b-256 a7996b21d6718f1ca3f3da62d029c6204307b905b7c55769d68476f957bf7a4a

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