@colbymchenry/codegraph 0.9.5 → 0.9.6
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 +40 -7
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# CodeGraph
|
|
4
4
|
|
|
5
|
-
### Supercharge Claude Code, Cursor, Codex, OpenCode,
|
|
5
|
+
### Supercharge Claude Code, Cursor, Codex, OpenCode, Hermes Agent, Gemini, Antigravity, and Kiro with Semantic Code Intelligence
|
|
6
6
|
|
|
7
7
|
**~35% cheaper · ~70% fewer tool calls · 100% local**
|
|
8
8
|
|
|
@@ -18,9 +18,12 @@
|
|
|
18
18
|
|
|
19
19
|
[](#supported-agents)
|
|
20
20
|
[](#supported-agents)
|
|
21
|
-
[](#supported-agents)
|
|
22
22
|
[](#supported-agents)
|
|
23
23
|
[](#supported-agents)
|
|
24
|
+
[](#supported-agents)
|
|
25
|
+
[](#supported-agents)
|
|
26
|
+
[](#supported-agents)
|
|
24
27
|
|
|
25
28
|
</div>
|
|
26
29
|
|
|
@@ -43,7 +46,7 @@ npx @colbymchenry/codegraph # zero-install, or:
|
|
|
43
46
|
npm i -g @colbymchenry/codegraph
|
|
44
47
|
```
|
|
45
48
|
|
|
46
|
-
<sub>CodeGraph bundles its own runtime — nothing to compile, no native build, works the same everywhere. The interactive installer auto-configures your agent(s) — Claude Code, Cursor, Codex CLI, opencode, Hermes Agent.</sub>
|
|
49
|
+
<sub>CodeGraph bundles its own runtime — nothing to compile, no native build, works the same everywhere. The interactive installer auto-configures your agent(s) — Claude Code, Cursor, Codex CLI, opencode, Hermes Agent, Gemini CLI, Antigravity IDE, Kiro.</sub>
|
|
47
50
|
|
|
48
51
|
### Initialize Projects
|
|
49
52
|
|
|
@@ -140,6 +143,33 @@ The gains scale with codebase size: on large repos the agent answers from the in
|
|
|
140
143
|
| **Mixed iOS / React Native / Expo** | Closes cross-language flows that static parsing misses: Swift ↔ ObjC bridging, React Native legacy bridge + TurboModules + Fabric view components, native → JS event emitters, Expo Modules |
|
|
141
144
|
| **100% Local** | No data leaves your machine. No API keys. No external services. SQLite database only |
|
|
142
145
|
|
|
146
|
+
<details>
|
|
147
|
+
<summary><strong>How auto-syncing works — and why you don't need to run <code>codegraph sync</code> manually</strong></summary>
|
|
148
|
+
|
|
149
|
+
When your agent (Claude Code, Cursor, Codex, opencode) launches `codegraph serve --mcp`, three layers keep the index in step with your code — and make sure the agent never gets a silent wrong answer in the brief window between an edit and the next sync:
|
|
150
|
+
|
|
151
|
+
1. **File watcher with debounced auto-sync.** A native FSEvents / inotify / ReadDirectoryChangesW watcher captures every source-file create / modify / delete and triggers a re-index after a debounce window (default `2000ms`, tunable via `CODEGRAPH_WATCH_DEBOUNCE_MS`, clamped to `[100ms, 60s]`). Bursts of edits collapse into a single sync.
|
|
152
|
+
|
|
153
|
+
2. **Per-file staleness banner.** During the brief debounce window, MCP tool responses that would reference a still-pending file prepend a `⚠️` banner naming it and telling the agent to `Read` it directly. Pending files NOT referenced by the response surface as a small footer instead. Either way, the agent gets an explicit signal — validated with Claude Code, where the agent literally says "Reading the file directly for the live content" before opening it.
|
|
154
|
+
|
|
155
|
+
3. **Connect-time catch-up.** When the MCP server (re)connects, codegraph runs a fast `(size, mtime)` + content-hash reconciliation against the working tree before answering the first query — so edits made while no MCP server was running (a `git pull` from the terminal, edits from another editor, a previous agent session that exited) get absorbed on the next session's first tool call.
|
|
156
|
+
|
|
157
|
+
```
|
|
158
|
+
agent writes src/Widget.ts
|
|
159
|
+
→ watcher fires (<100ms)
|
|
160
|
+
→ debounce (default 2s)
|
|
161
|
+
→ sync; Widget.ts is in the index
|
|
162
|
+
→ next agent query sees it
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**Verify any time** with `codegraph_status` (via MCP) or `codegraph status` (CLI). If anything is pending, you'll see a `### Pending sync:` section naming the files and their edit age.
|
|
166
|
+
|
|
167
|
+
The handful of cases where manual `codegraph sync` makes sense: the watcher is disabled (sandboxed environments, or `CODEGRAPH_NO_DAEMON=1`), or you're scripting against the index outside an agent session and want a pre-flight sync at the start of your script.
|
|
168
|
+
|
|
169
|
+
→ Full deep-dive in [Guides → Indexing a Project](https://colbymchenry.github.io/codegraph/guides/indexing/#stay-fresh-automatically).
|
|
170
|
+
|
|
171
|
+
</details>
|
|
172
|
+
|
|
143
173
|
---
|
|
144
174
|
|
|
145
175
|
## Framework-aware Routes
|
|
@@ -203,10 +233,10 @@ npx @colbymchenry/codegraph
|
|
|
203
233
|
```
|
|
204
234
|
|
|
205
235
|
The installer will:
|
|
206
|
-
- Ask which agent(s) to configure — auto-detects installed ones from: **Claude Code**, **Cursor**, **Codex CLI**, **opencode**, **Hermes Agent**
|
|
236
|
+
- Ask which agent(s) to configure — auto-detects installed ones from: **Claude Code**, **Cursor**, **Codex CLI**, **opencode**, **Hermes Agent**, **Gemini CLI**, **Antigravity IDE**, **Kiro**
|
|
207
237
|
- Prompt to install `codegraph` on your PATH (so agents can launch the MCP server)
|
|
208
238
|
- Ask whether configs apply to all your projects or just this one
|
|
209
|
-
- Write each chosen agent's MCP server config + an instructions file (e.g. `CLAUDE.md`, `.cursor/rules/codegraph.mdc`, `~/.codex/AGENTS.md`)
|
|
239
|
+
- Write each chosen agent's MCP server config + an instructions file (e.g. `CLAUDE.md`, `.cursor/rules/codegraph.mdc`, `~/.codex/AGENTS.md`, `~/.gemini/GEMINI.md`)
|
|
210
240
|
- Set up auto-allow permissions when Claude Code is one of the targets
|
|
211
241
|
- Initialize your current project (local installs only)
|
|
212
242
|
|
|
@@ -229,7 +259,7 @@ codegraph install --print-config codex # print snippet, no file wr
|
|
|
229
259
|
|
|
230
260
|
### 2. Restart Your Agent
|
|
231
261
|
|
|
232
|
-
Restart your agent (Claude Code / Cursor / Codex CLI / opencode / Hermes Agent) for the MCP server to load.
|
|
262
|
+
Restart your agent (Claude Code / Cursor / Codex CLI / opencode / Hermes Agent / Gemini CLI / Antigravity IDE / Kiro) for the MCP server to load.
|
|
233
263
|
|
|
234
264
|
### 3. Initialize Projects
|
|
235
265
|
|
|
@@ -494,6 +524,9 @@ the MCP server and writing its instructions file:
|
|
|
494
524
|
- **Codex CLI**
|
|
495
525
|
- **opencode**
|
|
496
526
|
- **Hermes Agent**
|
|
527
|
+
- **Gemini CLI**
|
|
528
|
+
- **Antigravity IDE**
|
|
529
|
+
- **Kiro**
|
|
497
530
|
|
|
498
531
|
## Supported Languages
|
|
499
532
|
|
|
@@ -555,7 +588,7 @@ MIT
|
|
|
555
588
|
|
|
556
589
|
<div align="center">
|
|
557
590
|
|
|
558
|
-
**Made for AI coding agents — Claude Code, Cursor, Codex CLI, opencode,
|
|
591
|
+
**Made for AI coding agents — Claude Code, Cursor, Codex CLI, opencode, Hermes Agent, Gemini CLI, Antigravity IDE, and Kiro**
|
|
559
592
|
|
|
560
593
|
[Report Bug](https://github.com/colbymchenry/codegraph/issues) · [Request Feature](https://github.com/colbymchenry/codegraph/issues)
|
|
561
594
|
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colbymchenry/codegraph",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "Local-first code intelligence for AI agents (MCP). Self-contained — bundles its own runtime.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"codegraph": "npm-shim.js"
|
|
7
7
|
},
|
|
8
8
|
"optionalDependencies": {
|
|
9
|
-
"@colbymchenry/codegraph-darwin-arm64": "0.9.
|
|
10
|
-
"@colbymchenry/codegraph-darwin-x64": "0.9.
|
|
11
|
-
"@colbymchenry/codegraph-linux-arm64": "0.9.
|
|
12
|
-
"@colbymchenry/codegraph-linux-x64": "0.9.
|
|
13
|
-
"@colbymchenry/codegraph-win32-arm64": "0.9.
|
|
14
|
-
"@colbymchenry/codegraph-win32-x64": "0.9.
|
|
9
|
+
"@colbymchenry/codegraph-darwin-arm64": "0.9.6",
|
|
10
|
+
"@colbymchenry/codegraph-darwin-x64": "0.9.6",
|
|
11
|
+
"@colbymchenry/codegraph-linux-arm64": "0.9.6",
|
|
12
|
+
"@colbymchenry/codegraph-linux-x64": "0.9.6",
|
|
13
|
+
"@colbymchenry/codegraph-win32-arm64": "0.9.6",
|
|
14
|
+
"@colbymchenry/codegraph-win32-x64": "0.9.6"
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"npm-shim.js",
|