clew
Clew
ブラウンフィールドの迷路を貫く糸。hop はその糸上のノードです(docs/hops.md)。
ブラウンフィールドサービスはすでに動作しています。それでもコーディングエージェントは、セッションのたびに同じマルチサービスフローを再発見するコストを払っています。Clew は、すでに持っている4つのグラフ — code、catalog、loadout、traces — を保持し、それらを歩ける経路に結合します。
Input → Branches → Output
measure → one P0 → capture → measure until reflectedgo install github.com/jeunessegamesee/clew/cmd/clew@v0.1.1Scale ライセンスも Neo4j も OpenSearch も不要です。
あらゆるブラウンフィールド、3つのコマンド
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/Methodスタブを使えば、すべてのインバウンドポートを参照できます。when のないツリーは P1 未捕捉のままです。clew loop で深掘りします — ブランチを勝手に作らないでください。
Related MCP server: Manifold Engine MCP Server
ソースからビルド
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 は stdio MCP サーバーです(loadout、who_consumes、who_calls、next_p0、drift、score)。各ツールには独自の入力スキーマがあります。
適応ファイル
.clew.yaml は、見知らぬリポジトリが地図になる方法です:
roots:
- .
- ../other-repo
services:
checkoutservice: src/checkoutservice # OTel service.name → hops folder
traces:
- traces/*.jsonGeneric doors(フレームワーク別パーサーなし):OpenAPI / proto / GraphQL、OTLP(clew watch)、または clew ingest --file doors.json。オプションの http: [auto] は Actix/Spring/… を推測しますが、新しいスタックの追加方法ではありません。
言語
Clew は Go です。CBM はコードグラフのままです。HTTP/ASYNC/CROSS、OpenAPI/AsyncAPI、OTLP を結合します — インデクサーを再構築するわけではありません。
マップ形式
SPEC.md を参照してください。サービスごと:docs/hops.md。カバレッジ:clew score --fail-p0。実行可能後:--fail-p1 で未捕捉のスタブを凍結します。
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