memtrace 0.4.60 → 0.5.1
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
CHANGED
|
@@ -24,7 +24,7 @@ Memtrace gives coding agents something they've never had: **structural memory**.
|
|
|
24
24
|
Index once. Every agent query after that resolves through graph traversal — callers, callees, implementations, imports, blast radius, temporal evolution — in milliseconds, with zero token waste.
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
npm install -g memtrace # binary +
|
|
27
|
+
npm install -g memtrace # binary + 18 skills + MCP server — one command
|
|
28
28
|
memtrace start # launches the graph database and auto-indexes the current project
|
|
29
29
|
```
|
|
30
30
|
|
|
@@ -175,7 +175,7 @@ Memtrace exposes a full structural toolkit via the [Model Context Protocol](http
|
|
|
175
175
|
</tr>
|
|
176
176
|
</table>
|
|
177
177
|
|
|
178
|
-
##
|
|
178
|
+
## 18 Agent Skills
|
|
179
179
|
|
|
180
180
|
Memtrace ships skills that teach agents *how* to use the graph. They fire automatically based on what you ask — no prompt engineering required.
|
|
181
181
|
|
|
@@ -191,12 +191,13 @@ Memtrace ships skills that teach agents *how* to use the graph. They fire automa
|
|
|
191
191
|
| **Index** | `memtrace-index` | _"index this project"_, _"parse this codebase"_ |
|
|
192
192
|
| **Co-change** | `memtrace-cochange` | _"what else changes with this"_, _"hidden coupling"_ |
|
|
193
193
|
|
|
194
|
-
Plus **
|
|
194
|
+
Plus **9 workflow skills** that chain multiple tools with decision logic:
|
|
195
195
|
|
|
196
196
|
| Skill | You say... |
|
|
197
197
|
|:------|:-----------|
|
|
198
198
|
| `memtrace-codebase-exploration` | _"I'm new to this project"_, _"give me an overview"_ |
|
|
199
199
|
| `memtrace-change-impact-analysis` | _"what will break if I refactor this"_ |
|
|
200
|
+
| `memtrace-code-review` | _"review this PR"_, _"post Memtrace review"_ |
|
|
200
201
|
| `memtrace-incident-investigation` | _"something broke"_, _"root cause analysis"_ |
|
|
201
202
|
| `memtrace-refactoring-guide` | _"help me refactor"_, _"clean up tech debt"_ |
|
|
202
203
|
| `memtrace-first` | _"use Memtrace before file search"_ |
|
|
@@ -241,7 +242,7 @@ Uses **Structural Significance Budgeting** to surface the minimum set of changes
|
|
|
241
242
|
|
|
242
243
|
### Claude Code + Claude Desktop
|
|
243
244
|
|
|
244
|
-
`npm install -g memtrace` handles everything automatically — binary,
|
|
245
|
+
`npm install -g memtrace` handles everything automatically — binary, 18 skills, MCP server, plugin, and marketplace all register in one command for both Claude Code and Claude Desktop.
|
|
245
246
|
|
|
246
247
|
For manual setup:
|
|
247
248
|
|
|
@@ -257,7 +258,7 @@ Cursor **v2.4+** supports Agent Skills natively, and `npm install -g memtrace` h
|
|
|
257
258
|
|
|
258
259
|
What the installer writes:
|
|
259
260
|
- **MCP server** → `~/.cursor/mcp.json` (global — works in every project you open)
|
|
260
|
-
- **
|
|
261
|
+
- **18 skills/workflows** → `~/.cursor/skills/memtrace-*/SKILL.md`
|
|
261
262
|
|
|
262
263
|
For a **project-local** install (so the skills travel with your repo and teammates get them on clone), run inside the project:
|
|
263
264
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: memtrace-code-review
|
|
3
|
+
description: "Always use when the user asks to review a GitHub pull request, run Memtrace code review, post Memtrace review comments, create a PR with a review step, or publish local graph-backed review findings to GitHub. Prefer the review_github_pr MCP tool over manual diff inspection."
|
|
4
|
+
when_to_use: "Triggered by 'review this PR', 'code review this pull request', 'post Memtrace review', 'run memtrace code-review', 'create PR with review', 'GitHub PR review', 'publish review comments', or any request to use Memtrace as a GitHub code reviewer. Use after code is pushed as a PR, and call review_github_pr instead of manually grepping diffs."
|
|
5
|
+
paths: "**/*.{py,js,jsx,ts,tsx,mjs,cjs,rs,go,java,rb,c,cc,cpp,cxx,h,hpp,hh,cs,php,swift,kt,kts,scala,clj,cljs,ex,exs,erl,hrl,ml,mli,fs,fsx,r,jl,lua,dart,m,mm,asm,sql,gql,graphql,proto,sh,bash,zsh,fish,vue,svelte}"
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- mcp__memtrace__review_github_pr
|
|
8
|
+
- mcp__memtrace__find_code_review_issues
|
|
9
|
+
- mcp__memtrace__list_indexed_repositories
|
|
10
|
+
user-invocable: true
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
|
|
15
|
+
Use Memtrace's local-first PR review workflow. The agent should call the `review_github_pr` MCP tool so review runs against the developer's local indexed graph, AST detectors, YAML rule pack, and review policy. GitHub is used for PR context and optional comment publication; source code analysis stays local.
|
|
16
|
+
|
|
17
|
+
## Default Flow
|
|
18
|
+
|
|
19
|
+
1. If the user gives a GitHub PR URL and asks to inspect or review it, call `review_github_pr` with `post: false`.
|
|
20
|
+
2. If the user explicitly asks to publish, post comments, or complete the PR review, call `review_github_pr` with `post: true`.
|
|
21
|
+
3. Use `graphMode: "strict"` by default. Use `graphMode: "off"` only when the user asks to benchmark non-graph behavior or the local graph is unavailable.
|
|
22
|
+
4. Default to `minSeverity: "high"` and `maxComments: 5` when posting. For previews, `maxComments: 10` is acceptable.
|
|
23
|
+
5. Pass `repoRoot` when the PR checkout is not the current working directory. Pass `repoId` when the indexed repository id is known.
|
|
24
|
+
|
|
25
|
+
## Guardrails
|
|
26
|
+
|
|
27
|
+
- Do not start with generic grep, rg, or manual diff review when `review_github_pr` is available.
|
|
28
|
+
- Do not post comments unless the user explicitly requested publication.
|
|
29
|
+
- Do not create benchmark-specific or PR-specific findings. The review must come from general Memtrace detectors, graph evidence, and policy ranking.
|
|
30
|
+
- If the tool reports missing auth, tell the user to run `memtrace auth login`.
|
|
31
|
+
- If the tool reports missing GitHub App installation, tell the user to install Memtrace Code Reviewer on that repository.
|
|
32
|
+
- If the tool reports missing local graph context, tell the user to run `memtrace index .` at the workspace root.
|
|
33
|
+
|
|
34
|
+
## Output
|
|
35
|
+
|
|
36
|
+
For previews, summarize:
|
|
37
|
+
- PR URL and repository
|
|
38
|
+
- Graph state
|
|
39
|
+
- Number of candidate comments
|
|
40
|
+
- File, line, severity, and message for each finding
|
|
41
|
+
|
|
42
|
+
For posted reviews, report the PR URL and number of comments posted.
|
package/lib/skill-metadata.js
CHANGED
|
@@ -266,6 +266,11 @@ const DEFAULT_TRIGGERS = {
|
|
|
266
266
|
"Triggered by 'tour of this codebase', 'how is this organized', 'where do I start', 'onboard me', 'explain the architecture', 'main flows', 'main modules', 'key classes', 'I just cloned this'.",
|
|
267
267
|
paths: CODE_PATHS,
|
|
268
268
|
},
|
|
269
|
+
"memtrace-code-review": {
|
|
270
|
+
whenToUse:
|
|
271
|
+
"Triggered by 'review this PR', 'code review this pull request', 'post Memtrace review', 'run memtrace code-review', 'create PR with review', 'GitHub PR review', 'publish review comments', or any request to use Memtrace as a GitHub code reviewer. Use after code is pushed as a PR and call review_github_pr instead of manually grepping diffs.",
|
|
272
|
+
paths: CODE_PATHS,
|
|
273
|
+
},
|
|
269
274
|
"memtrace-continuous-memory": {
|
|
270
275
|
whenToUse:
|
|
271
276
|
"Triggered by 'watch this folder', 'live indexing', 'incremental memtrace', 'always-on memory', 'keep up to date', 'pick up my saves', 'reflect uncommitted changes', 'why isn't memtrace seeing my edits'.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "memtrace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Code intelligence graph — MCP server + AI agent skills + visualization UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"fs-extra": "^11.0.0"
|
|
40
40
|
},
|
|
41
41
|
"optionalDependencies": {
|
|
42
|
-
"@memtrace/darwin-arm64": "0.
|
|
43
|
-
"@memtrace/linux-x64": "0.
|
|
44
|
-
"@memtrace/win32-x64": "0.
|
|
45
|
-
"@memtrace/linux-x64-noavx2": "0.
|
|
46
|
-
"@memtrace/win32-x64-noavx2": "0.
|
|
42
|
+
"@memtrace/darwin-arm64": "0.5.1",
|
|
43
|
+
"@memtrace/linux-x64": "0.5.1",
|
|
44
|
+
"@memtrace/win32-x64": "0.5.1",
|
|
45
|
+
"@memtrace/linux-x64-noavx2": "0.5.1",
|
|
46
|
+
"@memtrace/win32-x64-noavx2": "0.5.1"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": ">=18"
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: memtrace-code-review
|
|
3
|
+
description: "Always use when the user asks to review a GitHub pull request, run Memtrace code review, post Memtrace review comments, create a PR with a review step, or publish local graph-backed review findings to GitHub. Prefer the review_github_pr MCP tool over manual diff inspection."
|
|
4
|
+
when_to_use: "Triggered by 'review this PR', 'code review this pull request', 'post Memtrace review', 'run memtrace code-review', 'create PR with review', 'GitHub PR review', 'publish review comments', or any request to use Memtrace as a GitHub code reviewer. Use after code is pushed as a PR, and call review_github_pr instead of manually grepping diffs."
|
|
5
|
+
paths: "**/*.{py,js,jsx,ts,tsx,mjs,cjs,rs,go,java,rb,c,cc,cpp,cxx,h,hpp,hh,cs,php,swift,kt,kts,scala,clj,cljs,ex,exs,erl,hrl,ml,mli,fs,fsx,r,jl,lua,dart,m,mm,asm,sql,gql,graphql,proto,sh,bash,zsh,fish,vue,svelte}"
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- mcp__memtrace__review_github_pr
|
|
8
|
+
- mcp__memtrace__find_code_review_issues
|
|
9
|
+
- mcp__memtrace__list_indexed_repositories
|
|
10
|
+
user-invocable: true
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
|
|
15
|
+
Use Memtrace's local-first PR review workflow. The agent should call the `review_github_pr` MCP tool so review runs against the developer's local indexed graph, AST detectors, YAML rule pack, and review policy. GitHub is used for PR context and optional comment publication; source code analysis stays local.
|
|
16
|
+
|
|
17
|
+
## Default Flow
|
|
18
|
+
|
|
19
|
+
1. If the user gives a GitHub PR URL and asks to inspect or review it, call `review_github_pr` with `post: false`.
|
|
20
|
+
2. If the user explicitly asks to publish, post comments, or complete the PR review, call `review_github_pr` with `post: true`.
|
|
21
|
+
3. Use `graphMode: "strict"` by default. Use `graphMode: "off"` only when the user asks to benchmark non-graph behavior or the local graph is unavailable.
|
|
22
|
+
4. Default to `minSeverity: "high"` and `maxComments: 5` when posting. For previews, `maxComments: 10` is acceptable.
|
|
23
|
+
5. Pass `repoRoot` when the PR checkout is not the current working directory. Pass `repoId` when the indexed repository id is known.
|
|
24
|
+
|
|
25
|
+
## Example User Prompts
|
|
26
|
+
|
|
27
|
+
- "Review this PR with Memtrace: https://github.com/OWNER/REPO/pull/123"
|
|
28
|
+
- "Use Memtrace to review this pull request and post the findings: https://github.com/OWNER/REPO/pull/123"
|
|
29
|
+
- "Create the PR, then run Memtrace code review and publish the review comments."
|
|
30
|
+
|
|
31
|
+
## Guardrails
|
|
32
|
+
|
|
33
|
+
- Do not start with generic grep, rg, or manual diff review when `review_github_pr` is available.
|
|
34
|
+
- Do not post comments unless the user explicitly requested publication.
|
|
35
|
+
- Do not create benchmark-specific or PR-specific findings. The review must come from general Memtrace detectors, graph evidence, and policy ranking.
|
|
36
|
+
- If the tool reports missing auth, tell the user to run `memtrace auth login`.
|
|
37
|
+
- If the tool reports missing GitHub App installation, tell the user to install Memtrace Code Reviewer on that repository.
|
|
38
|
+
- If the tool reports missing local graph context, tell the user to run `memtrace index .` at the workspace root.
|
|
39
|
+
|
|
40
|
+
## Output
|
|
41
|
+
|
|
42
|
+
For previews, summarize:
|
|
43
|
+
- PR URL and repository
|
|
44
|
+
- Graph state
|
|
45
|
+
- Number of candidate comments
|
|
46
|
+
- File, line, severity, and message for each finding
|
|
47
|
+
|
|
48
|
+
For posted reviews, report the PR URL and number of comments posted.
|