clew
Clew
Der Faden durch ein Brownfield-Labyrinth. Ein Hop ist ein Knoten auf diesem Faden (docs/hops.md).
Brownfield-Dienste funktionieren bereits. Coding-Agenten zahlen trotzdem dafür, denselben Multi-Service-Ablauf in jeder Sitzung neu zu entdecken. Clew behält die vier Graphen, die Sie bereits haben — Code, Katalog, Loadout, Traces — und verbindet sie zu einem Pfad, den Sie begehen können.
Input → Branches → Output
measure → one P0 → capture → measure until reflectedgo install github.com/jeunessegamesee/clew/cmd/clew@v0.1.1Keine Scale-Lizenz, kein Neo4j, kein OpenSearch.
Jedes Brownfield, drei Befehle
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/MethodStubs lassen Sie auf jeden eingehenden Port verweisen. Bäume ohne when bleiben P1 unerfasst. Vertiefen Sie mit clew loop — erfinden Sie keine Verzweigungen.
Related MCP server: Manifold Engine MCP Server
Aus dem Quellcode erstellen
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 ist ein stdio-MCP-Server (loadout, who_consumes, who_calls, next_p0, drift, score). Jedes Tool hat sein eigenes Eingabeschema.
Anpassungsdatei
Mit .clew.yaml wird aus einem fremden Repo eine Karte:
roots:
- .
- ../other-repo
services:
checkoutservice: src/checkoutservice # OTel service.name → hops folder
traces:
- traces/*.jsonGenerische Türen (kein Parser pro Framework): OpenAPI / proto / GraphQL, OTLP (clew watch) oder clew ingest --file doors.json. Optional errät http: [auto] Actix/Spring/… und ist nicht der Weg, wie ein neuer Stack hinzugefügt wird.
Sprache
Clew ist Go. CBM bleibt der Codegraph. Wir verbinden HTTP/ASYNC/CROSS, OpenAPI/AsyncAPI und OTLP — wir bauen keinen Indexer neu.
Kartenformat
Siehe SPEC.md. Pro Dienst: docs/hops.md. Abdeckung: clew score --fail-p0. Nach der ausführbaren Datei: --fail-p1 friert unerfasste Stubs ein.
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.7 npmMIT