git clone https://github.com/ea-toolkit/context-blocks.git
cd context-blocks
python -m venv .venv && source .venv/bin/activate
pip install -e '.[dev]'
cp .env.example .env
# Fill in LLM_API_KEY and OPENAI_API_KEY in .env- Python 3.11+ with type hints on all function signatures
- Pydantic for validation at system boundaries
- Conventional commits (
feat:,fix:,chore:,docs:) - One concern per PR
feat/<issue-number>-<short-description>fix/<issue-number>-<short-description>chore/<description>
- Create an issue first (or pick an existing one)
- Create a branch from
main - Implement, test, commit
- Open PR referencing the issue (
Closes #N) - Wait for review
pytestcontext_blocks/ Python package
cli.py CLI entry point (Typer)
config.py Settings (pydantic-settings)
pipeline.py Extraction pipeline
meta_model.py Entity types, layers, relationships
retrieval/ DAR retrieval pipeline
infrastructure/ LLM gateway, embeddings
prompts/ LLM prompt templates
tasks/ Pipeline task implementations
viewer/ Astro + React web UI
synthetic-domains/ Demo data (healthcare-claims)
templates/ Seed context templates
tests/ pytest test suite