Skip to main content

KlapContext

Understand an unfamiliar codebase before changing it.

KlapContext convierte evidencia de código en un modelo del sistema: puntos de entrada, flujos, automatizaciones, integraciones y sus incertidumbres. Graphify funciona como proveedor de análisis técnico; KlapContext es la capa que transforma esa evidencia en comprensión para personas y agentes de IA.

Agent Intelligence

KlapContext planifica el mínimo contexto relevante antes de que un agente empiece a cambiar código. Según la intención —entender, modificar, depurar, probar, refactorizar o medir impacto— selecciona capacidades y proveedores necesarios, sin acoplarse a una herramienta externa ni cargar archivos enteros por defecto. La compilación de Task Context llegará en los siguientes sprints.

KlapContext convierte un repositorio en contexto de ingeniería reutilizable: un portal estático para personas y un briefing compacto para agentes de IA. Usa Graphify como motor local de análisis técnico; KlapContext no reimplementa su grafo ni sus parsers.

Repositorio → KlapContext → Contexto de ingeniería
                              ├── Portal humano
                              └── Contexto para agentes

Instalación

pip install klapcontext

La instalación incluye graphifyy, la distribución oficial de Graphify que KlapContext necesita para generar el análisis local. Como alternativa para una CLI aislada: pipx install klapcontext.

Primer uso

cd mi-proyecto
klap init
klap open

klap init genera el análisis Graphify y escribe artefactos locales bajo .klap/. KlapContext agrega esa carpeta a .git/info/exclude; nunca modifica tu .gitignore.

Comandos

Comando Descripción
klap init [ruta] Genera el contexto inicial.
klap update [ruta] Actualiza Graphify y el contexto.
klap status [ruta] Indica si el contexto está actualizado respecto a Git.
klap open [ruta] Abre el portal humano estático.
klap agent [ruta] Muestra la configuración MCP local de Graphify.
klap context "tarea" [ruta] Compila un contexto focalizado reutilizando .klap/context.json si existe.
klap --version Muestra la versión instalada.

Salidas

.klap/
├── context.json          # modelo técnico, de sistema y humano
├── agent-context.md      # briefing para agentes de IA
├── index.html            # portal humano, sin servidor
├── state.json            # metadatos de freshness
└── graphify/             # grafo, informe y visualizaciones de Graphify

Las afirmaciones incluyen evidencia y estados CONFIRMED, INFERRED o UNKNOWN. Si KlapContext no puede determinar algo con confianza, lo expone en lugar de inventarlo.

Desarrollo

python -m pip install -e ".[dev]"
python -m pytest

Publicación

El workflow de GitHub Actions publica tags v* mediante PyPI Trusted Publishing. Antes del primer tag, configurá el publisher de PyPI para este repositorio y workflow. No se necesitan tokens de PyPI en el repositorio.

El repositorio ya incluye .github/workflows/publish-pypi.yml: al publicar un tag vX.Y.Z, GitHub construye el paquete y lo publica con ese publisher.

Licencia

Apache-2.0. Ver LICENSE.

Release files for klapcontext 0.3.3

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

Source distribution (sdist)

Source distribution for klapcontext 0.3.3
File Size Uploaded
klapcontext-0.3.3.tar.gz 48.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for klapcontext 0.3.3
File Interpreter ABI Platform
klapcontext-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 102.7 kB

Release files / klapcontext-0.3.3.tar.gz

Download URL klapcontext-0.3.3.tar.gz
Size 48.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9e5ef31aacd63398cc05554c58c1573fd524a4e26e369efc87e6477e2b4d3e6c
BLAKE2b-256 checksum
How to use checksums
180b56faaf7adad9d5864fbf5c69f52989bccac0406d6d4d4a0d1235a3efda9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 25, 2026.

Transparency log

Release files / klapcontext-0.3.3-py3-none-any.whl

Download URL klapcontext-0.3.3-py3-none-any.whl
Size 54.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b98825299b34e71a3ab3264fb9dda42997a9e4b58c69242730f2998f5a2f69a
BLAKE2b-256 checksum
How to use checksums
cda33a13b1afe8db7ed5eca38fd914d99980dbe78cd2755240ea047b28c00478
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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