Skip to main content

A tool to create, organize, merge and deploy reusable context instructions across multiple GenAI coding assistants

Project description

Context Mixer

A command-line tool to create, organize, merge and deploy reusable context instructions across multiple GenAI coding assistants.

Purpose

Context Mixer helps developers manage context fragments for different AI coding assistants (e.g., GitHub Copilot, Cursor/Windsor, Claude, Junie) in a structured, version-controlled way using the CRAFT framework for intelligent knowledge management.

Features

  • 🔄 Mix & Slice context fragments into variant-specific bundles with CRAFT-aware filtering
  • 📥 Ingest & Normalize existing context artifacts from multiple projects with project isolation
  • 📚 Source-of-Truth Library under Git for history and collaboration
  • 🛡️ Conflict Detection & Quarantine with comprehensive quarantine management system
  • ⚡ Token Optimization with intelligent selection to fit assistant limits
  • 🎯 Project Context Isolation to prevent cross-project knowledge contamination
  • 🔍 Semantic Search with vector-based knowledge retrieval and hybrid search capabilities
  • 📊 Event-Driven Architecture with comprehensive progress tracking and monitoring
  • 🏗️ Command Pattern Implementation with consistent CLI interface and extensible commands

Installation

# Install with pipx (recommended)
pipx install context-mixer

# Or with pip
pip install context-mixer

# For development
git clone https://github.com/svetzal/context-mixer.git
cd context-mixer
pip install -e ".[dev]"

Requirements

  • Python 3.12+
  • Git
  • Access to either Ollama (local) or OpenAI (remote) LLM services

Quick Start

# Initialize a new context library
cmx init

# Ingest existing contexts with project identification
cmx ingest ./my-react-project --project-id "react-frontend" --project-name "React Frontend App"
cmx ingest ./my-python-api --project-id "python-api" --project-name "Python REST API"

# Review and manage quarantined knowledge conflicts
cmx quarantine list                                    # List all quarantined chunks
cmx quarantine review <chunk-id>                       # Review a specific chunk
cmx quarantine resolve <chunk-id> accept "Approved after review"  # Resolve conflicts
cmx quarantine stats                                   # View quarantine statistics

# Assemble contexts for a specific target with project filtering
cmx assemble copilot --project-ids "react-frontend,python-api" --token-budget 8192

# Slice context into content categories with CRAFT-aware filtering
cmx slice --granularity detailed --domains technical,business --project-ids "react-frontend"

# Open and explore your context library
cmx open

License

MIT

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

context_mixer-0.4.2.tar.gz (136.5 kB view details)

Uploaded Source

Built Distribution

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

context_mixer-0.4.2-py3-none-any.whl (169.5 kB view details)

Uploaded Python 3

File details

Details for the file context_mixer-0.4.2.tar.gz.

File metadata

  • Download URL: context_mixer-0.4.2.tar.gz
  • Upload date:
  • Size: 136.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for context_mixer-0.4.2.tar.gz
Algorithm Hash digest
SHA256 3331344802d609213d6124fb31ea02e8aad98b40a7b25e1f7e141faeeb9ec576
MD5 e0c021bfdfe3d2c4925a9134329847c8
BLAKE2b-256 bcd833a3d589389d0a727a63a56c02ff5606fba41270b60f023180e3e5f1d8e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for context_mixer-0.4.2.tar.gz:

Publisher: build.yml on svetzal/context-mixer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file context_mixer-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: context_mixer-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 169.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for context_mixer-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9197f53f75f82e4dceff4c4a423aadc3857442bb03148eb00b3465b9bec7321d
MD5 40516142752a7570097a4768d67e31fa
BLAKE2b-256 1319d89ca8a50d0d98258f7d9c9f0e2a2e302d29b8ccfb022a0a06d27ce3e482

See more details on using hashes here.

Provenance

The following attestation bundles were made for context_mixer-0.4.2-py3-none-any.whl:

Publisher: build.yml on svetzal/context-mixer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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