Skip to main content
Glama
Rajahn
by Rajahn

RepoWeaver

AI 코딩 에이전트를 위한 코드 컨텍스트 패브릭 — 결정적 호출 그래프 인덱싱, 하이브리드 검색, 단일 도구 MCP 인터페이스.

RepoWeaver는 AI 코딩 에이전트(Codex, Claude Code, CodeWiz 등)가 전체 파일을 읽지 않고도 구조적 질문에 답할 수 있게 하는 로컬, 제로 비용 코드 인텔리전스 레이어를 구축합니다.

"Who calls this method, and what would break if I change its signature?"
→ explore(query, task="impact", repo=".", max_tokens=4000)
→ [verbatim source slices + call paths + blast radius + known blind spots]

동기

grep이나 전체 파일 읽기에 의존하는 AI 에이전트는 토큰을 낭비하고 파일 간 호출 체인을 놓칩니다. 기존 도구는 클라우드 API를 요구하거나, 인덱스 레이어에 LLM을 내장하거나, 제한적인 라이선스를 가집니다. RepoWeaver는 해당 환경에서 검증된 합의 패턴만 취하여 로컬에서 조합합니다.

Related MCP server: codemap

설계

여섯 가지 프리미티브는 모두 여러 오픈소스 도구에서 독립적으로 검증되었습니다:

#

프리미티브

검증 출처

1

tree-sitter 결정적 파싱, 로컬 $0

CodeGraph · GitNexus · Graft · Aider

2

호출 / 상속 / 임포트 엣지 + 블래스트 반경

CodeGraph · GitNexus · Graft · CodeQL

3

BM25/FTS + PageRank 그래프 확산

Graft · CodeGraph · Aider

4

콘텐츠 해시 증분 최신성

Graft · Codebase-Memory · CodeGraph

5

MCP 단일 강력 도구 explore()

CodeGraph (실증적으로 검증됨)

6

AGENTS.md 프로토콜 주입 + 편집 훅

GitNexus · CodeGraph · Graft · Potpie

포함하지 않음: 인덱스 레이어의 LLM(모든 진지한 도구에서 거부됨), 외부 API로 전송되는 코드, 주관적인 의미 요약.

로드맵

마일스톤

태그

상태

M1 — Fabric MVP (Java 파서 + 엣지 + FTS5 + PageRank + MCP)

v0.1.0

🔜

M2 — 최신성 및 신뢰도 (자동 동기화 + 중의성 해소 + 신뢰도 엣지)

v0.2.0

계획됨

M3 — 타입 정밀도 오버레이 (SCIP/jdtls)

v0.3.0

계획됨

M4 — 런타임 오버레이 (OTel/Jaeger 트레이스 → 엣지 가중치)

v0.4.0

계획됨

각 마일스톤은 CI에서 실행되는 fabric verify --level mN 게이트를 제공합니다.

검증 접근 방식

벤치마크는 공개 저장소만 사용합니다 — 독점 코드는 이 저장소에 포함되지 않습니다.

벤치마크 저장소

목적

spring-projects/spring-petclinic

Spring DI 중심, 주입 인식 엣지 테스트

google/gson

CodeGraph가 공개한 93.3% Java 커버리지와 비교 가능

square/okhttp

호출 체인 깊이

mybatis/mybatis-3

생성 코드 노이즈 필터링

설치 (v0.1.0에서 제공 예정)

pip install repoweaver
fabric build          # index current repo, $0, no LLM
fabric init           # inject AGENTS.md protocol + edit hook
fabric verify --level m1

MCP 도구

explore(
  query: str,
  task: "understand" | "impact" | "locate" | "debug",
  repo: str = ".",
  max_tokens: int = 4000
) → {
  slices: [{file, span, source}],
  call_paths: [...],
  blast_radius: [...],
  blind_spots: "DI / reflection / MQ edges not represented"
}

감사의 글

디자인 패턴은 다음에서 참고했습니다 (포크 아님): CodeGraph · Graft · GitNexus · Serena · SCIP · Aider

라이선스

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that gives AI agents structured code understanding and precise code intelligence via local indexing of AST, call graphs, and semantic search.
    121 npm
    4
    Apache 2.0
  • A
    license
    Not graded
    quality
    A
    maintenance
    MCP server for local-first code intelligence, providing structural code graph, semantic search, and impact analysis to AI agents.
    2
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Local-first code intelligence and safety layer for AI coding agents. MCP server exposes dependency graph, impact analysis, and AST-compressed repo context, backed by typed local memory, patch-scope safety gates, and git-independent transaction rollback.
    1
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    A persistent code-intelligence MCP server that builds a queryable knowledge graph of your codebase, enabling AI assistants to perform cross-file structural reasoning, dependency analysis, and blast radius detection.
    9
    MIT