Skip to main content

context-archive (ctxa)

Portable AI Project Context Compiler with incremental change journaling.

context-archive (ctxa) statically analyzes a software repository and compiles a compact, versioned, model-agnostic handoff artifact (PROJECT_CONTEXT.md) alongside a machine-readable canonical project graph (.context/graph.json) and append-only change journal (.context/journal/YYYY-MM.jsonl).

Quickstart Workflow

# 1. Initialize .context/, snapshot-0001.json, and PROJECT_CONTEXT.md
ctxa init

# 2. Record durable architectural decisions or constraints
ctxa note "All monetary calculations must use Decimal" --type constraint --scope src/pricing.py

# 3. Record incremental code changes into the append-only JSONL journal
ctxa update -m "Add discount rounding to calculate_total"

# 4. Inspect semantic diff and downstream caller/test impact
ctxa diff --format text

# 5. Refresh portable PROJECT_CONTEXT.md and verify cryptographic freshness
ctxa handoff
ctxa verify

# 6. Compile a token-budgeted context packet for a specific task
ctxa context "Add rate limiting to POST /orders" --max-tokens 6000

# 7. Fold unincorporated journal records into a new snapshot checkpoint
ctxa compact

Development & Verification Gates

poetry check --lock
poetry run ruff check .
poetry run ruff format --check .
poetry run mypy src tests --strict
poetry run pytest --cov=context_archive --cov-fail-under=90

License

MIT

Metadata

Release files for context-archive 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for context-archive 1.0.0
File Size Uploaded Provenance Actions
context_archive-1.0.0.tar.gz 71.6 kB With provenance Details for context_archive-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for context-archive 1.0.0
File Interpreter ABI Platform Actions
context_archive-1.0.0-py3-none-any.whl Python 3 none any Details for context_archive-1.0.0-py3-none-any.whl

Total release size: 169.1 kB

Release files / context_archive-1.0.0.tar.gz

Download URL context_archive-1.0.0.tar.gz
Size 71.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d3abc921145cfc0dd84cee9698351d57595d1a728951423062470194dcfc7459
BLAKE2b-256 checksum
How to use checksums
936cb4bfa68da23f3314ebf0eddff58935d683b7d85237e2b6da95f40044872e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / context_archive-1.0.0-py3-none-any.whl

Download URL context_archive-1.0.0-py3-none-any.whl
Size 97.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
976624ce89604605a851965874c332dadc58ff9e1a6431e9144aa990f6f53863
BLAKE2b-256 checksum
How to use checksums
1416e7a858c21b660a1c09d5fdfc6caa039ee264cceb918173c23ed4ea096f73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for context-archive 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for context_archive-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page