gatt-graph 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -76
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,102 +1,56 @@
|
|
|
1
|
-
#
|
|
1
|
+
# gatt-graph (`gatt`)
|
|
2
2
|
|
|
3
|
-
Turn
|
|
4
|
-
|
|
5
|
-
| Source | Extracted | Ask it |
|
|
6
|
-
|--------|-----------|--------|
|
|
7
|
-
| **Database** (SQLite, PostgreSQL) | tables, columns, enums, FKs, indexes | "which tables hold login events, and how do I join them?" |
|
|
8
|
-
| **API spec** (OpenAPI 3.x, Swagger 2.0) | endpoints, schemas, `$ref`s, auth | "what's the full request to create an order?" |
|
|
9
|
-
| **Codebase** (Go, TS/JS, Python, Rust, Java, C#, Kotlin, Swift) | functions, call graph, routes, ORM models, docs | "what breaks if I change this signature?" |
|
|
10
|
-
|
|
11
|
-
Extract once, index semantically, and the agent gets tools that answer *which tables? how do I join them? who calls this?* in a single call. On a real 113-table CRM that is ~2.3k tokens in 1 tool call instead of ~7.8k across 6 introspection queries; on a codebase one `code-query` (~3 KB) replaces a 20–50k-token Grep/Read exploration.
|
|
12
|
-
|
|
13
|
-
Codebase parsing covers nine languages with uneven depth; see [supported languages and limits](docs/codebase-graphs.md#supported-languages-and-limits).
|
|
3
|
+
Turn codebases, databases (SQLite, PostgreSQL), and OpenAPI specs into a knowledge graph that AI agents query via **MCP** (Streamable HTTP or stdio) or the CLI — replacing 20–50k-token grep/read loops with a single compact call.
|
|
14
4
|
|
|
15
5
|
## Install
|
|
16
6
|
|
|
17
|
-
Via npm (Node 18+):
|
|
18
|
-
|
|
19
7
|
```bash
|
|
20
8
|
npm install -g gatt-graph
|
|
21
9
|
```
|
|
22
10
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
go build -o ~/.local/bin/gatt ./cmd/gatt
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Quickstart
|
|
11
|
+
Installs the `gatt` command by downloading the prebuilt native binary for your platform (`linux`, `darwin`, `win32`; `x64`/`arm64`) from the matching GitHub release and verifying its SHA-256 checksum.
|
|
30
12
|
|
|
31
|
-
|
|
32
|
-
gatt extract codebase . # or: extract sqlite|postgres|openapi ...
|
|
33
|
-
gatt index # embed nodes (optional; keyword search works without)
|
|
34
|
-
gatt install # register the MCP server in Claude Code
|
|
35
|
-
```
|
|
13
|
+
## Quickstart with Docker (Recommended)
|
|
36
14
|
|
|
37
|
-
|
|
15
|
+
Run one local container ([`system4us/gatt`](https://hub.docker.com/r/system4us/gatt)) that holds graphs and semantic vectors for **all your repositories** using a shared local **ONNX** embedder and an embedded **Qdrant** vector store — strictly bound to `127.0.0.1:7788`:
|
|
38
16
|
|
|
39
17
|
```bash
|
|
40
|
-
|
|
41
|
-
gatt
|
|
42
|
-
gatt grep "TODO(#42)" # exhaustive scan: zero hits = proof of absence
|
|
43
|
-
gatt query "how many messages did each client send" # tables, columns, joins for a data question
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Codebase graphs refresh themselves: every query re-parses only the files that changed.
|
|
18
|
+
# Start the central server and auto-discover all git repos under your code folder(s)
|
|
19
|
+
gatt docker up --mount /path/to/your/repos
|
|
47
20
|
|
|
48
|
-
|
|
21
|
+
# Register ONCE globally in Claude Code / Antigravity for every repo:
|
|
22
|
+
gatt install --http http://127.0.0.1:7788 --scope user
|
|
49
23
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
### Recommended: central Docker container (MCP over HTTP + ONNX + Qdrant)
|
|
53
|
-
|
|
54
|
-
Keep the `gatt` CLI installed locally (via npm or Go), and run `serve --onnx` + embedded Qdrant + MCP Streamable HTTP in a single local container bound strictly to `127.0.0.1:7788`:
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
# Pull and start system4us/gatt:latest (mounts $HOME read-only by default)
|
|
58
|
-
gatt docker up
|
|
59
|
-
|
|
60
|
-
# Register the HTTP MCP server for the current repo
|
|
24
|
+
# Or register per-project inside the current repo's .mcp.json:
|
|
61
25
|
gatt install --http http://127.0.0.1:7788
|
|
62
26
|
```
|
|
63
27
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
28
|
+
- Multiple code roots: `gatt docker up --mount /path/a --mount /path/b`
|
|
29
|
+
- Automatic commit watcher: detects `git commit`, `pull`, `merge`, `rebase`, and `checkout` and reindexes incrementally in the background.
|
|
30
|
+
- Windows (Docker Desktop): drive paths (`C:\Users\you\code`) are mapped automatically to `/host/c/Users/you/code`.
|
|
31
|
+
- Container management: `gatt docker status`, `gatt docker logs -f`, `gatt docker pull`, `gatt docker down`.
|
|
67
32
|
|
|
68
|
-
|
|
33
|
+
## Standalone CLI / stdio MCP (no Docker)
|
|
69
34
|
|
|
70
35
|
```bash
|
|
71
|
-
|
|
72
|
-
gatt
|
|
73
|
-
|
|
36
|
+
gatt extract codebase .
|
|
37
|
+
gatt install # register stdio MCP server
|
|
38
|
+
gatt code-query "how does auth work" # functions, callers, types, docs in one pack
|
|
39
|
+
gatt impact MyFunc --depth 3 # transitive callers before changing a signature
|
|
40
|
+
gatt blast shared/schema.json # callers, importers, co-change companions
|
|
41
|
+
gatt grep "TODO" --limit 0 # exhaustive literal/regex scan (--include/--exclude)
|
|
42
|
+
gatt routes # HTTP routes → handlers → ORM models → clients
|
|
74
43
|
```
|
|
75
44
|
|
|
76
|
-
|
|
45
|
+
## Documentation & Source
|
|
77
46
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
## Documentation
|
|
85
|
-
|
|
86
|
-
| | |
|
|
87
|
-
|---|---|
|
|
88
|
-
| [Command reference](docs/cli.md) | every query command with examples |
|
|
89
|
-
| [MCP tools](docs/mcp-tools.md) | what the agent can call |
|
|
90
|
-
| [Embeddings and background refresh](docs/embeddings.md) | backends, `serve`, hook setup, performance, env vars |
|
|
91
|
-
| [The call graph](docs/call-graph.md) | what a `CALLS` edge means, what is left out, measured accuracy |
|
|
92
|
-
| [Codebase graphs](docs/codebase-graphs.md) | impact/blast/routes/models/doc-drift, the `.gatt/` overlay |
|
|
93
|
-
| [Annotations and freshness](docs/annotations-and-freshness.md) | curated business knowledge, drift checks |
|
|
94
|
-
| [Graph model](docs/graph-model.md) | node and edge types per source |
|
|
95
|
-
| [Architecture and layout](docs/architecture.md) | how it fits together, adding a connector |
|
|
96
|
-
| [Roadmap](docs/roadmap.md) | |
|
|
47
|
+
Full documentation, supported languages, and source code:
|
|
48
|
+
- Repository: https://github.com/system4us/graphAllTheThings
|
|
49
|
+
- Docker image: https://hub.docker.com/r/system4us/gatt
|
|
50
|
+
- Embeddings & Docker setup: https://github.com/system4us/graphAllTheThings/blob/main/docs/embeddings.md
|
|
51
|
+
- MCP tools reference: https://github.com/system4us/graphAllTheThings/blob/main/docs/mcp-tools.md
|
|
52
|
+
- CLI reference: https://github.com/system4us/graphAllTheThings/blob/main/docs/cli.md
|
|
97
53
|
|
|
98
54
|
## License
|
|
99
55
|
|
|
100
|
-
Copyright (C) 2026 Leandro Fusco
|
|
101
|
-
|
|
102
|
-
Licensed under the [GNU AGPL v3 or later](LICENSE). You may use, modify and redistribute it, including commercially; if you distribute a modified version or let users interact with one over a network (AGPL §13), you must offer them its source under the same license. Dependencies and downloaded embedding models keep their own licenses.
|
|
56
|
+
GNU AGPL v3 or later — Copyright (C) 2026 Leandro Fusco.
|
package/package.json
CHANGED