Skip to main content

KlapContext

El grafo es el producto.

Abrí un repositorio y explorá su arquitectura: nombre del proyecto → grafo interactivo → conexiones. Graphify genera los nodos y relaciones; KlapContext conserva contexto técnico verificable para agentes y analizadores nativos complementarios.

Instalación y primer uso

pip install klapcontext
cd mi-proyecto
klap init
klap open

El primer init prepara Graphify 0.9.102 en un entorno aislado bajo .klap/provider-runtime/ si no existe una instalación compatible. No modifica el Python global ni PATH. Una falla de instalación o extracción se informa; los analizadores nativos siguen generando contexto, sin presentar su salida como un grafo de Graphify.

klap update             # actualiza contexto y grafo
klap status             # comprueba vigencia
klap init --no-graphify # sólo contexto nativo, sin instalación externa
klap doctor --agent     # diagnóstico

También podés deshabilitar Graphify persistentemente en .klap/providers.json:

{"providers":{"graphify":{"enabled":false}}}

Portal local

.klap/index.html distribuye el visualizador nativo de Graphify: comunidades coloreadas, búsqueda, selección e inspección de nodos. Es el mismo mapa que .klap/graphify-out/graph.html, con vis-network 9.1.6 embebido para abrirlo sin CDN ni servidor con file://.

La vista humana omite nodos externos sin archivo fuente (por ejemplo símbolos no resueltos de dependencias); el grafo canónico completo se preserva para MCP y análisis técnico. No se agregan relaciones ni se infiere una ejecución.

Contexto para agentes

La simplificación visual no elimina entradas, flujos, evidencias ni alcance del índice de los artefactos técnicos:

.klap/
├── index.html            # portal autónomo: Inicio + Git
├── context.json          # contexto estructurado, evidencia y relaciones
├── agent-context.md      # briefing progresivo
├── graphify-out/         # graph.json y exportaciones originales de Graphify
├── provider-runtime/     # entorno aislado de Graphify
├── provider-state.json   # estado del runtime
├── state.json            # snapshot y vigencia
├── scope.json            # reglas de alcance
└── mcp/                  # ejemplos de conexión Graphify MCP

AGENTS.md se genera con un bloque administrado, preservando contenido ajeno. Por defecto los artefactos privados se agregan a .git/info/exclude, nunca a .gitignore. Un AGENTS.md versionado requiere autorización para actualizarlo. Para compartirlo: klap init --shared.

klap scope
klap context "modificar autenticación" --json
klap agent
klap doctor --agent --probe-mcp

Se conserva el servidor MCP propio (mcp_server.py) y sus consultas de contexto, símbolos, definiciones, referencias, implementaciones, dependencias, impacto y flujos. Cada capacidad depende de los analizadores disponibles: devuelve UNSUPPORTED, UNKNOWN o errores explícitos cuando no puede resolverla, sin simular capacidades semánticas. No requiere ningún servidor semántico externo. Los ejemplos .klap/mcp/ siguen destinados a Graphify; no modifican configuraciones globales de agentes.

Ver arquitectura, proveedores y migración graph-first.

Desarrollo

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

La suite de navegador es opcional: pip install playwright, luego python -m playwright install chromium y python -m pytest tests/test_portal_browser.py. Usa HTML local y bloquea la red para comprobar que el portal es autónomo.

Licencia

Apache-2.0. Ver LICENSE. El renderizador distribuido conserva su licencia MIT.

Metadata

Release files for klapcontext 0.11.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.11.3
File Size Uploaded Provenance Actions
klapcontext-0.11.3.tar.gz 266.1 kB With provenance Details for klapcontext-0.11.3.tar.gz

Built distribution (wheel)

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

Total release size: 531.4 kB

Release files / klapcontext-0.11.3.tar.gz

Download URL klapcontext-0.11.3.tar.gz
Size 266.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c19a47ec6b5f5e798e64c8b1104602b00ca5be1de72dd65d63b8d9eb71812cf9
BLAKE2b-256 checksum
How to use checksums
61f698d883fa324417bef9ec86bb9f61750569c6df11e9c3a015374cfc654521
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 4, 2026.

Transparency log

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

Download URL klapcontext-0.11.3-py3-none-any.whl
Size 265.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3f44df96a606cd7b36af335c8ff7a004025dd7f43b64be4d6092bcb5a388722
BLAKE2b-256 checksum
How to use checksums
4615b684cecc8c0b8b041457dc276187ab00114544a93d889650d47bfb21cf04
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 4, 2026.

Transparency log

Security for klapcontext 0.11.3

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 klapcontext-0.11.3.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 4, 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