Skip to main content
Glama

Clew

ブラウンフィールドの迷路を貫く糸。hop はその糸上のノードです(docs/hops.md)。

ブラウンフィールドサービスはすでに動作しています。それでもコーディングエージェントは、セッションのたびに同じマルチサービスフローを再発見するコストを払っています。Clew は、すでに持っている4つのグラフ — code、catalog、loadout、traces — を保持し、それらを歩ける経路に結合します。

Input → Branches → Output
measure → one P0 → capture → measure    until reflected
go install github.com/jeunessegamesee/clew/cmd/clew@v0.1.1

Scale ライセンスも 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 mcp

clew 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/*.json

Generic 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 で未捕捉のスタブを凍結します。

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables 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.
    5
    3
    GPL 3.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables 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
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI coding agents to analyze codebase behavior through entrypoints, call paths, and tests, providing impact analysis and context packs for code changes.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables 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 npm
    MIT