clew
Clew
El hilo a través de un laberinto brownfield. Un hop es un nodo en ese hilo (docs/hops.md).
Los servicios brownfield ya funcionan. Los agentes de codificación aún pagan por redescubrir el mismo flujo multi-servicio en cada sesión. Clew conserva los cuatro grafos que ya tienes — código, catálogo, loadout, trazas — y los une en un camino que puedes recorrer.
Input → Branches → Output
measure → one P0 → capture → measure until reflectedgo install github.com/jeunessegamesee/clew/cmd/clew@v0.1.1Sin licencia Scale, sin Neo4j, sin OpenSearch.
Cualquier brownfield, tres comandos
clew init --root /path/to/repo # .clew.yaml + CLEW.md
clew stub --root /path/to/repo # IN+else for every gRPC / GraphQL / OpenAPI port
clew score --root /path/to/repo # P0 = missing IN; P1 = uncaptured branches
clew loadout --root /path/to/repo --in /package.Service/MethodLos stubs te permiten hacer referencia a cada puerto entrante. Los árboles sin when permanecen P1 sin capturar. Profundiza con clew loop — no inventes ramas.
Related MCP server: Manifold Engine MCP Server
Compilar desde el código fuente
go test ./...
go build -o clew ./cmd/clew
./clew score --root examples/shop --fail-p0
./clew loadout --root examples/shop --use-case place-order --payload '{"paymentMethod":"CARD"}'
./clew loop --root testdata/incomplete-shop./clew score --root examples/shop --by-service
./clew score --root examples/shop --fail-p1
./clew watch --root examples/shop --traces traces/live.jsonl --follow
./clew watch --root examples/shop --listen 127.0.0.1:4318
./clew mcpclew mcp es un servidor MCP stdio (loadout, who_consumes, who_calls, next_p0, drift, score). Cada herramienta tiene su propio esquema de entrada.
Archivo de adaptación
.clew.yaml es cómo un repositorio desconocido se convierte en un mapa:
roots:
- .
- ../other-repo
services:
checkoutservice: src/checkoutservice # OTel service.name → hops folder
traces:
- traces/*.jsonPuertas genéricas (sin analizador por framework): OpenAPI / proto / GraphQL, OTLP (clew watch), o clew ingest --file doors.json. Opcional http: [auto] adivina Actix/Spring/… y no es cómo se añade una nueva pila.
Lenguaje
Clew es Go. CBM sigue siendo el grafo de código. Unimos HTTP/ASYNC/CROSS, OpenAPI/AsyncAPI y OTLP — no reconstruimos un indexador.
Formato de mapa
Ver SPEC.md. Por servicio: docs/hops.md. Cobertura: clew score --fail-p0. Después del ejecutable: --fail-p1 congela los stubs no capturados.
This server cannot be deployed
Maintenance
Related MCP Connectors
Codebase intelligence for AI agents — dead code, blast radius, ownership.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Codebase intelligence for agents: 152 structured artifacts across 21 programs, one call.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI coding agents to efficiently navigate and understand large codebases by providing tools for entry point location, call chain analysis, and impact assessment, reducing context consumption and model costs.53GPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to perform high-speed structural codebase analysis and dynamic context management by mapping repositories as byte-streams and detecting architectural chaos.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to analyze codebase behavior through entrypoints, call paths, and tests, providing impact analysis and context packs for code changes.MIT
- AlicenseNot gradedqualityCmaintenanceEnables cross-repository architecture discovery and dependency routing across multi-service codebases, with automated scanning and batch AST indexing for AI agents to trace request lifecycles and navigate service boundaries.6 npmMIT