
NEAT
io.github.neat-technologies由 GitHub 帳號 neat-technologies 發布v0.10.9更新於 Oct 31, 2026
A live graph of your running system, code fused with OTel runtime, that your agent queries over MCP.
概覽
把程式碼與 OpenTelemetry 執行期資料融合成一份執行中系統的即時圖譜,讓助理查詢根因、影響範圍以及程式碼與正式環境的落差。
- 可以做什麼
- 查詢圖譜:ask、語意搜尋、expand 與 relate 節點
- 診斷故障:根因、事故歷史、事故卡片與影響範圍
- 檢視相依性:宣告相依、觀測相依、過期邊與圖譜差異
- 比對程式碼與正式環境:宣告意圖與實際行為的落差
- 檢查架構政策,並為未涵蓋的函式庫補齊埋點
- 將託管專案連接至供應商
- 適用情境
- 適合助理在真實程式碼庫上工作、需要從圖譜而非文字搜尋來排查故障、相依性或架構規則的情境。最適合已執行或願意執行 NEAT 守護程式並為服務接入 OpenTelemetry 的團隊。
- 執行需求
- 透過 npm 套件 @neat.is/mcp 以 stdio 在本機執行。需要已執行的 NEAT 守護程式;NEAT_CORE_URL 指定其位址,預設指向本機守護程式。守護程式本身需在專案內以 npx neat.is 啟動,它會建立靜態圖譜並自動接入 OpenTelemetry。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 NEAT,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
NEAT
[CI] [License] [Release] [Website]
Agents are not good at investigation, and they are not good at reasoning. Given the right context, they are very good at writing code. NEAT does the investigation and the reasoning, so your agent can do the coding.
The clearest example is the incident card. When something in your system fails, NEAT assembles one work order for it: where the failure is (down to the file and line when the runtime recorded one), the chain of what caused it, everything a fix will reach, the architectural rules that govern that code, and where the code and production disagree. Every claim carries how NEAT knows it — read from source, seen at runtime, or inferred — and nothing is guessed: a cause NEAT can't reach is left blank, not filled in. The agent reads the card and writes the fix, instead of grepping files and guessing at the cause.
How NEAT does the investigation: it keeps a live graph of your running system. The real things in it are nodes — files and the symbols inside them, services, databases, routes, config, and infrastructure — joined by edges that each record how NEAT learned them: EXTRACTED from source, OBSERVED from OpenTelemetry, INFERRED by the stitcher that bridges gaps, STALE when the runtime stopped confirming an edge, and FRONTIER for a staged proposal. Fusion joins what the code declares to what production does at the same grain — file and line, symbol, host, database table — and those joins are where the answers are. The graph is deterministic and calls no LLM anywhere in the product: method, not model.
Every NEAT capability is a read of that one graph, not a layer on top of it — root cause, blast radius, dependencies, the divergence between code and production, policy checks, incidents, and grades. When you are working a task of your own, ask the graph first — incidents, divergences, root cause, blast radius, dependencies — before you grep. The incident card above is the one NEAT hands you when it finds a failure worth it, not something you fetch.
NEAT is in active development. Capability ships as patch releases on the npx neat.is surface; see open issues for what's on deck.
One command
Run it from inside your project (or npx neat.is <path>). It discovers your services, builds the static graph, attaches OpenTelemetry without editing your source, and starts a background daemon for the project — no config. Then start your app with NEAT attached — for Node, load the .env.neat it wrote (set -a; . ./.env.neat; set +a, then your usual start command); for Python, run your start command under opentelemetry-instrument — and the runtime half of the graph fills in as it runs.
When a request fails, your agent asks for the work order over MCP:
and gets the locus, the cause chain with per-hop provenance, the blast radius, the governing policies and the divergences for that incident in one answer. neat monitor prints a line for each new incident as it lands.
On Windows, use the
neatcommand, notnpx neat.is. npm generates a shim literally namedneat.is, and Windows won't execute a.isfile — it hands it to a file association instead. Install once and run the dotless binary:npm i -g neat.is, thenneat(orneat <path>). Without a global install:npx -p neat.is neat. Everynpx neat.is <verb>below becomesneat <verb>this way.
A more in-depth explanation:
At the center of NEAT is one live graph of your system, fused from two streams into a single model you can query many ways:
- Static analysis — tree-sitter over your source,
package.json, and yaml / env config. Eleven languages parse to symbol grain: JavaScript, TypeScript, Python, Go, Ruby, PHP, C#, Java, Kotlin, Rust and C++. Routes and database calls are recognised in most of them; runtime-to-code fusion covers JavaScript, TypeScript and Python; outbound HTTP calls between services are read from JavaScript and TypeScript only, so other languages rely on runtime telemetry for cross-service edges. Every source file becomes a node; imports between them become edges; the calls each file makes to databases, queues, and external hosts are extracted from the code. - Runtime telemetry — OpenTelemetry spans, attributed back to the exact file and line that made the call. NEAT wires the instrumentation for you, so the runtime edge lands on the same file node the static edge does.
Both streams land on the same nodes, so the graph holds what your code declares and what your system does side by side. From there, the useful questions fall out of one model: what would break if this node dies (blast radius), what broke first (root cause), which architectural rules a change would violate (policies), and where declared intent and observed reality part ways (divergence). Same graph, different traversals.
The file is the primary unit. A relationship in the graph runs from a file — src/services/billing.ts ──CALLS──▶ api.stripe.com — not from a vague service blob. Anchoring relationships to files and lines is what keeps every one of those answers sharp: a finding names this file, calling this target, rather than a service-shaped shrug.
Every edge carries a provenance tag so a consumer knows exactly how much weight a claim deserves:
EXTRACTEDfrom source. No clock decay.OBSERVEDfrom a span. CarrieslastObservedandcallCount.INFERREDby the trace stitcher where OTel coverage has gaps. Confidence is capped.STALEbecause runtime stopped speaking. Preserves the originallastObserved.
The graph is exposed to AI agents through twenty-four MCP tools. Fourteen read the graph — ask, get_root_cause, get_blast_radius, get_dependencies, get_observed_dependencies, get_incident_history, get_incident_card, get_divergences, get_graph_diff, get_recent_stale_edges, check_policies, semantic_search, expand, relate — six (neat extend) let an agent close instrumentation gaps for libraries the bundled OTel set doesn't cover, driven by a versioned instrumentation registry, and four connect a hosted project to a provider.
CLI
The same neat binary handles every verb. After a global install (npm i -g neat.is) or via npx neat.is:
Every query verb honors --json and --project <name>. Exit codes branch on success (0), server error (1), misuse (2), and daemon unreachable (3).
One example: what a divergence looks like
A divergence is one of the questions the graph answers, and the one that's hardest to get any other way — it needs both streams at once. Once your app has run, neat divergences reports where declared intent and observed behavior part ways:
Two findings, two different bugs. The first is a call your code makes without saying so — worth knowing before it surprises you. The second is a dependency your code carries but never uses — dead weight, or a path you thought was live and isn't. Both come from comparing the same file against itself: what it says, versus what it did.
Policies: rules over the graph
Divergence reports what is. Policies let you assert what should be. A policy.json in your project declares architectural rules as assertions over the same graph — for example, "only service:billing and service:orders may connect to postgres:primary," or "no file may call legacy-api.internal." Because the rules run against the live graph, they evaluate against both what your code declares and what production actually does.
NEAT evaluates every policy continuously as the graph changes. When an edge violates a rule, the violation is surfaced — not buried in a one-off lint run. Two surfaces expose it:
neat policieslists what's currently violating, scoped to a node with--node, or dry-run a change with--hypothetical-action.check_policieshands the same answer to an AI agent over MCP, so an agent writing a new feature can see which rules it would cross and the assertions it's working within — the rules previous features, other agents, or your engineers already set.
A block action gates promotion of a FrontierNode (an external host the graph has newly seen) so unsanctioned external dependencies don't quietly settle into the model. The throughline: the graph already knows your architecture, so the rules you care about become assertions over it that stay true as the system moves.
Run NEAT on a server
The container image at ghcr.io/neat-technologies/neat:latest boots neatd start and exposes REST on :8080, OTLP on :4318, and the web UI on :6328. Generate a token, run the image, point your OTel SDKs at it:
NEAT_AUTH_TOKEN is required on every public interface. The daemon refuses to bind on non-loopback addresses without one. REST and SSE callers send the token in Authorization: Bearer <token>; OTel exporters send the same header. Rotate the OTLP token independently with NEAT_OTEL_TOKEN.
Easier path: neat deploy generates the token, writes a docker-compose.neat.yml, and prints the env block your application's deploy platform needs:
Behind a reverse proxy
When TLS termination and authentication already live in a proxy upstream, set NEAT_AUTH_PROXY=true so the daemon skips the request-side bearer check. The bind-authority gate still refuses public binds without NEAT_AUTH_TOKEN, so set both:
Then docker run … -e NEAT_AUTH_TOKEN=… -e NEAT_AUTH_PROXY=true … and let Caddy gate the public surface.
Wire NEAT into your agent
NEAT's MCP server is listed in the official MCP Registry as io.github.neat-technologies/neat, so registry-aware editors can install it in one click:
[Add to Cursor] [Install in VS Code] [Install in VS Code Insiders]
Each button wires the @neat.is/mcp server via npx -y @neat.is/mcp and points it at your local daemon; set NEAT_CORE_URL to target a non-default one. For Claude Code:
Or edit ~/.claude/settings.json by hand:
The neat-mcp binary above assumes a global install. Without one, run neat skill --apply instead — it writes the same mcpServers.neat entry using npx -y @neat.is/mcp so the server resolves without a global binary. Either form reads NEAT_CORE_URL for the daemon URL; set it to point the agent at a non-default daemon.
In any Claude Code session, ask: "Why is checkout-svc failing?" NEAT walks the graph and answers with a traversal path, edge provenances, a confidence score, and a recommended fix.
Reach for the graph before grepping
This installs two nudges so your agent queries the graph before it falls back to raw text search:
- A Claude Code search-nudge hook — a
PreToolUsehook that, when the agent reaches forGrep/Globor a Bashgrep/rg/find, injects a note pointing it atsemantic_search,get_dependencies, andget_divergencesfirst. It is a gentle, non-blocking nudge: the search still runs. It merges into~/.claude/settings.jsonwithout touching your other hooks, and re-running is idempotent. - Agent-agnostic graph-first guidance — a markdown block (
GRAPH_FIRST.md, also written to~/.neat/neat-graph-first.md) to paste intoCLAUDE.md/AGENTS.md/.cursorrules, so agents on any harness get the same steer.
The hook is specific to Claude Code; other harnesses (Codex, Gemini, Cursor) rely on the guidance block instead. neat hooks --print-hook, --print-guide, and --print-settings show each piece without installing.
The Claude Code plugin — the one-install path
The neat skill and neat hooks commands above are the à-la-carte way to wire NEAT in. On Claude Code you can get all of it — the MCP graph tools, the graph-first search-nudge hook, and the skill — in one install, as a plugin:
The plugin lives in this repo under plugin/ and is installed straight from GitHub — nothing extra to publish. It bundles exactly the same MCP server config and search-nudge hook the à-la-carte commands write, so both paths behave identically; pick whichever you prefer. Set NEAT_CORE_URL (default http://localhost:8080) to point the bundled MCP server at a non-default daemon.
Repository layout
Documentation
docs/guide/: the user guide — getting started, core concepts, querying, AI agents, and troubleshooting. Start here.PROVENANCE.md: the four edge states and how confidence travels along a path.CLAUDE.md: guide for agents and contributors working in this repo.docs/architecture.md: package boundaries and data flow.docs/api-reference.md: REST endpoints and MCP tool signatures.docs/runbook.md: day-to-day commands and recovery recipes.docs/contracts.md: the binding rules every PR must hold to.CONTRIBUTING.md: branch convention, PR shape, dev setup.SECURITY.md: how to report vulnerabilities.
Contributing
PRs welcome. Read CONTRIBUTING.md first for the branch convention, PR shape, and the contracts framework that gates every change.
License
Apache 2.0. See LICENSE.
來源:README.md,提交 11303f8
工具
0版本歷史
11- v0.10.9最新Oct 17, 2026
- v0.10.6Oct 10, 2026
- v0.10.5Oct 6, 2026
- v0.10.4Sep 30, 2026
- v0.10.1Sep 29, 2026
- v0.10.0Sep 25, 2026
- v0.9.21Sep 25, 2026
- v0.9.20Sep 23, 2026
- v0.9.19Sep 19, 2026
- v0.9.17Sep 17, 2026
- v0.9.16Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分