@colbymchenry/codegraph 0.9.6 → 0.9.7
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 +11 -33
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -236,7 +236,7 @@ The installer will:
|
|
|
236
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**
|
|
237
237
|
- Prompt to install `codegraph` on your PATH (so agents can launch the MCP server)
|
|
238
238
|
- Ask whether configs apply to all your projects or just this one
|
|
239
|
-
- Write each chosen agent's MCP server config
|
|
239
|
+
- Write each chosen agent's MCP server config (the codegraph usage guide is delivered by the MCP server itself, so no instructions file is added to `CLAUDE.md` / `AGENTS.md` / etc.)
|
|
240
240
|
- Set up auto-allow permissions when Claude Code is one of the targets
|
|
241
241
|
- Initialize your current project (local installs only)
|
|
242
242
|
|
|
@@ -268,7 +268,7 @@ cd your-project
|
|
|
268
268
|
codegraph init -i
|
|
269
269
|
```
|
|
270
270
|
|
|
271
|
-
Builds the per-project knowledge graph index.
|
|
271
|
+
Builds the per-project knowledge graph index. A single global `codegraph install` works in every project you open — no need to re-run the installer per project.
|
|
272
272
|
|
|
273
273
|
That's it — your agent will use CodeGraph tools automatically when a `.codegraph/` directory exists.
|
|
274
274
|
|
|
@@ -314,39 +314,16 @@ npm install -g @colbymchenry/codegraph
|
|
|
314
314
|
</details>
|
|
315
315
|
|
|
316
316
|
<details>
|
|
317
|
-
<summary><strong>
|
|
317
|
+
<summary><strong>Agent Tool Guidance</strong></summary>
|
|
318
318
|
|
|
319
|
-
|
|
319
|
+
CodeGraph's MCP server delivers its usage guidance to your agent **automatically**, in the MCP `initialize` response — there's no instructions file to manage and nothing is added to your `CLAUDE.md` / `AGENTS.md` / `GEMINI.md`. In short, it tells the agent to:
|
|
320
320
|
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
- **Answer structural questions directly with CodeGraph** — it *is* the pre-built index, so a grep/read loop just repeats work it already did. Treat the returned source as already read.
|
|
322
|
+
- **Pick the tool by intent:** `codegraph_context` to map an area, `codegraph_trace` for "how does X reach Y", `codegraph_explore` to survey several symbols, `codegraph_search` to find a symbol, `codegraph_callers`/`codegraph_callees` to walk call flow, `codegraph_impact` before editing, `codegraph_node` for one symbol's source.
|
|
323
|
+
- **Trust the results — don't re-verify with grep**, and check the staleness banner after edits.
|
|
324
|
+
- If `.codegraph/` doesn't exist yet, offer to run `codegraph init -i`.
|
|
323
325
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
### If `.codegraph/` exists in the project
|
|
327
|
-
|
|
328
|
-
**Answer directly with CodeGraph — don't delegate exploration to a file-reading sub-agent or a grep/read loop.** CodeGraph *is* the pre-built search index; re-deriving its answers with grep + Read repeats work it already did and costs more for the same result. For "how does X work?", architecture, trace, or where-is-X questions, answer in a handful of CodeGraph calls and stop — typically with **zero file reads**. The returned source is complete and authoritative: treat it as already read and do not re-open those files. Reach for raw Read/Grep only to confirm a specific detail CodeGraph didn't cover.
|
|
329
|
-
|
|
330
|
-
**Tool selection by intent:**
|
|
331
|
-
|
|
332
|
-
| Tool | Use For |
|
|
333
|
-
|------|---------|
|
|
334
|
-
| `codegraph_context` | Map a task / feature / area first — composes search + node + callers + callees in one call |
|
|
335
|
-
| `codegraph_trace` | "How does X reach Y" — the call path, each hop's body inline (follows dynamic-dispatch hops grep can't) |
|
|
336
|
-
| `codegraph_explore` | Survey several related symbols' source in ONE budget-capped call |
|
|
337
|
-
| `codegraph_search` | Find a symbol by name |
|
|
338
|
-
| `codegraph_callers` / `codegraph_callees` | Walk call flow one hop at a time |
|
|
339
|
-
| `codegraph_impact` | Check what's affected before editing |
|
|
340
|
-
| `codegraph_node` | Get a single symbol's source / signature |
|
|
341
|
-
|
|
342
|
-
A direct CodeGraph answer is a handful of calls; a grep/read exploration is dozens.
|
|
343
|
-
|
|
344
|
-
### If `.codegraph/` does NOT exist
|
|
345
|
-
|
|
346
|
-
At the start of a session, ask the user if they'd like to initialize CodeGraph:
|
|
347
|
-
|
|
348
|
-
"I notice this project doesn't have CodeGraph initialized. Would you like me to run `codegraph init -i` to build a code knowledge graph?"
|
|
349
|
-
```
|
|
326
|
+
The exact text is `src/mcp/server-instructions.ts` — the single source of truth.
|
|
350
327
|
|
|
351
328
|
</details>
|
|
352
329
|
|
|
@@ -517,7 +494,8 @@ See [Get Started](#get-started) for the one-line install commands.
|
|
|
517
494
|
## Supported Agents
|
|
518
495
|
|
|
519
496
|
The interactive installer auto-detects and configures each of these — wiring up
|
|
520
|
-
the MCP server
|
|
497
|
+
the MCP server (which delivers its own usage guidance, so no instructions file
|
|
498
|
+
is written):
|
|
521
499
|
|
|
522
500
|
- **Claude Code**
|
|
523
501
|
- **Cursor**
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colbymchenry/codegraph",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.7",
|
|
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.7",
|
|
10
|
+
"@colbymchenry/codegraph-darwin-x64": "0.9.7",
|
|
11
|
+
"@colbymchenry/codegraph-linux-arm64": "0.9.7",
|
|
12
|
+
"@colbymchenry/codegraph-linux-x64": "0.9.7",
|
|
13
|
+
"@colbymchenry/codegraph-win32-arm64": "0.9.7",
|
|
14
|
+
"@colbymchenry/codegraph-win32-x64": "0.9.7"
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"npm-shim.js",
|