
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 分