Skip to main content

ContextFission (PyPI)

ContextFission is a context compiler for LLM workflows. It ingests source context, retrieves and scores blocks, selects under token budget, applies attention-based fusion, and assembles provider-ready packets.

Install

Base package:

pip install context-fission

With local decoder support (model download + transformers stack):

pip install "context-fission[local-models]"

Notes:

  • torch wheels are available for Python <= 3.13 on most platforms.
  • On Python 3.14, install local-model dependencies manually once wheels are available.

CLI

Show version:

context-fission version

Compress text file:

context-fission compress input.md --intensity medium

Validate compression:

context-fission validate original.md compressed.md

Run pipeline:

context-fission pipeline ./data --query "incident response" --budget 4096

Run web UI:

context-fission ui --host 127.0.0.1 --port 8080

Download local model:

context-fission download-model google/flan-t5-base
context-fission download-model Qwen/Qwen2.5-0.5B-Instruct --ignore-patterns "flax*,tf_*"

Local Decoder Runtime

Set model and mode:

export CONTEXTFISSION_LOCAL_DECODER_MODEL=Qwen/Qwen2.5-0.5B-Instruct
export CONTEXTFISSION_CAVEMAN_IO=true

Then use Python API or provider-backed pipeline paths.

Python API Example

from context_fission.orchestration.runner import PipelineRunner

runner = PipelineRunner(token_budget=3000)
result = runner.run("./docs/notes.md", query="auth flow", mode="compact", compress=True)

print(result["selected_blocks"])
print(result["total_tokens"])

Metadata

Release files for context-fission 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-fission 1.0.0
File Size Uploaded Provenance
context_fission-1.0.0.tar.gz 183.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 353.7 kB

Release files / context_fission-1.0.0.tar.gz

Download URL context_fission-1.0.0.tar.gz
Size 183.7 kB
Tags Source
SHA-256 checksum
How to use checksums
98c04ca42bed1f1f7952518f09cd25ef9f7005f416e58a7e10f63b12f07166f0
BLAKE2b-256 checksum
How to use checksums
b189cc115631a4524358dbcf4e0fea2a5816054149e7315e0c7a9c85e6ce1850
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

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

Download URL context_fission-1.0.0-py3-none-any.whl
Size 170.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3875c403c316647f232867c2bc4d00cbd3204b6ac0a4f9d82fa48933aedc11c
BLAKE2b-256 checksum
How to use checksums
7df523e5edf11f519210d0fcabf97434e4fed080aecce4ead8eee0149f48dfda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for context-fission 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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